Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,21 @@ const isTweet = _.conforms({
})
```

## API errors

Api errors are returned (with "catch" in the Promise api or with "err" param in the callback api) as an array of errors.
Thus errors described in twitter docs for example as:
```JSON
{ "errors": [ { "code": 88, "message": "Rate limit exceeded" } ] }

```
Would return as :

```
[ { "code": 88, "message": "Rate limit exceeded" } ]

```

## Examples

* [Tweet](https://github.com/desmondmorris/node-twitter/tree/master/examples#tweet)
Expand Down