Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
var statusTweets = from tweet in twitterCtx.Status
                   where tweet.Type == StatusType.User &&
                         tweet.ScreenName == "mayo" 
                   select tweet;

Hi, I am quite new to twitter api. Above is my code for retrieving "mayo" tweets. However, the information retrieved does not include timestamp. How can I include timestamp? .CreatedAt? Guide me please. Thank you
Posted
Comments
ZurdoDev 8-Nov-12 15:25pm    
Have you checked on twitter's site?
Member 8477958 8-Nov-12 21:15pm    
Yes :) solved. Thank you!
ZurdoDev 9-Nov-12 7:59am    
Good to hear. Maybe you can post it as a solution so this does not show up in the Unanswered list anymore.

1 solution

using .CreatedAt :)

CSS
http://linqtotwitter.codeplex.com/wikipage?title=Querying%20the%20User%20Timeline&referringTitle=Making%20Status%20Queries%20and%20Calls

The Parameters/Filters list shows what you can use in the where clause of the query. In the documentation, there's also an Entity field with a link to the returned type. In this case the return type will be Status, which is documented here:

http://linqtotwitter.codeplex.com/wikipage?title=Status%20Entity&referringTitle=Querying%20the%20User%20Timeline

There are many examples in the downloadable source code that will give you an idea of how to use LINQ to Twitter.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900