CartoDBClient.oAuthCartoDB.AccessTokenGet C# (CSharp) Метод

AccessTokenGet() публичный Метод

Exchange the request token for an access token.
public AccessTokenGet ( string authToken, string verifier ) : void
authToken string The oauth_token is supplied by CartoDB's authorization page following the callback.
verifier string
Результат void
        public void AccessTokenGet(string authToken, string verifier)
        {
            this.Token = authToken;
            this.Verifier = verifier;

            string response = oAuthWebRequest(Method.GET, ACCESS_TOKEN, String.Empty);

            if (response.Length > 0)
            {
                //Store the Token and Token Secret
                NameValueCollection qs = HttpUtility.ParseQueryString(response);
                if (qs["oauth_token"] != null)
                {
                    this.Token = qs["oauth_token"];
                }
                if (qs["oauth_token_secret"] != null)
                {
                    this.TokenSecret = qs["oauth_token_secret"];
                }
            }
        }