This project has moved. For the latest updates, please go here.

Raw Queries

A raw query lets you manually add URL segments and parameters to execute any HTTP GET endpoint in the Twitter API.

Entity: Raw
Type: N/A
Parameters/Filters:
Name Purpose Type Required
QueryString URL segments + query parameters string yes

Notes:
  1. Don't include the Base URL in the query string, as it is already set in your TwitterContext instance.
  2. Url Encode all parameters.
Example:
            string unencodedStatus = "LINQ to Twitter";
            string encodedStatus = Uri.EscapeDataString(unencodedStatus);
            string queryString = "search/tweets.json?q=" + encodedStatus;

            var rawResult =
                await
                (from raw in twitterCtx.RawQuery
                 where raw.QueryString == queryString
                 select raw)
                .SingleOrDefaultAsync();

            if (rawResult != null)
                Console.WriteLine(
                    "Response from Twitter: \n\n" + rawResult.Response);

Twitter API: Any HTTP GET endpoint in the Twitter API

Last edited Nov 29, 2013 at 4:08 AM by JoeMayo, version 4