Smugmug image download through API OriginalUrl working for some and not for some
sujit1779
Registered Users Posts: 46 Big grins
Hi,
I have an application PicBackMan which allows user to download their Smugmug photos and videos locally to their machine.
It works on API provided by Smugmug, so what we do is, we call "smugmug.images.getInfo" method to retrieve URL of the image and store it somewhere. Later we use that URL to download images programatically (C#) through our application. Earlier it used to work flawlessly but now I think last few days for some its downloading and for some its not.
Have you guys changed something here?
Thanks.
I have an application PicBackMan which allows user to download their Smugmug photos and videos locally to their machine.
It works on API provided by Smugmug, so what we do is, we call "smugmug.images.getInfo" method to retrieve URL of the image and store it somewhere. Later we use that URL to download images programatically (C#) through our application. Earlier it used to work flawlessly but now I think last few days for some its downloading and for some its not.
Have you guys changed something here?
Thanks.
0
Comments
SmugMug Product Manager
Thanks.
Sujit
Which version of the API are you using? We do have a way to get private images via the API, but you'll need to set your application up to use OAuth in order to do that.
We have some information about using oAuth with the API in our documentation here: https://api.smugmug.com/api/v2/doc/tutorial/authorization.html
Twitter also has some great documentation and examples: https://dev.twitter.com/oauth
To make oAuth requests, I highly recommend you find a stable oAuth library for the language you'll be working in. The oAuth spec is tricky and leveraging a library here will save you tons of headache. The docs for the oAuth library should guide you in making authenticated requests.
SmugMug Product Manager
I am using 1.3.0 version of API and below is the three steps I am following to get Original Url's of all the images a user has in Smugmug and I am getting it corectly (only issue is when I try to download those url's to save it on local machine it doesn't)
List of albums
https://secure.smugmug.com/services/api/json/1.3.0/?method=smugmug.albums.get
List of Photos for any album
https://secure.smugmug.com/services/api/json/1.3.0/?method=smugmug.images.get&AlbumID
Details of photo
https://secure.smugmug.com/services/api/json/1.3.0/?method=smugmug.images.getInfo&ImageID=
I am using oAuth to do all the above three steps. Can you guide me how can I download PRIVATE album photos using oAuth?
Thanks.
Can you send an example URL to a specific image including the headers you are using to api@smugmug.com and I can look into this? If there is a bug we've introduced this will help me track it down.
Erik
I just missed your reply so couldn't respond to you earlier. Sorry.
Let me explain you further. I get image url something like https://xxxxxx.smugmug.com/photos/i-xxxx/0/O/i-xxxxxx.jpg and then what I do is simple use normal save method of .net to download the image.
I have also mailed to the email address mentioned you as required.
Thanks.
Thanks you! We've received your email and are looking into your issue. We'll respond directly there.
Erik
~Sujit