Skip to content
Tiny helper to fetch Instagram posts.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
index.js
package-lock.json
package.json

README.md

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

You can’t perform that action at this time.