protected override Task <string> GetUsernameAsync(IDictionary <string, string> accountProperties) { var request = base.CreateRequest("GET", new Uri("https://api.dropbox.com/1/account/info"), new Account(string.Empty, accountProperties)); return(request.GetResponseAsync().ContinueWith(reqTask => { var responseText = reqTask.Result.GetResponseText(); return WebEx.GetValueFromJson(responseText, "display_name"); })); }
protected override Task <string> GetUsernameAsync(IDictionary <string, string> accountProperties) { var request = base.CreateRequest("GET", new Uri("https://www.googleapis.com/plus/v1/people/me"), new Dictionary <string, string> { { "fields", "url,id" } }, new Account(string.Empty, accountProperties)); return(request.GetResponseAsync().ContinueWith(reqTask => { var responseText = reqTask.Result.GetResponseText(); return WebEx.GetValueFromJson(responseText, "id"); })); }