Third Light Developer Exchange

Code and templating community forum for developers and software integrators

You are not logged in.

Announcement

If you wish to join the Developer Exchange, please contact your account manager - this is to avoid unnecessary spam in the forums. Many thanks for your understanding.

#1 2015-06-03 15:42:40

daviddw
Member
Registered: 2015-06-03
Posts: 5

Downloads_CanDownloadOriginal error

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

#2 2015-06-03 16:21:38

dominic
Third Light Staff
Registered: 2013-06-06
Posts: 119

Re: Downloads_CanDownloadOriginal error

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

#3 2015-06-03 17:45:53

daviddw
Member
Registered: 2015-06-03
Posts: 5

Re: Downloads_CanDownloadOriginal error

Thank you Dominic. Now it works!

Offline

Board footer