我正在使用c#和xaml开发一个Windows应用商店应用。我正在尝试将twitter集成到其中,以便用户可以检查他的推文,并可以从我的应用程序发推文。
因此,当我尝试使用以下代码发布推文时,收到400错误。
HttpContent hc = new StringContent("Good Morning");
string hw = "HelloWorld";
string dc = "false";
httpClient.PostAsync(string.Format("https://api.twitter.com/1.1/statuses/update.json?status={0}&display_coordinates={1}", hw, dc), hc);
我在成功获得Twitter的oauth_token之后做了这个。即使在使用GetAsync()访问用户的推文时,我也得到相同的400。
请帮助这方面!!
先谢谢