1- # The Official DocuSign Node Client
1+ # The Official DocuSign Node Client
22
33[ ![ NPM version] [ npm-image ]] [ npm-url ]
44[ ![ NPM downloads] [ downloads-image ]] [ downloads-url ]
@@ -23,7 +23,7 @@ Node 4 or later.
2323
2424## Installation via the NPM Package Manager
2525
26- ` npm install docusign-esign --save `
26+ ` npm install docusign-esign --save `
2727
2828## Dependencies
2929
@@ -205,10 +205,9 @@ async.waterfall([
205205});
206206```
207207
208-
209- ```
210208#### OAuth Implicit Grant
211209uncomment implicit grant section in test/OAuthClientTests.js, run it and then open http://localhost:3000 .
210+
212211``` javascript
213212
214213const express = require (' express' );
@@ -270,7 +269,7 @@ app.listen(port, host, function(err) {
270269
271270 console .log (' Your server is running on http://' + host + ' :' + port + ' .' );
272271});
273-
272+
274273```
275274
276275# The basePath
@@ -281,25 +280,25 @@ The SDK must be configured to use the correct `basePath` for the accredited user
281280
282281To determine the user's basePath:
283282
284- 1 . After obtaining a Bearer token, call the
283+ 1 . After obtaining a Bearer token, call the
285284 [ OAuth::userInfo endpoint] ( https://developers.docusign.com/esign-rest-api/guides/authentication/user-info-endpoints ) .
286285
287- The ` getUserInfo ` method can be used to call the OAuth::userInfo endpoint. See the file
286+ The ` getUserInfo ` method can be used to call the OAuth::userInfo endpoint. See the file
288287 [ ApiClient.js] ( https://github.com/docusign/docusign-node-client/blob/master/src/ApiClient.js ) , line 713.
289288
290289 Use the results to choose the account. One of the user's accounts is their default account.
291290 The method's results include the selected account's ` base_uri ` field.
292291
293- Note: The host for the OAuth::userInfo method is ` account-d.docusign.com ` for the demo/developer environment,
292+ Note: The host for the OAuth::userInfo method is ` account-d.docusign.com ` for the demo/developer environment,
294293 and ` account.docusign.com ` for the production environments.
295- 1 . Combine the base_uri with "/restapi" to create the basePath.
296- Use the basePath for your subsequent API calls for the account id.
294+ 1 . Combine the base_uri with "/restapi" to create the basePath.
295+ Use the basePath for your subsequent API calls for the account id.
297296
298297 You can and should cache the basePath for at least the user's session with your application. It changes very infrequently.
2992981 . Instantiate the SDK using the basePath. Eg ` ApiClient apiClient = new ApiClient(basePath); `
300- 1 . Create the ` authentication_value ` by combining the ` token_type ` and ` access_token ` fields you
301- receive from a DocuSign OAuth flow.
302- See the [ authentication guide.] ( https://developers.docusign.com/esign-rest-api/guides/authentication )
299+ 1 . Create the ` authentication_value ` by combining the ` token_type ` and ` access_token ` fields you
300+ receive from a DocuSign OAuth flow.
301+ See the [ authentication guide.] ( https://developers.docusign.com/esign-rest-api/guides/authentication )
3033021 . Set the SDK's authentication header by using ` Configuration.Default.AddDefaultHeader('Authorization', authentication_value) `
304303
305304Testing
0 commit comments