"Invalid session" when calling the API

DanielRDanielR 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

Comments

Sign In or Register to comment.