我正在尝试使用C#开发Twitter。
我正在使用以下Oauth方法提交新推文:
string xml = _oAuth.oAuthWebRequest(
oAuthTwitter.Method.POST,
"http://twitter.com/statuses/update.xml",
"status="+tweet);
我如何关注一个用户?我在哪里可以找到所有oAuthWebRequest的支持,例如关注用户、检查用户是否关注我、取消关注用户等。
提前致谢。
编辑:
根据这些说明,我尝试了以下操作: http://www.lordyz.co.uk/2010/10/01/c-asp-net-twitter-api-oauth-example-continued/ string friend = HttpUtility.UrlEncode("ladygaga");
string xml = _oAuth.oAuthWebRequest(
oAuthTwitter.Method.POST,
"http://api.twitter.com/1/friendships/create/" + friend + ".xml", "");
这个有效!谢谢