ARGH!!! API not giving proper Smugmug code!

Kevin L. KitchensKevin 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!!!
Kevin L. Kitchens
"Know me through my lens."
My smugmug: http://peiklk.smugmug.com
My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 8, 2008
    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!!!

    Hi Kevin,

    What API methods are you calling and what API version ?

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • Kevin L. KitchensKevin L. Kitchens Registered Users Posts: 149 Major grins
    edited February 8, 2008
    devbobo wrote:
    Hi Kevin,

    What API methods are you calling and what API version ?

    Cheers,

    David

    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
    Kevin L. Kitchens
    "Know me through my lens."
    My smugmug: http://peiklk.smugmug.com
    My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 9, 2008

    are you calling the api upload method or using other of the HTTP Post or HTTP put upload methods ?
    David Parry
    SmugMug API Developer
    My Photos
  • Kevin L. KitchensKevin L. Kitchens Registered Users Posts: 149 Major grins
    edited February 9, 2008
    devbobo wrote:
    are you calling the api upload method or using other of the HTTP Post or HTTP put upload methods ?


    http://upload.smugmug.com/photos/xmladd.mg and it gets a INT for smugmug ImageID
    Kevin L. Kitchens
    "Know me through my lens."
    My smugmug: http://peiklk.smugmug.com
    My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 9, 2008
    http://upload.smugmug.com/photos/xmladd.mg and it gets a INT for smugmug ImageID

    can you please post the response that you are getting from that upload method ?
    David Parry
    SmugMug API Developer
    My Photos
  • Kevin L. KitchensKevin L. Kitchens Registered Users Posts: 149 Major grins
    edited February 9, 2008
    devbobo wrote:
    can you please post the response that you are getting from that upload method ?

    <?xml version='1.0' encoding="utf-8" ?>
    <methodResponse>
    					 <params>
    			  <param>
    			   <name>ImageID</name>
    			   <value>
    			    <int>252336807</int>
    			   </value>
    			  </param>
    			  <param>
    			   <name>ImageID</name>
    			   <value>
    			    <string>gQJZR</string>
    			   </value>
    			  </param>
    			 </params>
    					</methodResponse>
    

    So, do I need to extract BOTH ImageID values and combine them?
    Kevin L. Kitchens
    "Know me through my lens."
    My smugmug: http://peiklk.smugmug.com
    My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 9, 2008
    The second ImageID should be ImageKey, sorry that's a bug. I have fixed my code, hopefully I can get it pushed out shortly.

    It depends on what you are going with the images once they are uploaded, do you call any other methods after that ?
    David Parry
    SmugMug API Developer
    My Photos
  • Kevin L. KitchensKevin L. Kitchens Registered Users Posts: 149 Major grins
    edited February 9, 2008
    devbobo wrote:
    The second ImageID should be ImageKey, sorry that's a bug. I have fixed my code, hopefully I can get it pushed out shortly.

    It depends on what you are going with the images once they are uploaded, do you call any other methods after that ?

    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
    Kevin L. Kitchens
    "Know me through my lens."
    My smugmug: http://peiklk.smugmug.com
    My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]
  • Kevin L. KitchensKevin L. Kitchens Registered Users Posts: 149 Major grins
    edited February 9, 2008
    devbobo wrote:
    The second ImageID should be ImageKey, sorry that's a bug. I have fixed my code, hopefully I can get it pushed out shortly.

    It depends on what you are going with the images once they are uploaded, do you call any other methods after that ?
    Any ETA on this?

    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????
    Kevin L. Kitchens
    "Know me through my lens."
    My smugmug: http://peiklk.smugmug.com
    My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited February 9, 2008
    Any ETA on this?

    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????

    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 ?
    David Parry
    SmugMug API Developer
    My Photos
  • Kevin L. KitchensKevin L. Kitchens Registered Users Posts: 149 Major grins
    edited February 9, 2008
    devbobo wrote:
    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 ?

    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.
    Kevin L. Kitchens
    "Know me through my lens."
    My smugmug: http://peiklk.smugmug.com
    My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]
  • Kevin L. KitchensKevin L. Kitchens Registered Users Posts: 149 Major grins
    edited February 10, 2008
    Upload response is now correct... Thanks.
    Kevin L. Kitchens
    "Know me through my lens."
    My smugmug: http://peiklk.smugmug.com
    My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]
Sign In or Register to comment.