Facebook

Facebook class

new Facebook()

Extends Core

Example
const facebook = new Facebook({
 appId: 'your-app-id',
 appSecret: 'your-app-secret',
});

facebook.get('some-facebook-id').then((data) => {
 console.log(data);
});

const stream = facebook.stream(':some-page-id/feed');

stream.on('message', (message) => {
 console.log(message);
});
Static Members
get(url, [options], [callback])
post(url, [options], [callback])
delete(url, [options], [callback])
stream(url, [options])
Instance Members
constructor([config], [options])

Github

Github class

new Github()

Extends Core

Example
const github = new Github({
 accessToken: 'your-access-token',
});

github.get('some-github-route').then((data) => {
 console.log(data);
});
Static Members
get(url, [options], [callback])
post(url, [options], [callback])
delete(url, [options], [callback])
Instance Members
constructor([config], [options])

Instagram

Instagram class

new Instagram()

Extends Core

Example
const instagram = new Instagram({
 clientId: 'your-client-id',
 accessToken: 'your-access-token',
});

instagram.get('some-instagram-route').then((data) => {
 console.log(data);
});

// Streaming can be used on all endpoints taking MIN_TAG_ID as parameter
const stream = instagram.stream('tags/:tag-name/media/recent');

stream.on('message', (message) => {
 console.log(message);
});
Static Members
get(url, [options], [callback])
post(url, [options], [callback])
delete(url, [options], [callback])
stream(url, [options])
Instance Members
constructor([config], [options])

Tumblr

Tumblr class

new Tumblr()

Extends Core

Example
const tumblr = new Tumblr({
 consumerKey: 'your-consumer-key',
});

tumblr.get('some-tumblr-route').then((data) => {
 console.log(data);
});

const stream = tumblr.stream('blog/museumdemain.tumblr.com/posts');

stream.on('message', (message) => {
 console.log(message);
});
Static Members
get(url, [options], [callback])
post(url, [options], [callback])
stream(url, [options])
Instance Members
constructor([config], [options])

Twitter

Twitter class

new Twitter()

Extends Core

Example
const twitter = new Twitter({
 consumerKey: 'your-app-consumer-key',
 consumerSecret: 'your-app-consumer-secret',
 accessToken: 'your-app-access-token',
 accessTokenSecret: 'your-app-access-token-secret',
});

twitter.get('some-twitter-route').then((data) => {
 console.log(data);
});
Static Members
get(url, [options], [callback])
post(url, [options], [callback])
delete(url, [options], [callback])
Instance Members
constructor([config], [options])