Q: basic REST user auth

skim1420skim1420 Registered Users Posts: 33 Big grins
Hi, I'm working on a basic iOS Smugmug browser app, using the REST APIs.

My question is how do I make a call authenticated as a user?

I've been able to do basic REST calls like this:
https://api.smugmug.com/services/api/rest/1.3.0/?method=smugmug.albums.get&APIKey=<my_api_key>&NickName=<some_user_nickname>

and get a listing of their public Galleries.

Now how do I do this logged in as that user, listing all their Galleries?

Using my Smugmug account as a test account, I've tried specifying my password in the REST call, like this:
https://api.smugmug.com/services/api/rest/1.3.0/?method=smugmug.albums.get&APIKey=<my_api_key>&NickName=<my_smugmug_nickname>&SitePassword=<my_smugmug_password>

but it still returns only my public Galleries, and not all of my Galleries.

Thanks for the help!
iSmug, the best SmugMug viewer for your iPhone and iPad!
http://www.vanesoftware.com/ismug

uSmug, for grandma!
http://www.vanesoftware.com/usmug

Comments

  • coinforgecoinforge Registered Users Posts: 6 Beginner grinner
    edited April 5, 2012
    I can't speak to why you are only seeing the public albums when you supply the password, but I can say for certain that when you use the OAuth version of this api correctly, you will see all the albums, not just the public ones.

    Best of luck!
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited April 5, 2012
    From API version 1.3.0 onwards, authenticated user access needs to be done using OAuth.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • skim1420skim1420 Registered Users Posts: 33 Big grins
    edited April 5, 2012
    Thanks, that's exactly the answer to close this thread. For future reference, where would I have been informed of this otherwise? Thanks.
    iSmug, the best SmugMug viewer for your iPhone and iPad!
    http://www.vanesoftware.com/ismug

    uSmug, for grandma!
    http://www.vanesoftware.com/usmug
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited April 5, 2012
    There is a sticky thread in this forum about changes to 1.3.0. API changes like that are typically places in sticky threads for a period of time depending on the changes.
    David Parry
    SmugMug API Developer
    My Photos
  • skim1420skim1420 Registered Users Posts: 33 Big grins
    edited April 6, 2012
    Ah, thanks, that's great.
    iSmug, the best SmugMug viewer for your iPhone and iPad!
    http://www.vanesoftware.com/ismug

    uSmug, for grandma!
    http://www.vanesoftware.com/usmug
Sign In or Register to comment.