Exemple #1
0
        public async ValueTask <IEnumerable <TwitterStatus> > FavoritesTimeline()
        {
            var statuses = await oAuthApiRequest
                           .GetAsync <IEnumerable <TwitterStatus> >("https://api.twitter.com/1.1/favorites/list.json",
                                                                    TwitterOptions.Default())
                           .ConfigureAwait(false);

            return(await UpdateUserConnections(statuses).ConfigureAwait(false));
        }
Exemple #2
0
        public async ValueTask <IEnumerable <TwitterStatus> > MentionsTimeline(int count)
        {
            var statuses = await oAuthApiRequest
                           .GetAsync <IEnumerable <TwitterStatus> >("https://api.twitter.com/1.1/statuses/mentions_timeline.json",
                                                                    TwitterOptions.Default(count))
                           .ConfigureAwait(false);

            return(await UpdateUserConnections(statuses).ConfigureAwait(false));
        }