system error (code 5) on images.get, json api 1.2.1

dbpattersondbpatterson Registered Users Posts: 8 Beginner grinner
I've just started working on a project with the api, using the JSON api, and I'm able to log in anonymously, and with the sessionid get all the public albums for a nick, but then if I try to images.get with one of the album ids I get:
"code": 5.0,"message": "system error","stat": "fail"

the url is (APIkey and SessionID removed):
http://api.smugmug.com/services/api/json/1.2.1/?method=smugmug.images.get&APIKey=_snipped_&AlbumId=3631897&SessionID=_snipped_
I'm new to the API, is there something I'm missing?

Comments

  • dbpattersondbpatterson Registered Users Posts: 8 Beginner grinner
    edited April 6, 2008
    [edit] hmm. using (what I thought to be) the correct url:
    http://api.smugmug.com/services/api/json/1.2.1/?method=smugmug.images.get&APIKey=_snipped_&AlbumId=3909775&AlbumKey=MNmpx&SessionID=_snipped_
    

    I'm still getting identical errors... ideas?

    [/edit]

    I guess its http://www.dgrin.com/showthread.php?t=83919

    though the api could do with sending more helpful error messages (considering the wiki documentation is hopeless out of date, not even mentioning that these functions have changed...)
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited April 6, 2008
    Yes, the parmeter is AlbumID not AlbumId.

    I am cleaning up a lot of these error messages for api version 1.2.2.
    David Parry
    SmugMug API Developer
    My Photos
  • dbpattersondbpatterson Registered Users Posts: 8 Beginner grinner
    edited April 7, 2008
    devbobo wrote:
    Yes, the parmeter is AlbumID not AlbumId.

    I am cleaning up a lot of these error messages for api version 1.2.2.

    Perfect, thanks!
Sign In or Register to comment.