oauth - How to sign a quickbooks online API request in ColdFusion 9? -
In my CF app, I have used tokens and login tokens from QuickBooks online and it works fine. After starting to create the header I tried to call the Qubo API (I follow the instructions here on the "HTTP Authorization Header" section :). Then on the basis of code methods on Riafoge created HT headers because it worked. In addition, I respect the order of parameters given by Intuit in previous links). When I launched the API call, I received a response: "signature_invalid" I really want directions to sign the QBO online API call with CF 9 if I 6 Top Parameters: > is that I use to generate signature and header for request token, Hold using additions are made to the other signatures. On th eway.
paramsStr = "oauth_callback =" & amp; Signal data (CALL_BACK_URL) & amp; "& Amp;" & Amp; "Oauth_consumer_key =" & amp; SConsumerKey & amp; "& Amp;" & Amp; "Oath_ons =" & amp; Session Onesci & amp; "& Amp;" & Amp; "Oauth_signature_method =" & amp; SIGNMETHOD & amp; "& Amp;" & Amp; "O_uth_timestamp =" & amp; TIMESTAMP & amp; "& Amp;" & Amp; "Oth_version =" & amp; Edition; SignStr = "Post & amp;" & Amp; Symbolic Data (REQUEST_TOKEN_URL) & amp; "& Amp;" & Amp; EncodeData (paramsStr); Signature = Count HMACSignature (signStr, sConsumerSecret & amp; "& amp;"); AuthHeader = 'OAuth' & amp; CreateHeaderElement ("oauth_consumer_key", trim (sConsumerKey)) & amp; "," & Amp; CreateHeaderElement ("oauth_nonce", trim (session.nonce) & amp; "," & Amp; CreateHeaderElement ("oauth_signature_method", trim (signmethod) & amp; "," & Amp; CreateHeaderElement ("oauth_signature", trim) & amp; "," & Amp; CreateHeaderElement ("oauth_timestamp", trim (TIMESTAMP) & amp; "," & Amp; CreateHeaderElement ("oauth_version", trim (VERSION)) & amp; "," & Amp; CreateHeaderElement ("oauth_callback", trim (CALL_BACK_URL));
Comments
Post a Comment