首页 > 解决方案 > Windows Community Toolkit Twitter service - get full timeline

问题描述

How to get the timeline of all people, which I currently follow? I see in the documentation only the way to get the timeline of single person.

标签: c#twitteruwpwindows-community-toolkit

解决方案


你需要的是这个端点:

获取状态/home_timeline

请参阅 Twitter API文档

此端点已TwitterDataProvider方法中实现,可以通过RequestAsync<T>Twitter 服务调用。

var config = new TwitterDataConfig() { QueryType = TwitterQueryType.Home, Query = "" };
var timeline = await twitterService.RequestAsync<Tweet>( config );

推荐阅读