-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Accept HTTP status codes between 199 and 300 as successes (#78) * Fix: handle not JSON content in response parsing (#59) * Coveralls Badge Fix * Coveralls Badge Fix:Final * Coveralls Badge Fix : istanbul package added * Coveralls Badge Fix + snyk added * Coveralls Badge Fix + snyk added * Snyk removed from Makefile * Snyk removed for timebeing * Add more code coverage for OAuthClient (#54) * Add better code coverage in OAuthClient * Fix: ValidateIdToken method and unit tests (#58) * Fix validateIdToken tests * Pointing README Badge to Develop * Pointing README Badge to Develop * Update Develop Coverage Badge * Fix: handle not JSON content in response parsing Some intuit API as invoice download return not JSON content (PDF in this case). `makeApiCall` wasn't working with it because of mandatory response body parsing. So if the response is not JSON, we don't want to parse the body. And simply let the caller decide what to do with it. Co-authored-by: abisalehalliprasan <anil_kumar3@intuit.com> Co-authored-by: Oscar Rabasa <oscargrp@gmail.com> Co-authored-by: Kevin Tang <kevin.hm.tang@gmail.com> Co-authored-by: abisalehalliprasan <38014312+abisalehalliprasan@users.noreply.github.com> * Release : 2.1.0 * Release : 2.1.0 * Release : 2.1.0 : Revert back dependencies * Release : 2.1.0 : Revert back dependencies Co-authored-by: Zina Schroeder <zina.schroeder@gmail.com> Co-authored-by: Sébastien Boulle <sebastien@cleany.fr> Co-authored-by: Oscar Rabasa <oscargrp@gmail.com> Co-authored-by: Kevin Tang <kevin.hm.tang@gmail.com>
- Loading branch information
1 parent
f67968e
commit 714078d
Showing
4 changed files
with
90 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"url":"https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer", | ||
"headers":{ | ||
"content-type":"application/pdf", | ||
"content-length":"1636", | ||
"connection":"close", | ||
"server":"nginx", | ||
"date":"Wed, 05 Sep 2018 05:57:09 GMT", | ||
"intuit_tid":"1234-1234-1234-123", | ||
"cache-control":"no-cache, no-store", | ||
"pragma":"no-cache" | ||
}, | ||
"body":"%PDF-1.\ntrailer<</Root<</Pages<</Kids[<</MediaBox[0 0 3 3]>>]>>>>>>", | ||
"status":200, | ||
"statusText":"OK" | ||
} |