private Task<IDictionary<string, string>> GetRequestToken(IRestClient client) { return client .ExecutTaskAsync(new RestRequest("request_token")) .ContinueWith(task => task.Result.Content) .ParseQueryString(); }
private Task<IDictionary<string, string>> GetAccessToken(IRestClient client) { Debug.Assert(client.Authenticator is OAuth1Authenticator); return client .ExecutTaskAsync(new RestRequest("access_token")) .ContinueWith(task => task.Result.Content) .ParseQueryString(); }