desmondmorris / node-twitter

Client library for the Twitter REST and Streaming API's.
https://www.npmjs.com/package/twitter
MIT License
1.27k stars 237 forks source link

jsonExtensionOverride #233

Closed DevGorilla closed 7 years ago

DevGorilla commented 7 years ago

Adding .json to the request causes some calls in the Ads API to fail such as the call for for paginating.

${adsAPIHost}/accounts/${accountId}/promoted_tweets?cursor=${body.next_cursor}

This optional boolean on the Get path means users can override adding .json for these edge cases while retaining functionality for the other APIs.

DevGorilla commented 7 years ago

https://github.com/desmondmorris/node-twitter/pull/232 is a better solution.