smugmug.albums.get Album Query

pbkpbk Beginner grinnerPosts: 2Registered Users Beginner grinner
Hi the API is really really poorly documented and was wondering if any one knows how to query as an anonymous user all of my albums i figured that the call would be something like this
http://api.smugmug.com/hack/json/1.2.0/?method=smugmug.albums.get&APIKey=MYKEY&SessionID=MYSESSIONID

or is this not the right call to make?

because i get the following response

jsonXXXX({"stat":"fail","code":4,"message":"invalid user"});

Comments

  • SamirDSamirD Huntsville Car Scene.com Posts: 4,090Registered Users Major grins
    edited November 4, 2010
    Have you logged in yet and gotten your sessionID?

    This thread may also be helpful:
    http://www.dgrin.com/showthread.php?t=137990
    Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
    Want faster uploading? Vote for FTP!
  • pbkpbk Beginner grinner Posts: 2Registered Users Beginner grinner
    edited November 4, 2010
    I am getting the session through smugmug.login.anonymously .... does the
    smugmug.albums.get need to be non anonymous?

    If it does then what would be the preferred way to query your publicly visible albums ?
  • SamirDSamirD Huntsville Car Scene.com Posts: 4,090Registered Users Major grins
    edited November 4, 2010
    That should work. headscratch.gif Do you have your API key? I'd try using rest and straight from a browser to see what results you get. ne_nau.gif
    Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
    Want faster uploading? Vote for FTP!
  • devbobodevbobo LR whisperer Posts: 4,999Administrators Major grins
    edited November 5, 2010
    pbk wrote: »
    I am getting the session through smugmug.login.anonymously .... does the
    smugmug.albums.get need to be non anonymous?

    If it does then what would be the preferred way to query your publicly visible albums ?

    if you are creating a session from smugmug.login.anonymously, no user info is tied to the session obviously...so when you call smugmug.albums.get, you need to provide the NickName parameter.
    David Parry
    SmugMug API Developer
    My Photos
  • SamirDSamirD Huntsville Car Scene.com Posts: 4,090Registered Users Major grins
    edited November 8, 2010
    devbobo wrote: »
    if you are creating a session from smugmug.login.anonymously, no user info is tied to the session obviously...so when you call smugmug.albums.get, you need to provide the NickName parameter.
    Would the sessionID be the same? headscratch.gif
    Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
    Want faster uploading? Vote for FTP!
Sign In or Register to comment.