Partial checkin; this doesn't seem to be possible with the API
On second thoughts.... refactor existing functionality
Support for --download