You are not logged in.
Pages: 1
hi all,
I am testing the API and I am trying to use the Downloads module. I want to use the Downloads_CanDownloadOriginal function, but I always receive the ACTION_NOT_PERMITTED error.
This is a very simple code example of what I am doing
$myIMSClient = new IMSApiClient("http://my_url.thirdlight.com/");
$myIMSClient->Login(array("username"=>"username","password"=>"password"));
var_dump($myIMSClient->Downloads_CanDownloadOriginal(array('assetId' => 'an_asset_id')));
What I am doing wrong?
Thanks.
Offline
Hi David,
You would receive the ACTION_NOT_PERMITTED response if your user account does not have the permission to ever download an original file (that is, the Downloads -> Single click download of originals user option is not selected).
The intended purpose of this method is to check whether per-asset considerations (folder access, password protection, embargo, expiry or watermarking, for example) prevent the download of some files.
Dominic
Offline
Thank you Dominic. Now it works!
Offline
Pages: 1