Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>For those you read this question later on I was able to solve this problem. Below are my answers depending on your situation.</p> <p>If you simply want to use Json instead of RSS you can do it like this:</p> <pre><code> HttpClient client = new HttpClient(); HttpResponseMessage response = await client.GetAsync(new Uri("https://api.twitter.com/1/statuses/user_timeline.json?screen_name=ScreenName")); string ApiResponse = await response.Content.ReadAsStringAsync(); List&lt;Tweet&gt; tweets = await JsonConvert.DeserializeObjectAsync&lt;List&lt;Tweet&gt;&gt;(ApiResponse); _model.Tweets.Clear(); foreach (var item in tweets) { _model.Tweets.Add(new Tweet { Name = "@UserName", Message = item.Text, Image = new BitmapImage(new Uri("ms-appx:Assets/sampleLocalImage", UriKind.RelativeOrAbsolute)), }); </code></pre> <p>However because of API 1.1 you must be authenticated before EACH call to the API for this is used Linq to Twitter. Here is the code for Authorization:</p> <pre><code> var auth = new SingleUserAuthorizer { Credentials = new InMemoryCredentials { ConsumerKey = TwitterSettings.ConsumerKey, ConsumerSecret = TwitterSettings.ConsumerKeySecret, OAuthToken = TwitterSettings.AccessToken, AccessToken = TwitterSettings.AccessTokenSecret, } }; auth.Authorize(); </code></pre> <p>And the Code to Perform a Search(This is the code you want to use if using Twitter API 1.1):</p> <pre><code> var twitterCtx = new TwitterContext(auth); var statusTweets = from tweet in twitterCtx.Status where tweet.Type == StatusType.User &amp;&amp; tweet.ScreenName == "ScreenName" select tweet; _model.Tweets.Clear(); foreach (var item in statusTweets) { _model.Tweets.Add(new Tweet { Name = item.User.Name, Message = item.Text, Image = new BitmapImage(new Uri(item.User.ProfileImageUrl)), }); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload