ic

ig-client

Streaming Instagram API client.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

0

Maintenance

Last Commit

8yrs ago

Contributors

1

Package

Dependencies

1

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

ig-client

Streaming Instagram API client.

npm install ig-client

Usage

var ig = require('ig-client')({
    clientId: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
});

var r = ig({
    method: 'GET',
    uri: '/users/9243'
}).pipe(process.stdout);

r.on('error', function (err) {
    console.log('oh oh');
});

Supports callbacks as well.

ig({
    method: 'GET',
    uri: '/users/9243'
}, function (err, body) {
    if (err) console.log('uh oh');

    console.log(body); // json object
});

Authenticated requests can be made by passing an access_token as the token item in the request options.

ig({
    method: 'GET',
    uri: '/users/9243',
    token: 'xxxx.xxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
}, function (err, body) {});

Simple GET requests can just provide a string uri.

ig('/users/9243').pipe(process.stdout);

Intention

This is mean to be a simple abstraction on top of request to remove some boilerplate when building up Instagram API calls. Would be cool to pair w/ an Instagram version of something like github-oauth to get an access token for making authenticated requests.

If you want to just mess around – when you explore the Instagram API Docs you can use the generated access_token they provide.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial