Ejemplo n.º 1
0
        private OAuthToken GetRefreshedAuthorizeCredential()
        {
            StringBuilder auth = new StringBuilder();

            auth.Append(string.Format("{0}{1}", Address, "/oauth/AccessToken"));
            auth.Append(string.Format("?client_id={0}", this.ClientId));
            auth.Append(string.Format("&client_secret={0}", this.ClientSecret));
            auth.Append("&grant_type=client_credentials");
            auth.Append("&scope=SMS");
            return(OAuthToken.ParseJSON(this.DoPost("oauth/token", auth)));
        }