我如何包括Twitter时间戳 [英] how do i include twitter timestamp

查看:164
本文介绍了我如何包括Twitter时间戳的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

var statusTweets = from tweet in twitterCtx.Status
                   where tweet.Type == StatusType.User &&
                         tweet.ScreenName == "mayo" 
                   select tweet;


我是Twitter API的新手.上面是我检索"mayo"推文的代码.但是,检索到的信息不包括时间戳.如何添加时间戳? .CreatedAt?请引导我.谢谢


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

推荐答案

使用.CreatedAt :)

using .CreatedAt :)

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.


这篇关于我如何包括Twitter时间戳的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆