SoundCloud download initial commit

This commit is contained in:
Duncan Sommerville 2015-07-16 11:27:27 -04:00
parent d9117721b9
commit 04333aaa29
5 changed files with 82 additions and 2 deletions

View file

@ -77,6 +77,19 @@ abstract class ThirdPartyController extends Zend_Controller_Action {
$this->_service->upload($id);
}
/**
* Download the file with the given id from a third-party service
*
* @return void
*
* @throws Zend_Controller_Response_Exception thrown if download fails for any reason
*/
public function downloadAction() {
$request = $this->getRequest();
$id = $request->getParam('id');
$this->_service->download($id);
}
/**
* Delete the file with the given id from a third-party service
*