1.0.1 • Published 6 years ago

valencia v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

valencia

Tiny helper to fetch Instagram posts. 553 bytes gzipped.

Install

npm i valencia --save

Usage

import valencia from 'valencia'

const feed = valencia({
  token: 'ACCESS_TOKEN',
  count: 4 // # of posts to fetch
}, ({ images, res, next }) => {
  // render data
})

console.dir(feed)
/*
{
  images: [...], // 4 images fetched and metadata
  res: {...}, // full response from Instagram
  next: function(done) // fetch next 4 posts
}
*/

feed.next(({images, res, next}) => // render next posts)

Dependencies

License

MIT License © Eric Bailey

1.0.1

6 years ago

1.0.0

6 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago