6
votes

I'm going to implement a schedule job using c# which will schedule to run every 3 hours and get the latest 50 images posted in instagarm, and saved in the local cache directory to display instagarm images in site.

So far I have implemented as per the https://www.instagram.com/developer

When I calling the below url (REPLACING CORRECT VALUES) It redirecting to instagram login screen, So is this one time login? since I'm going to use this in a schedule job if this login expired will cause issues.

https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=code

1

1 Answers

6
votes

When you login first time it should store the auth token somewhere and this token will be used to authenticate all your requests.

Try to use InstaSharp - a wrapped over Instagram API.

There is also some examples about how to use it, how to setup the authentication etc.