Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
oAuth HMAC-SHA1
#4
Thanks for the help.

I've found an example in javascript that does exactly what I need:
http://oauth.googlecode.com/svn/code/ja ... ature.html

str.HMAC_SHA1 returns some strange results and I'm not really sure how to use it to get the same as the webpage above.

I do have a hack to run JavaScript with QM...So I am using that right now to get the signature in HMAC-SHA1 from the data...I'd like to do code it all in QM because it will be faster.

Thanks,
jim

Here's a little more about the project:
QM prepares a cURL command line and saves to a script file. Then calls PuTTY with RunConsole2 to establish an SSH connection to run the script on a remote Linux (Ubuntu) virtual machine.
Looks like this:
Code:
Copy      Help
RunConsole2("c:\putty.exe -ssh [email protected] 22 -pw password -m c:\cURL.sh" 0 "" 0)

The cURL command uses all the OAuth information to make twitter posts. Right now I've got a prototype working...it's clunky all over for sure, but it's getting there.

It was easier to get the cURL commands to execute on Linux. I had a really hard time getting things to run in Windows environment.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)