Skip to content

Commit fb465c1

Browse files
Merge pull request #100 from docusign/DEVDOCS-335_LarryK_Readme
Readme
2 parents 1a68df5 + 33fc512 commit fb465c1

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
211209
uncomment implicit grant section in test/OAuthClientTests.js, run it and then open http://localhost:3000.
210+
212211
```javascript
213212

214213
const 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

282281
To 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.
299298
1. 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)
303302
1. Set the SDK's authentication header by using `Configuration.Default.AddDefaultHeader('Authorization', authentication_value)`
304303

305304
Testing

0 commit comments

Comments
 (0)