HTTP POST upload and OAuth?

krobertsonkrobertson Registered Users Posts: 3 Beginner grinner
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!

Comments

  • hoffmcshoffmcs Registered Users Posts: 125 Major grins
    edited January 16, 2010
    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/.
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited January 17, 2010
    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
    David Parry
    SmugMug API Developer
    My Photos
  • gmarblestonegmarblestone Registered Users Posts: 1 Beginner grinner
    edited February 9, 2011
    Can you upload using PLAINTEXT? I got an error requiring SSl for my upload but there is no ssl upload url.

    Thanks
    devbobo wrote: »
    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
Sign In or Register to comment.