Show / Hide Table of Contents

Class TwitterService

Inheritance
System.Object
TwitterService
Namespace: CommonBotLibrary.Services
Assembly: cs.temp.dll.dll
Syntax
public class TwitterService : IWebpageService, ISearchable<IWebpage>

Constructors

TwitterService(ITwitterCredentials)

Constructs an implementation that searches Twitter.

Declaration
public TwitterService(ITwitterCredentials credentials = null)
Parameters
Type Name Description
ITwitterCredentials credentials

Defaults to Twitter property in Tokens if null.

Methods

GetRecentTweetsAsync(String, Boolean, Boolean)

Searches twitter.com for recent tweets of a user.

Declaration
public Task<IEnumerable<ITweet>> GetRecentTweetsAsync(string handle, bool includeRTs = true, bool includeReplies = false)
Parameters
Type Name Description
System.String handle

The handle of the user to fetch tweets for.

System.Boolean includeRTs

Include retweets in response or not.

System.Boolean includeReplies

Include replies in response or not.

Returns
Type Description
Task<IEnumerable<ITweet>>

A collection of relevant tweets.

See Also
TOS
Back to top © 2017 - Borja Canseco