Problem with REST and invalid user

ollebulleollebulle Registered Users Posts: 2 Beginner grinner
I'm trying to discover the API but when i ran the "smugmug.albums.get" I only get:
<err code="4" msg="invalid user"/>

Here is my requests:
1.
http://api.smugmug.com/services/api/rest/1.2.2/?APIKey=XXX&method=smugmug.login.anonymously
Here I get a sessionid that i try to use in the smugmug.albums.get method.

2.
http://api.smugmug.com/services/api/rest/1.2.2/?method=smugmug.albums.get&SessionID=XXX
I've also tried:
http://api.smugmug.com/services/api/rest/1.2.2/method=smugmug.albums.get&NickName=XXX&SessionID=XXX

But both returns
<err code="4" msg="invalid user"/>

Thanks in advance, Olle

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 5, 2009
    if you are logging in anonymously, there is no account associated with the session that is returned, so NickName needs to be sent for methods like smugmug.albums.get.

    What was the NickName that you were sending ?

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • ollebulleollebulle Registered Users Posts: 2 Beginner grinner
    edited February 6, 2009
    devbobo wrote:
    if you are logging in anonymously, there is no account associated with the session that is returned, so NickName needs to be sent for methods like smugmug.albums.get.

    What was the NickName that you were sending ?

    Cheers,

    David

    It works now, I think I missspelled something. Thanks that you took your time.
Sign In or Register to comment.