-
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.
* Update CHANGELOG.md Update CHANGELOG.md for all releases. * Adding Transport Override for PDF use case (#98) * Update CHANGELOG.md (#95) Update CHANGELOG.md for all releases. * adding transport * updating package name and version * updating to use npm username in package * fixing behavior and version * removing package.json changes Co-authored-by: abisalehalliprasan <[email protected]> * Test PDF transport changes sdk release 3.0.3 * Release candidate 4.0.0 * Release 4.0.0 README update Co-authored-by: Greg Haislip <[email protected]> Co-authored-by: abisalehalliprasan <[email protected]>
- Loading branch information
1 parent
8f05c1d
commit 02e940b
Showing
5 changed files
with
41 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- 9 | ||
- 8 | ||
- 10 | ||
- 11 | ||
- 12 | ||
- 14 | ||
|
||
before_script: | ||
- npm install | ||
|
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 |
---|---|---|
|
@@ -52,14 +52,15 @@ implementations which conforms to the specifications. | |
|
||
# Requirements | ||
|
||
The Node.js client library is tested against the `Node 8 LTS` and newer versions. | ||
The Node.js client library is tested against the `Node 10` and newer versions. | ||
|
||
To use in node 6, please use | ||
[[email protected].](https://github.com/intuit/oauth-jsclient/tree/1.5.0) | ||
| Version | Node support | | ||
|----------------------------------------------------------------------------------|-----------------------------------| | ||
| [[email protected]](https://github.com/intuit/oauth-jsclient/tree/1.5.0) | Node 6.x or higher | | ||
| [[email protected]](https://github.com/intuit/oauth-jsclient/tree/2.0.0) | Node 7.x or higher | | ||
| [[email protected]](https://github.com/intuit/oauth-jsclient/tree/3.0.2) | Node 8.x or Node 9.x and higher | | ||
|
||
To use in node 7, please use | ||
[[email protected].](https://github.com/intuit/oauth-jsclient/tree/2.0.0). Older node versions are | ||
not supported. | ||
**Note**: Older node versions are not supported. | ||
|
||
# Installation | ||
|
||
|
@@ -440,6 +441,13 @@ oauthClient | |
The client validates the ID Token and returns boolean `true` if validates successfully else it would | ||
throw an exception. | ||
|
||
#### Support for PDF format | ||
In order to save the PDF generated from the APIs properly, the correct transport type should be passed into the `makeAPI()`.Below is an example of the same: | ||
``` | ||
.makeApiCall({ url: `${url}v3/company/${companyID}/invoice/${invoiceNumber}/pdf?minorversion=59` , headers:{'Content-Type': 'application/pdf','Accept':'application/pdf'}, transport: popsicle.createTransport({type: 'buffer'})}) | ||
``` | ||
The response is an actual buffer( binary BLOB) which could then be saved to the file. | ||
|
||
### Auth-Response | ||
|
||
The response provided by the client is a wrapped response of the below items which is what we call | ||
|
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