Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ig

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ig

Wraps the Instagram v1 API

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
161
increased by0.63%
Maintainers
1
Weekly downloads
 
Created
Source

node-ig

Simple wrapper around the v1 Instagram API

install

$ npm install ig

usage

application

ig needs to know about your applications client ID and client secret. You can configure it like this:

ig
.set('client id', clientId)
.set('client secret', clientSecret);

authentication

ig does not do any authentication and expects you to implement the oAuth2 authentication flow yourself.

After getting a users access token you can configure ig like such:

ig.set('token', accessToken);

api

User(opts)

Instagram user class wrap where opts is:

  • id - ID of the user to wrap
var ig = require('ig')
var user = ig.User({id: 123});
User.feed(opts, fn)

Retrieves feed for the authenticated user.

ig.User.feed()
.on('error', onerror)
.on('end', function (feed) {
  // do something with `feed'
});
User.likedMedia(opts, fn)

Retrieves liked media for the authenticated user.

ig.User.likedMedia()
.on('error', onerror)
.on('end', function (media) {
  // do something with `media'
});
User.search(user, fn)

Search for a user

ig.User.likedMedia()
.on('error', onerror)
.on('end', function (media) {
  // do something with `media'
});

more to come...

license

MIT

Keywords

FAQs

Package last updated on 10 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc