getMedia

137 views
Skip to first unread message

Chris Thunell

unread,
Mar 6, 2015, 2:25:32 PM3/6/15
to fotol...@googlegroups.com
I'm developing an app to help purchase and download images in-house for printing. I'm using your API and have a new business key that is working fine.
However when i request the file for download I get a file not found error. Could you take a look at the following and let me know what i'm doing wrong:

I make a call:
https://api.fotolia.com/Rest/1/media/getMedia?id=1249584&license_name=Subscription_Monthly_M

Which successfully returns the url of:
http://api.fotolia.com/Rest/DownloadContent/1/5ScwaaaaOnheTTHOUhwnbgQulsc2Dgw9
and a name of:
Fotolia_1249584_Subscription_Monthly_M.jpg

I put the two together to form:
http://api.fotolia.com/Rest/DownloadContent/1/5ScwYpONOnheTTHOUhwnbgQulsc2Dgw9/Fotolia_1249584_Subscription_Monthly_M.jpg
but it says file not found.
Any thoughts?

Alexandre Dutoit

unread,
Mar 9, 2015, 8:52:44 AM3/9/15
to fotol...@googlegroups.com
Hi Chris,

you just need to call url gave by API to have your file. (with credential information)
you can see an example on https://github.com/Fotolia/Fotolia-API/blob/master/php/example.php

Alex
Reply all
Reply to author
Forward
0 new messages