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; }
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); }