"Invalid session" when calling the API
DanielR
Registered Users Posts: 2 Beginner grinner
Hi All,
I am making calls to the API using JSON, for example
http://api.smugmug.com/services/api/json/1.2.2/?method=smugmug.albums.get&APIKey=myapikeyblahblahblah&NickName=jmcqueen
but I get the response: {"code"=>3, "method"=>"smugmug.images.get", "message"=>"invalid session", "stat"=>"fail"}
when I access the above link in Firefox it works, I get the albums data, but when I call the link from my ruby script, I get the error.
what am I doing wrong?
thanks in advance
Daniel
I am making calls to the API using JSON, for example
http://api.smugmug.com/services/api/json/1.2.2/?method=smugmug.albums.get&APIKey=myapikeyblahblahblah&NickName=jmcqueen
but I get the response: {"code"=>3, "method"=>"smugmug.images.get", "message"=>"invalid session", "stat"=>"fail"}
when I access the above link in Firefox it works, I get the albums data, but when I call the link from my ruby script, I get the error.
what am I doing wrong?
thanks in advance
Daniel
0
Comments
http://msphoto.smugmug.com
http://twitter.com/tasmanic
I see. And how do I get the session ID?
The API documentation is sparse and very vague.
tx
http://msphoto.smugmug.com
http://twitter.com/tasmanic
http://www.dgrin.com/showthread.php?t=137990
I wrote it to help myself remember how to use the API. Maybe it will help you too.
Want faster uploading? Vote for FTP!