我正在開發一個使用Twitter API收集用戶信息的應用程序。 我在當前的項目中使用linqToTwitter,但它不允許我做很多事情。適用於Windows 8 metro應用程序的Twitter API資源
例如,我需要獲取搜索用戶的關注者列表。 LinqToTwitter允許我找到名稱被給出的用戶以及誰在身份驗證用戶的追隨者列表中。 代碼如下:
public List<User> RecupererFollower()
{
var friendship =
(from friend in MainPage.twitterCtxProp.Friendship
where friend.Type == FriendshipType.FollowersList
&& friend.SourceScreenName==MainPage.texte
select friend).ToList();
Followers = (from friend in friendship
select new User //Un utilisateur est créé grâce aux données récupérées précédemment.
{
Name = friend.ScreenName
}).ToList(); //Cette partie constitue la liste de tweets récupérés précédemment.
return Followers;
}
但是,即使這行不通,因爲查詢需要特定用戶的特定屏幕名。
我不想要這個,我想要更多的一般功能。
我能做些什麼? 有人知道Windows 8 metro應用程序的其他資源?
目前尚不清楚你的問題是什麼 - 你想把你給什麼樣的輸入什麼數據? 「更一般的功能」是什麼意思?意識到一個API客戶端庫可能只會讓你訪問API本身,你必須自己構建你的應用程序的功能。 – millimoose 2013-02-28 14:13:27