Skip to content

Instantly share code, notes, and snippets.

@AlexVKO
Created January 17, 2017 19:33
Show Gist options
  • Save AlexVKO/e30f1dcff047859b0b2ffb327b39bdb3 to your computer and use it in GitHub Desktop.
Save AlexVKO/e30f1dcff047859b0b2ffb327b39bdb3 to your computer and use it in GitHub Desktop.
------ QUICKBOOKS-RUBY REQUEST ------
METHOD = get
RESOURCE = https://sandbox-quickbooks.api.intuit.com/v3/company/193514473450094/query?query=SELECT+*+FROM+Customer+STARTPOSITION+1+MAXRESULTS+20
REQUEST BODY:
{}
REQUEST HEADERS = {"Content-Type"=>"application/xml", "Accept"=>"application/xml", "Accept-Encoding"=>"gzip, deflate"}
------ QUICKBOOKS-RUBY RESPONSE ------
RESPONSE CODE = 401
RESPONSE BODY:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<IntuitResponse xmlns="http://schema.intuit.com/finance/v3" time="2017-01-17T11:30:52.326-08:00">
<Fault type="AUTHENTICATION">
<Error code="3200">
<Message>message=ApplicationAuthenticationFailed; errorCode=003200; statusCode=401</Message>
<Detail>SignatureBaseString: GET&amp;https%3A%2F%2Fsandbox-quickbooks.api.intuit.com%2Fv3%2Fcompany%2F193514473450094%2Fquery&amp;oauth_consumer_key%3Dqyprdzfo4URox8GsQiOi0CfTLZaibs%26oauth_nonce%3DbGa9uYRwyJig7BMklRblqV4PHCjf8nehXTeVls2Zk8%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1484681450%26oauth_token%3DqyprdKMaGFbZM19y0fiahyLF0wysUPgId2dBHt5kSViZnKk3%26oauth_version%3D1.0%26query%3DSELECT%2520%252A%2520FROM%2520Customer%2520STARTPOSITION%25201%2520MAXRESULTS%252020</Detail>
</Error>
</Fault>
</IntuitResponse>
Quickbooks::AuthorizationFailure: Quickbooks::AuthorizationFailure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment