Package Exports
- instapics
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (instapics) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Instapics
A Node.JS wrapper for Instagram API.
How to use with JavaScript
var instapics = require('instapics');
var pics = new instapics({token: 'OAuth2 access_token'});
pics.feed({count: 5}, function(error, data) {
if (error) {
throw new Error(error);
}
return console.log(data);
});Or with CoffeeScript
instapics = require 'instapics'
pics = new instapics token: 'OAuth2 access_token'
pics.feed count: 5, (error, data) ->
throw new Error error if error
console.log dataInstall with NPM
npm install instapicsHow to retrieve Instagram OAuth2 access_token
Grab latest source code and install all dev dependencies
npm linkChange your host, client id, client secret in examples/get-access-token.coffee and after that run examples/get-access-token.coffee
coffee examples/get-access-token.coffeeAPI
- info (user id, callback)
- recent (user id, params, callback)
- feed (params, callback)