fix readme example path issue

This commit is contained in:
Todd Treece 2016-05-27 14:03:50 -04:00
parent 160b526d85
commit 6489dbe917

View file

@ -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() {