I am looking for access to the SmugMug API from my application in order to capture user albums and images (users authenticated through ruby ββOmniAuth).
According to the SmugMug OAuth API , OAuth requires six parameters.
I can get the token with OmniAuth, and the timestamp should be easy (Time.now.to_i right?). There are two things that I donβt know how to create - oauth_nonce and oauth_signature.
According to oauth docs, I generate nonce via timestamp, but how exactly did I do this? Should it be of a certain length and limited to certain characters?
And, of course, a signature. How can I generate HMAC-SHA1 sig with ruby? I know that the oauth gem can do this, but I would rather use it myself with OmniAuth. Looking at the code, I had problems deciphering how the oauth stone generates whitefish.
Thanks for any help.
ruby ruby-on-rails ruby-on-rails-3 oauth omniauth
kmurph79
source share