fix readme example path issue
This commit is contained in:
parent
160b526d85
commit
6489dbe917
1 changed files with 6 additions and 6 deletions
12
README.md
12
README.md
|
|
@ -37,11 +37,11 @@ $ vim get_token.js
|
||||||
Then, paste the example below into the file and update the creditials to match your NPR Developer account info.
|
Then, paste the example below into the file and update the creditials to match your NPR Developer account info.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const NPR = require('../index'),
|
const NPR = require('npr-api'),
|
||||||
npr = new NPR();
|
npr = new NPR();
|
||||||
|
|
||||||
const client_id = process.env.CLIENT_ID || 'your_oauth_client_id',
|
const client_id = 'your_oauth_client_id',
|
||||||
client_secret = process.env.CLIENT_SECRET || 'your_oauth_client_secret';
|
client_secret = 'your_oauth_client_secret';
|
||||||
|
|
||||||
npr.one.init()
|
npr.one.init()
|
||||||
.then(function() {
|
.then(function() {
|
||||||
|
|
@ -108,11 +108,11 @@ $ vim get_recommendations.js
|
||||||
Then, paste the example below into the file and update the creditials to match your NPR Developer account info.
|
Then, paste the example below into the file and update the creditials to match your NPR Developer account info.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const NPR = require('../index'),
|
const NPR = require('npr-api'),
|
||||||
npr = new NPR();
|
npr = new NPR();
|
||||||
|
|
||||||
// paste in your token here or use env var
|
// paste in your token here
|
||||||
const token = process.env.ACCESS_TOKEN || 'access_token_from_step_1';
|
const token = 'access_token_from_step_1';
|
||||||
|
|
||||||
npr.one.init(token)
|
npr.one.init(token)
|
||||||
.then(function() {
|
.then(function() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue