private string GetAuthToken(string username, string password)
        {
            var requester = new DataRequester();

            var postData = string.Format(TokenRequestUrlParams, username, password);
            var response = requester.Request(TokenRequestUrl, postData);

            var auth = JsonConvert.DeserializeObject<AuthInfo>(response).access_token;

            return auth;
        }
예제 #2
0
        private string GetAuthToken(string username, string password)
        {
            var requester = new DataRequester();

            var postData = string.Format(TokenRequestUrlParams, username, password);
            var response = requester.Request(TokenRequestUrl, postData);

            var auth = JsonConvert.DeserializeObject <AuthInfo>(response).access_token;

            return(auth);
        }