PDA

View Full Version : HTTP POST upload and OAuth?


krobertson
Jan-16-2010, 08:10 AM
I'm wanting to use the HTTP POST upload detailed here (http://wiki.smugmug.net/display/SmugMug/Uploading), but my application is using OAuth for authentication. Since the upload page doesn't have any info on the headers to use for OAuth, is the only way to upload with the actual API call? The main drawback if that is true is needing to use the API calls to upload, which means the image needs to be base64 encoded.

Thanks!

hoffmcs
Jan-16-2010, 06:46 PM
I have found that the project phpsmug has the best examples of using Oauth with SmugMug. It looks like it is using a HTTP PUT upload and breaking away from the API a bit. Check it out here http://phpsmug.com/.

devbobo
Jan-17-2010, 02:06 PM
HTTP Put and Raw HTTP Post both work fine with OAuth as long as you send the Authorization header as outlined in the OAuth spec and omit the SessionID parameter.

Cheers,

David

gmarblestone
Feb-09-2011, 10:44 AM
Can you upload using PLAINTEXT? I got an error requiring SSl for my upload but there is no ssl upload url.

Thanks

HTTP Put and Raw HTTP Post both work fine with OAuth as long as you send the Authorization header as outlined in the OAuth spec and omit the SessionID parameter.

Cheers,

David