/// <summary>
 /// Gets an authorization URL using the specified <var>state</var> and
 /// request the specified <var>scope</var>.
 /// </summary>
 /// <param name="state">A unique state for the request.</param>
 /// <param name="scope">The scope of your application.</param>
 public string GetAuthorizationUrl(string state, InstagramScope scope)
 {
     return(String.Format(
                "https://api.instagram.com/oauth/authorize/?client_id={0}&redirect_uri={1}&response_type=code&state={2}&scope={3}",
                HttpUtility.UrlEncode(ClientId),
                HttpUtility.UrlEncode(RedirectUri),
                HttpUtility.UrlEncode(state),
                HttpUtility.UrlEncode(scope.ToString().Replace(", ", "+").ToLower())
                ));
 }
 /// <summary>
 /// Gets an authorization URL using the specified <var>state</var> and
 /// request the specified <var>scope</var>.
 /// </summary>
 /// <param name="state">A unique state for the request.</param>
 /// <param name="scope">The scope of your application.</param>
 public string GetAuthorizationUrl(string state, InstagramScope scope) {
     return String.Format(
         "https://api.instagram.com/oauth/authorize/?client_id={0}&redirect_uri={1}&response_type=code&state={2}&scope={3}",
         HttpUtility.UrlEncode(ClientId),
         HttpUtility.UrlEncode(RedirectUri),
         HttpUtility.UrlEncode(state),
         HttpUtility.UrlEncode(scope.ToString().Replace(", ", "+").ToLower())
     );
 }