In order to make request to the instagram api. I require an access token.
Which is documented here. http://instagram.com/developer/authentication/
These access token can change so i need to lookup via the api to get the "code" and then the access token. Most of the examples i see online prompt the user to instagram which then calls the callback url and off you go and generate the access_token.
How can i via the api ( and not logging into instragram ) get the inital "code"/
I was hoping for something like this.
var accessUrl = string.Format(
"https://instagram.com/oauth/authorize/?client_id={0}&redirect_uri={1}&response_type=code",
instagramClientId, redirectUrl);
WebRequest request = WebRequest.Create(accessUrl);
WebResponse response = request.GetResponse();
To be clear I'm not asking how to get the access_token but how do I get the "code" than generates the access_token without logging into instagram