本文整理汇总了C#中Api.addBoardTwitterFeed方法的典型用法代码示例。如果您正苦于以下问题:C# Api.addBoardTwitterFeed方法的具体用法?C# Api.addBoardTwitterFeed怎么用?C# Api.addBoardTwitterFeed使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Api
的用法示例。
在下文中一共展示了Api.addBoardTwitterFeed方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: getAllDataWithHashtag
//.........这里部分代码省略.........
feedobj.Add("FeedId", FeedId);
feedobj.Add("FeedUrl", FeedUrl);
dataArray.Add(feedobj);
Domain.Socioboard.Domain.Boardtwitterfeeds twitterfeed = new Domain.Socioboard.Domain.Boardtwitterfeeds();
twitterfeed.Id = Guid.NewGuid();
twitterfeed.FromName = feedobj["Name_From"].ToString();
twitterfeed.FromId = feedobj["Id_From"].ToString();
twitterfeed.FromPicUrl = feedobj["Imageurl"].ToString();
twitterfeed.Text = feedobj["Text"].ToString();
twitterfeed.Feedid = feedobj["FeedId"].ToString();
twitterfeed.Twitterprofileid = BaordTwitterId;
twitterfeed.Isvisible = true;
try
{
twitterfeed.Createdat = DateTime.Parse(feedobj["Create_edat"].ToString());
}
catch { }
try
{
twitterfeed.Retweetcount = Convert.ToInt32(feedobj["Retweetcount"].ToString());
}
catch { }
try
{
twitterfeed.Favoritedcount = Convert.ToInt32(feedobj["Favoritedcount"].ToString());
}
catch { }
if (!Boardrepo.checkTwitterFeedExists(twitterfeed.Feedid, BaordTwitterId))
{
//twtFeedsList.Add(twitterfeed);
Boardrepo.addBoardTwitterFeed(twitterfeed);
}
exitcount++;
// "https://twitter.com/hashtag/" + hasttagname + "?src=tren"
}
}
try
{
string paginationdataurl = Utils.getBetween(page, "data-max-position=\"", "\"");
string paginationUrl = "https://twitter.com/i/search/timeline?q=" + hasttagname + "&src=typd&vertical=default&include_available_features=1&include_entities=1&max_position=" + paginationdataurl;
while (exitcount <500)
{
page = globushelper.getHtmlfromUrl(new Uri(paginationUrl), "", "");
if (!page.Contains("has_more_items"))
{
return dataArray;
}