Skip to content

Conversation

@sebastien-cleany
Copy link
Contributor

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.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 91.423% when pulling 99fb494 on cleany:develop into f84fb3f on intuit:develop.

@abisalehalliprasan
Copy link
Collaborator

Thanks for the PR 👏 . Will take a look at it and plan to have this for the next release.

@abisalehalliprasan abisalehalliprasan merged commit dd84b3b into intuit:develop Apr 10, 2020
@abisalehalliprasan abisalehalliprasan mentioned this pull request Apr 10, 2020
abisalehalliprasan added a commit that referenced this pull request Apr 10, 2020
* 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 <[email protected]>
Co-authored-by: Oscar Rabasa <[email protected]>
Co-authored-by: Kevin Tang <[email protected]>
Co-authored-by: abisalehalliprasan <[email protected]>

* 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 <[email protected]>
Co-authored-by: Sébastien Boulle <[email protected]>
Co-authored-by: Oscar Rabasa <[email protected]>
Co-authored-by: Kevin Tang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants