Skip to main content
Known Participant
September 18, 2023
Question

API AdobeStock problem to get a file with PHP code

  • September 18, 2023
  • 1 reply
  • 478 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.

    1 reply

    Raymond Camden
    Community Manager
    Community Manager
    September 18, 2023

    Hi, this is the wrong forum, I'm sorry. I did a quick look on their site, https://developer.adobe.com/stock/docs/getting-started/, and don't see forumsm entioned, so maybe they don't have any. 

    Raymond Camden
    Community Manager
    Community Manager
    September 18, 2023