Designer News API
NodeJS client for accessing the Designer News API.
Installation
The library is available on npm:
npm install designer-news
Configuration
var DN = ;// Configurevar config = {thisoauthKey = 'abc123'thisoauthSecret = 'foobar'// optional, if you have itthisaccessToken = 'jfosdf9sud98fds0f8snd0fs8dnf'};// Create the clientvar client = config;
Usage
Authentication
// If configured without an access token, you will need// to authenticate and retrieve one. Here's the password flow:clientauth;
Retrieving Data
The JS function names roughly follow the same convention as the API URLs.
client;clientstories;clientstories;clientstories;clientstories;clientstories;clientstories;clientcomments;clientcomments;clientcomments;clientmotd;clientmotd;clientmotd;
Promises
All asynchronous calls return a promise, which can be used as an alternative to providing a callback.
clientauth;
Links
Author
Ryan LeFevre - GitHub, Twitter, Email
License
Available under the MIT license. See the LICENSE file for more info.