Skip to content
This repository has been archived by the owner on Aug 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #10 from atuttle/patch-1
Browse files Browse the repository at this point in the history
Explain how to keep tokens from expiring
  • Loading branch information
adunkman committed Mar 4, 2014
2 parents 7c8072b + b7cfa9e commit 92df005
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ npm install node-trello
### Getting your key and token
* [Generate your developer key][devkey] and supply it as the first constructor parameter.
* To read a user’s private information, get a token by directing them to `https://trello.com/1/connect?key=<PUBLIC_KEY>&name=MyApp&response_type=token` replacing, of course, &lt;PUBLIC_KEY&gt; with the public key obtained in the first step.
* If you never want the token to expire, include `&expiration=never` in the url from the previous step.
* If you need write access as well as read, `&scope=read,write` to the request for your user token.

[devkey]: https://trello.com/1/appKey/generate
Expand All @@ -37,4 +38,4 @@ t.get("/1/members/me", { cards: "open" }, function(err, data) {

## License

Released under [MIT](https://github.com/adunkman/node-trello/blob/master/LICENSE.md).
Released under [MIT](https://github.com/adunkman/node-trello/blob/master/LICENSE.md).

0 comments on commit 92df005

Please sign in to comment.