Service to get the latest Instagram posts from a user
MIT License
Service to get the latest Instagram posts from a user
$ 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"
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).