Skip to content

kevva/instagram-latest-posts

Repository files navigation

instagram-latest-posts Build Status

Service to get the latest Instagram posts from a user

Deploy to now

Usage

$ git clone https://github.com/kevva/instagram-latest-posts.git
$ now instagram-latest-posts --env INSTAGRAM_USERNAME="kevvayo" --env ACCESS_ALLOW_ORIGIN="*" --env MAX_POSTS="12" --env CACHE_MAX_AGE="3600"

Environment variables

Define the following environment variables:

  • INSTAGRAM_USERNAME - The username you like to get posts from.
  • ACCESS_ALLOW_ORIGIN - The URL of your website or * if you want to allow any origin (not recommended), for the Access-Control-Allow-Origin header.
  • MAX_POSTS - The number of posts returned. Optional. Defaults to 6.
  • CACHE_MAX_AGE - The maximum age for shared cache-control in seconds. Optional. Defaults to 3600 (1 hour).

About

Service to get the latest Instagram posts from a user

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published