PDA

View Full Version : Upload from my webpage to SmugMug?


Kevin L. Kitchens
Dec-15-2006, 07:12 AM
Hey... I was wondering if SmugMug has a webservice or something that I can use to send a photo to smugmug from my website? I would specifically want to send the photo and then receive back the imageID the system assigns.

I run a POTD site (http://photographyvoice.com/pv) and I store the initial uploads on my site, but for permanent hosting of the winners, I've used smugmug since day one. Right now, I have to manually extract the daily winners, upload, then browse the gallery to get the id#s from the URL. I store these #s in a database so it can be shown on demand.

What I want to be able to do is simply flag the days winners and hit send, and my code would transmit the picture to smugmug, get the id# back, and store it in the DB.

Is this doable?

Andy
Dec-15-2006, 07:14 AM
Hey... I was wondering if SmugMug has a webservice or something that I can use to send a photo to smugmug from my website? I would specifically want to send the photo and then receive back the imageID the system assigns.

I run a POTD site (http://photographyvoice.com/pv) and I store the initial uploads on my site, but for permanent hosting of the winners, I've used smugmug since day one. Right now, I have to manually extract the daily winners, upload, then browse the gallery to get the id#s from the URL. I store these #s in a database so it can be shown on demand.

What I want to be able to do is simply flag the days winners and hit send, and my code would transmit the picture to smugmug, get the id# back, and store it in the DB.

Is this doable?
Moving to hacks forum. You'll want to talk w/ the API guys :)

Kevin L. Kitchens
Dec-15-2006, 07:17 AM
Moving to hacks forum. You'll want to talk w/ the API guys :)

Thanks... missed that forum! :)

devbobo
Dec-15-2006, 11:57 AM
Hi Kevin,

yes it is possible...start here (http://smugmug.jot.com/WikiHome/API) for general api information. Then read the specific section on uploading.

Cheers,

David

Kevin L. Kitchens
Dec-15-2006, 09:38 PM
Hi Kevin,

yes it is possible...start here (http://smugmug.jot.com/WikiHome/API) for general api information. Then read the specific section on uploading.

Cheers,

David

Yeah... I stumbled on that after I asked. I was able to login and get a sessionID, but the uploading part has me baffled. I'd be doing this all via code (ASP.NET, C#) and opening a "url" is easy and getting an XML response, opening one to send a file seems a bit awkward.

Any good examples out there? I learn great by example.

Thanks!