Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You're using the authorizer properly, but then you aren't using LINQ to Twitter to make your query. You're using HttpClient instead and there isn't a relationship between the two APIs. Here's a example of how to perform a Search with LINQ to Twitter:</p> <pre><code> var srch = (from search in twitterCtx.Search where search.Type == SearchType.Search &amp;&amp; search.Query == "LINQ to Twitter" &amp;&amp; search.Count == 7 select search) .SingleOrDefault(); Console.WriteLine("\nQuery: {0}\n", srch.SearchMetaData.Query); srch.Statuses.ForEach(entry =&gt; Console.WriteLine( "ID: {0, -15}, Source: {1}\nContent: {2}\n", entry.StatusID, entry.Source, entry.Text)); </code></pre> <p>You can visit the <a href="https://linqtotwitter.codeplex.com/wikipage?title=Searching%20Twitter&amp;referringTitle=Performing%20Searches%20and%20Finding%20Trends" rel="nofollow">LINQ to Twitter Search Documentation</a> for more info on available parameters.</p> <p><strong>Update</strong>, Here's an asynchronous sample:</p> <pre><code> (from search in twitterCtx.Search where search.Type == SearchType.Search &amp;&amp; search.Query == QueryTextBox.Text select search) .MaterializedAsyncCallback(asyncResponse =&gt; Dispatcher.BeginInvoke(() =&gt; { if (asyncResponse.Status != TwitterErrorStatus.Success) { MessageBox.Show("Error during query: " + asyncResponse.Exception.Message); return; } Search search = asyncResponse.State.SingleOrDefault(); var tweets = (from status in search.Statuses select new Tweet { UserName = status.User.Identifier.ScreenName, Message = status.Text, ImageSource = status.User.ProfileImageUrl }) .ToList(); SearchListBox.ItemsSource = tweets; })); </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