本文介绍了怎么看,如果用户使用的是C#Twitter的API包装Tweetsharp跟着你在Twitter上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到有一个API调用Frienships /显示,但我不知道如何解析响应,以获得真/假。

I see there is a API call for Frienships/Show, but I am not sure how to parse the response to get the true/false.

下面是我的code迄今:

Here is my code so far:

    var twitter = FluentTwitter.CreateRequest()
                    .AuthenticateAs(_userName, _password)
                    .Friendships().Verify(_userNameToCheck)
                    .AsJson();

    var response = twitter.Request();

此外,一旦通过验证,该怎么办设置用户跟着你?

Also, once authenticated, how to do set a user to follow you?

推荐答案

通过TweetSharp您可以访问的友谊/ API存在这种方式:

With TweetSharp you can access the friendships/exists API this way:

var twitter = FluentTwitter.CreateRequest()
                .AuthenticateAs(_username, _password)
                .Friendships()
                .Verify(_username).IsFriendsWith(_userNameToCheck)
                .AsJson();

有没有办法设置了用户跟着你,他们不得不选择跟着你自己。

There is no way to "set a user to follow you", they have to choose to follow you on their own.

这篇关于怎么看,如果用户使用的是C#Twitter的API包装Tweetsharp跟着你在Twitter上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 16:44