• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug APIs, Hacks & Tricks smugmug.albums.get Album Query

Need some help with your New SmugMug Site?

Dgrin Challenges

They're back! Our latest series of Dgrin Challenges, the OOYCZ Challenges (Out of Your Comfort Zone), is a series of challenges to help you improve your photography by stepping out of your comfort zone and trying something new. Our challenge leader says "Consider it like a photography class with no diplomas.". Get started with OOYCZ by reading the Challenge Guide.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Looking for a little challenge? The Dgrin Mini-Challenges are a great way to challenge yourself. Take a moment to look through past winners and find the current Mini Challenge here.

From Around the Net

Enjoy a few of our favorite articles from around the 'net. If you have something you think we should see, post it here and we'll have a look.

Journeys

Landscapes

Sports

 
Thread Tools Display Modes
Old Nov-03-2010, 04:05 PM
#1
pbk is offline pbk OP
Beginner grinner
smugmug.albums.get Album Query
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
Code:
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":"invali d user"});

Last edited by pbk; Nov-03-2010 at 04:17 PM.
Old Nov-03-2010, 11:43 PM
#2
SamirD is offline SamirD
Huntsville Car Scene.com
SamirD's Avatar
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!
Old Nov-04-2010, 05:53 AM
#3
pbk is offline pbk OP
Beginner grinner
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 ?
Old Nov-04-2010, 06:54 AM
#4
SamirD is offline SamirD
Huntsville Car Scene.com
SamirD's Avatar
That should work. Do you have your API key? I'd try using rest and straight from a browser to see what results you get.
__________________
Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
Want faster uploading? Vote for FTP!
Old Nov-05-2010, 12:52 AM
#5
devbobo is offline devbobo
LR whisperer
devbobo's Avatar
Quote:
Originally Posted by pbk View Post
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
Old Nov-08-2010, 08:46 AM
#6
SamirD is offline SamirD
Huntsville Car Scene.com
SamirD's Avatar
Quote:
Originally Posted by devbobo View Post
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?
__________________
Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
Want faster uploading? Vote for FTP!
Tell The World!  
Similar Threads Thread Starter Forum Replies Last Post
Favorite Album Vendors and Albums Jeremy Winterberg Weddings 52 Apr-06-2011 10:38 AM
Large Album size Pro Lab InFocus_Pro Weddings 0 May-21-2010 04:07 AM
Incorrect image counts - smugmug.albums.get David PL SmugMug APIs, Hacks & Tricks 3 Mar-30-2008 06:15 PM
Backprinting @ smugmug K.Van SmugMug Support 62 Apr-05-2005 12:11 PM


Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump