ARGH!!! API not giving proper Smugmug code!
Kevin L. Kitchens
Registered Users Posts: 149 Major grins
I sent some photos via the API to my site and they have the new style smugmug code, but the API gave me the old style. So now I am disconnected between the two.
How can I get the right smugmug code!!!
How can I get the right smugmug code!!!
Kevin L. Kitchens
"Know me through my lens."
My smugmug: http://peiklk.smugmug.com
My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]
"Know me through my lens."
My smugmug: http://peiklk.smugmug.com
My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]
0
Comments
Hi Kevin,
What API methods are you calling and what API version ?
Cheers,
David
SmugMug API Developer
My Photos
http://api.smugmug.com/hack/xmlrpc/1.1.1/
http://upload.smugmug.com/photos/xmladd.mg to send the item and it gives back an int for the smugmugid
"Know me through my lens."
My smugmug: http://peiklk.smugmug.com
My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]
are you calling the api upload method or using other of the HTTP Post or HTTP put upload methods ?
SmugMug API Developer
My Photos
http://upload.smugmug.com/photos/xmladd.mg and it gets a INT for smugmug ImageID
"Know me through my lens."
My smugmug: http://peiklk.smugmug.com
My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]
can you please post the response that you are getting from that upload method ?
SmugMug API Developer
My Photos
So, do I need to extract BOTH ImageID values and combine them?
"Know me through my lens."
My smugmug: http://peiklk.smugmug.com
My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]
It depends on what you are going with the images once they are uploaded, do you call any other methods after that ?
SmugMug API Developer
My Photos
Just logout. I then store the SmugMugID in my DB... so I need to end up with both halves in there.
Thanks for helping with this.:ivar
"Know me through my lens."
My smugmug: http://peiklk.smugmug.com
My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]
I tried in development code this morning and now it fires, but still gives ImageID twice.
In addition, on my existing site where nothing has changed, when I make a call to: Login then GetImageInfo, I'm getting an error. Apparently because this is expecting an Int and I'm passing NOW a string...
IS THERE ANYWAY TO SET A GALLERY TO KEEP THE OLD NUMBERING SYSTEM????
"Know me through my lens."
My smugmug: http://peiklk.smugmug.com
My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]
ImageID and ImageKey should not be combined together and sent as the original ImageID for method calls. They should be sent as two separate parameters.
Is the upload response correct now ?
SmugMug API Developer
My Photos
THis change has GOT to have messed up more sites and users than just me.
Will check the API response when I get a chance.
"Know me through my lens."
My smugmug: http://peiklk.smugmug.com
My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]
"Know me through my lens."
My smugmug: http://peiklk.smugmug.com
My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]