This project has moved and is read-only. For the latest updates, please go here.

Retrieve status ID with username and date created parameters

Dec 31, 2013 at 12:32 PM
So I have the name of a user and the exact date the tweet was created in a List. Is it possible for me to use these two properties and retrieve the status ID of the tweet? I'd like to get the number of times the tweet was RTed. This is roughly what my 'incorrect but close' code looks like:
var getTweets = (from tweet in twitterCtx.Status
                         where tweet.Type == StatusType.User &&
                         tweet.ScreenName == NewStatusList[k].UserName && tweet.CreatedAt == NewStatusList[k].CreatedAt && tweet.Count == 1
                                                select tweet).SingleorDefault();
Dec 31, 2013 at 5:46 PM

The Parameters list in the Documentation identifies which parameters you can use for queries:

Querying a REST endpoint isn't like querying a SQL database because you only have what the endpoint exposes. In this case, the available parameters are limited to what the Twitter API allows.

Given the constraints, you have to use other creative means to accomplish your goal. In this case, I would stay with the StatusType.User query, but page through results until you get back to the date you need. Here's a blog post I wrote on how to page through a timeline: