Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dominicrico/instajs
Instagram API wrapper written for NodeJS
https://github.com/dominicrico/instajs
Last synced: about 7 hours ago
JSON representation
Instagram API wrapper written for NodeJS
- Host: GitHub
- URL: https://github.com/dominicrico/instajs
- Owner: dominicrico
- License: mit
- Created: 2016-08-25T08:51:22.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-25T09:13:38.000Z (about 8 years ago)
- Last Synced: 2024-09-30T18:12:18.861Z (about 1 month ago)
- Language: CoffeeScript
- Size: 4.18 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# InstaJS
Just another Instagram API wrapper for your NodeJS Project.## Install
```
npm install --save instajs
```## Usage
Use InstaJS as you want. You can use classic callbacks or you can use pomises.
```javascript
instajs = require('instajs');// use it without any options just pass your access_token
var insta = new instajs('[your instagram access_token]')// or you can pass an object with some additional options
var insta = new instajs({
timeout: 20000, // timeout for API calls in ms
limit: 200, // limit for returned objects of the API calls
access_token: '[your instagram access_token]' //your API access_token
});//Usage with promises
insta.getUser('self').then(function(data){
//do something with data
}).catch(function(err){
//handle error
});//Usage with callbacks
insta.getUser('self', function(err, data){
if (err) {
//handle error
}//do something with data
});
```## Documentation
Documentation of all the moethods can be found [here](docs/instajs/0.1.0/InstaJS.html)