簡體   English   中英

c#Windows Phone 8.1 Twitter提要

[英]c# Windows Phone 8.1 Twitter Feeds

我有ac#Windows Phone 8.1應用程序,可以使用以下代碼進行登錄驗證:

             user = await App.MobileService.LoginAsync(MobileServiceAuthenticationProvider.Twitter);

            if (user.UserId != "")
                message = "You are now signed in -" + user.UserId;
            else
                message = "You must log in. Login Required";

            var dialog = new MessageDialog(message);
            dialog.Commands.Add(new UICommand("OK"));
            await dialog.ShowAsync();

我想檢索此特定用戶的Twitter feed。 我嘗試使用TwitterSharp API,但它僅適用於Windows Phone 8應用,不適用於8.1

您的問題過於籠統,但是您可以采取一些步驟來獲得理想的結果。

  1. 查看LINQ to Twitter ,那里是最好的Twitter庫之一
  2. 閱讀有關使用此庫獲取Twitter feed的文檔

歸結為要做這樣的事情:

var tweets = await (from tweet in twitterCtx.Status
                    where tweet.Type == StatusType.Home
                    select tweet).ToListAsync();

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM