Need clarification on how to use KQOAuth library
-
Library info at http://www.johanpaul.com/blog/2010/10/introducing-kqoauth-easy-and-powerful-oauth-library-for-qt/
After perusing the availble docs I don't have enough to go on.
I have tried contacting the creator, and he responded at first, but now he doesn't respond to my emails. Maybe he's preocupied.Wondering if anyone here knows how to use the KQOAuth library?
Here is my latest email to Johan Paul:
I like your library, but it just seems like it's too tailored for a specific type of use.
I have figured out "how" I need it to work, but am not sure if it will already perform the way I want or if I need to write my own stuff.
Your docs don't provide enough detail for me to understand how to make it work in my scenario.In my scenario, I am already given the consumer_key, consumer_secret, access_token, and access_token_secret, so I don't need to be requesting these.
These 4 steps I need done by library calls:
1- create the base string composed of 9 strings
oauth_nonce and oauth_timestamp must be generated by library.
-The following strings must be concatenated to the base string in alphabetical order:
-"https://stream.tradeking.com/v1/market/ext/quotes.xml "
-"oauth_consumer_key=aaaaaaa"
-"oauth_nonce=bbbbbbb"
-"oauth_signature_method=HMAC-SHA1"
-"oauth_timestamp=ccccccc"
-"oauth_token=ddddddd"
-"oauth_version=1.0a" (emphasis on using 1.0a rather than 1.0)
-"POST"
-"?symbol=F"
-The final base string before encoding is:
-"https://stream.tradeking.com/v1/market/ext/quotes.xml&oauth_consumer_key=aaaaaaa&oauth_nonce=bbbbbbb&oauth_signature_method=HMAC-SHA1&oauth_timestamp=ccccccc&oauth_token=ddddddd&oauth_version=1.0a&POST&?symbol=F"2- create the signature string by concatenating the oauth_consumer_secret and
oauth_token_secret
-oauth_consumer_secret="eeeee"
-oauth_token_sectret="fffff"
-The preliminary signature string is: "eeeee&fffff"
-Pass the base string created in step 1 and the preliminary signature string in the preceeding
line to the hash function HMAC(baseString,preliminarySignatureString) to create a final
signature string "gggggggg".3-create the request string by adding the signature string to the base string
-"https://stream.tradeking.com/v1/market/ext/quotes.xml?symbol=F"
-"oauth_consumer_key=aaaaaaa"
-"oauth_nonce=bbbbbbb"
-"oauth_signature_method=HMAC-SHA1"
-"oauth_signature=gggggggg"
-"oauth_timestamp=ccccccc"
-"oauth_token=ddddddd"
-"oauth_version=1.0a"
-"POST"-The final request string before encoding is:
--"https://stream.tradeking.com/v1/market/ext/quotes.xml?symbol=F&oauth_consumer_key=aaaaaaa&oauth_nonce=bbbbbbb&oauth_signature_method=HMAC-SHA1&oauth_signature=gggggggg&oauth_timestamp=ccccccc&oauth_token=ddddddd&oauth_version=1.0a&POST"4-Encode the request string with results being (without spaces):
What calls must I make to achieve the 4 tasks above?