client.DefaultRequestHeaders.Authorization = System.Net.Http.Headers.AuthenticationHeaderValue.Parse("Basic " + base64);
var postData = new List<KeyValuePair<string, string>>();
postData.Add(new KeyValuePair<string, string>("grant_type", "password"));
postData.Add(new KeyValuePair<string, string>("client_secret", App.SECRETKEY));
postData.Add(new KeyValuePair<string, string>("client_id", App.APIKEY));
postData.Add(new KeyValuePair<string, string>("scope", "read,write"));
HttpContent content = new FormUrlEncodedContent(postData);