I've read every piece of documentation, but creating the oauth signature is still extremely hard to understand! I tried using the oauth ruby gem, but the support for refreshing the token isn't working for me (gives me invalid token), so I'm trying to do this manually.
This is what I have so far:
My parameters without the signature is below. Should be escaped properly and formatted properly:
Below is how I create the secret for the signing. Basically I take my api secret that I got when I registered the app, and escape it, and then take the token secret for the user and put them together with the "&" symbol
:method: :get body: oauth_problem=signature_invalid net_http_res: !ruby/object:Net::HTTPUnauthorized body: oauth_problem=signature_invalid body_exist: true code: "401" header: p3p: - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV" content-type: - application/x-www-form-urlencoded connection: - close www-authenticate: - OAuth oauth_problem=signature_invalid date: - Thu, 12 Aug 2010 21:27:00 GMT transfer-encoding: - chunked http_version: "1.1" message: Forbidden read: true socket:
Do you guys see any obvious mistakes? Thanks a ton!