Skip to main content
Known Participant
September 18, 2023
Answered

Problem with dowloading a licenced file

  • September 18, 2023
  • 1 reply
  • 382 views

Hello,

I'am using the AdobeStock API to buy licence of an picture and then try to download to my server.

After having bought the licence I can get the link to download the file :

Exemple : https://stock.adobe.com/Rest/Libraries/Download/60686279/1

But when I try to dowload it I have this error message :

{"error":"Cannot find a download for this file and license on this entitlement","code":"201","case":"404a23f05c855599ad50c62294f0598b"}

 

Here is my PHP code to get the file :

$myServerFilePath='toto/tata/';
file_put_contents($myServerFilePath,https://stock.adobe.com/Rest/Libraries/Download/60686279/1)))
                                                {

How can I do to avoid this error ? I tried to send a parameter tooken=... but it does'nt work...

Please need help ! 

 

Thnks a lot.
Vincent.

This topic has been closed for replies.
Correct answer Christopher at Adobe

Hi.

 

The command `TOOKEN` is not valid. The command is TOKEN. See https://developer.adobe.com/stock/docs/api/12-licensing-reference/#downloading-licensed-files.

 

Your token looks valid, but you must use the correct command, e.g., ?token=eyJhbG...

 

Thanks,

Christopher

1 reply

Christopher at Adobe
Community Manager
Christopher at AdobeCommunity ManagerCorrect answer
Community Manager
September 18, 2023

Hi.

 

The command `TOOKEN` is not valid. The command is TOKEN. See https://developer.adobe.com/stock/docs/api/12-licensing-reference/#downloading-licensed-files.

 

Your token looks valid, but you must use the correct command, e.g., ?token=eyJhbG...

 

Thanks,

Christopher

Vincent42Author
Known Participant
September 18, 2023

Yes thats correct it works now !

I used tooken but it was token !

Thks a lot !

Christopher at Adobe
Community Manager
Community Manager
September 18, 2023

You are welcome. If you have more questions, please email stockapis@adobe.com