-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kai Wood
committed
Feb 19, 2017
1 parent
c41992e
commit 4e13722
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# pnut-butter | ||
|
||
## Installation | ||
|
||
```bash | ||
npm install pnut-butter --save | ||
``` | ||
|
||
## Usage | ||
|
||
Fetch the global timeline: | ||
|
||
```javascript | ||
const pnut = require('pnut'); | ||
|
||
pnut.global().then(data => { | ||
console.log(data); | ||
}) | ||
``` | ||
|
||
## Authentication | ||
|
||
You can set your access token like this: | ||
|
||
```javascript | ||
const pnut = require('pnut'); | ||
|
||
pnut.token = ACCESS_TOKEN | ||
pnut.global().then(data => { | ||
console.log(data); | ||
}) | ||
``` | ||
|
||
## Todo | ||
|
||
- Leave alpha status |