CoreTweet  2.0.0-beta.2
Yet another .NET Twitter Library
Public Member Functions | List of all members
CoreTweet.V2.RecentSearchApi Class Reference

Provides a set of methods for the wrapper of Recent search v2 API on Twitter API v2. More...

Inheritance diagram for CoreTweet.V2.RecentSearchApi:
CoreTweet.Core.ApiProviderBase

Public Member Functions

RecentSearchResponse GetTweets (params Expression< Func< string, object >>[] parameters)
 
RecentSearchResponse GetTweets (IDictionary< string, object > parameters)
 
RecentSearchResponse GetTweets (object parameters)
 
RecentSearchResponse GetTweets (string query, DateTimeOffset? end_time=null, TweetExpansions? expansions=null, int? max_results=null, MediaFields? media_fields=null, string next_token=null, PlaceFields? place_fields=null, PollFields? poll_fields=null, long? since_id=null, DateTimeOffset? start_time=null, TweetFields? tweet_fields=null, long? until_id=null, UserFields? user_fields=null)
 
Task< RecentSearchResponseGetTweetsAsync (params Expression< Func< string, object >>[] parameters)
 
Task< RecentSearchResponseGetTweetsAsync (IDictionary< string, object > parameters, CancellationToken cancellationToken=default(CancellationToken))
 
Task< RecentSearchResponseGetTweetsAsync (object parameters, CancellationToken cancellationToken=default(CancellationToken))
 
Task< RecentSearchResponseGetTweetsAsync (string query, DateTimeOffset? end_time=null, TweetExpansions? expansions=null, int? max_results=null, MediaFields? media_fields=null, string next_token=null, PlaceFields? place_fields=null, PollFields? poll_fields=null, long? since_id=null, DateTimeOffset? start_time=null, TweetFields? tweet_fields=null, long? until_id=null, UserFields? user_fields=null, CancellationToken cancellationToken=default(CancellationToken))
 

Additional Inherited Members

- Public Attributes inherited from CoreTweet.Core.ApiProviderBase
TokensBase IncludedTokens => this.Tokens
 Gets the tokens being used in this instance. More...
 
- Properties inherited from CoreTweet.Core.ApiProviderBase
TokensBase Tokens [get, set]
 Gets or sets the OAuth tokens. More...
 

Detailed Description

Provides a set of methods for the wrapper of Recent search v2 API on Twitter API v2.

Member Function Documentation

◆ GetTweets() [1/4]

RecentSearchResponse CoreTweet.V2.RecentSearchApi.GetTweets ( IDictionary< string, object >  parameters)
inline

Returns Tweets from the last 7 days that match a search query.

Available parameters:

- string query (required)

- DateTimeOffset end_time (optional)

- TweetExpansions expansions (optional)

- int max_results (optional)

- MediaFields media_fields (optional, query string: "media.fields")

- string next_token (optional)

- PlaceFields place_fields (optional, query string: "place.fields")

- PollFields poll_fields (optional, query string: "poll.fields")

- long since_id (optional)

- DateTimeOffset start_time (optional)

- TweetFields tweet_fields (optional, query string: "tweet.fields")

- long until_id (optional)

- UserFields user_fields (optional, query string: "user.fields")

Parameters
parametersThe parameters.
Returns
The Tweets.

◆ GetTweets() [2/4]

RecentSearchResponse CoreTweet.V2.RecentSearchApi.GetTweets ( object  parameters)
inline

Returns Tweets from the last 7 days that match a search query.

Available parameters:

- string query (required)

- DateTimeOffset end_time (optional)

- TweetExpansions expansions (optional)

- int max_results (optional)

- MediaFields media_fields (optional, query string: "media.fields")

- string next_token (optional)

- PlaceFields place_fields (optional, query string: "place.fields")

- PollFields poll_fields (optional, query string: "poll.fields")

- long since_id (optional)

- DateTimeOffset start_time (optional)

- TweetFields tweet_fields (optional, query string: "tweet.fields")

- long until_id (optional)

- UserFields user_fields (optional, query string: "user.fields")

Parameters
parametersThe parameters.
Returns
The Tweets.

◆ GetTweets() [3/4]

RecentSearchResponse CoreTweet.V2.RecentSearchApi.GetTweets ( params Expression< Func< string, object >>[]  parameters)
inline

Returns Tweets from the last 7 days that match a search query.

Available parameters:

- string query (required)

- DateTimeOffset end_time (optional)

- TweetExpansions expansions (optional)

- int max_results (optional)

- MediaFields media_fields (optional, query string: "media.fields")

- string next_token (optional)

- PlaceFields place_fields (optional, query string: "place.fields")

- PollFields poll_fields (optional, query string: "poll.fields")

- long since_id (optional)

- DateTimeOffset start_time (optional)

- TweetFields tweet_fields (optional, query string: "tweet.fields")

- long until_id (optional)

- UserFields user_fields (optional, query string: "user.fields")

Parameters
parametersThe parameters.
Returns
The Tweets.

◆ GetTweets() [4/4]

RecentSearchResponse CoreTweet.V2.RecentSearchApi.GetTweets ( string  query,
DateTimeOffset?  end_time = null,
TweetExpansions expansions = null,
int?  max_results = null,
MediaFields media_fields = null,
string  next_token = null,
PlaceFields place_fields = null,
PollFields poll_fields = null,
long?  since_id = null,
DateTimeOffset?  start_time = null,
TweetFields tweet_fields = null,
long?  until_id = null,
UserFields user_fields = null 
)
inline

Returns Tweets from the last 7 days that match a search query.

Parameters
queryrequired.
end_timeoptional.
expansionsoptional.
max_resultsoptional.
media_fieldsoptional.
next_tokenoptional.
place_fieldsoptional.
poll_fieldsoptional.
since_idoptional.
start_timeoptional.
tweet_fieldsoptional.
until_idoptional.
user_fieldsoptional.
Returns
The Tweets.

◆ GetTweetsAsync() [1/4]

Task<RecentSearchResponse> CoreTweet.V2.RecentSearchApi.GetTweetsAsync ( IDictionary< string, object >  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Returns Tweets from the last 7 days that match a search query.

Available parameters:

- string query (required)

- DateTimeOffset end_time (optional)

- TweetExpansions expansions (optional)

- int max_results (optional)

- MediaFields media_fields (optional, query string: "media.fields")

- string next_token (optional)

- PlaceFields place_fields (optional, query string: "place.fields")

- PollFields poll_fields (optional, query string: "poll.fields")

- long since_id (optional)

- DateTimeOffset start_time (optional)

- TweetFields tweet_fields (optional, query string: "tweet.fields")

- long until_id (optional)

- UserFields user_fields (optional, query string: "user.fields")

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The Tweets.

◆ GetTweetsAsync() [2/4]

Task<RecentSearchResponse> CoreTweet.V2.RecentSearchApi.GetTweetsAsync ( object  parameters,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Returns Tweets from the last 7 days that match a search query.

Available parameters:

- string query (required)

- DateTimeOffset end_time (optional)

- TweetExpansions expansions (optional)

- int max_results (optional)

- MediaFields media_fields (optional, query string: "media.fields")

- string next_token (optional)

- PlaceFields place_fields (optional, query string: "place.fields")

- PollFields poll_fields (optional, query string: "poll.fields")

- long since_id (optional)

- DateTimeOffset start_time (optional)

- TweetFields tweet_fields (optional, query string: "tweet.fields")

- long until_id (optional)

- UserFields user_fields (optional, query string: "user.fields")

Parameters
parametersThe parameters.
cancellationTokenThe cancellation token.
Returns
The Tweets.

◆ GetTweetsAsync() [3/4]

Task<RecentSearchResponse> CoreTweet.V2.RecentSearchApi.GetTweetsAsync ( params Expression< Func< string, object >>[]  parameters)
inline

Returns Tweets from the last 7 days that match a search query.

Available parameters:

- string query (required)

- DateTimeOffset end_time (optional)

- TweetExpansions expansions (optional)

- int max_results (optional)

- MediaFields media_fields (optional, query string: "media.fields")

- string next_token (optional)

- PlaceFields place_fields (optional, query string: "place.fields")

- PollFields poll_fields (optional, query string: "poll.fields")

- long since_id (optional)

- DateTimeOffset start_time (optional)

- TweetFields tweet_fields (optional, query string: "tweet.fields")

- long until_id (optional)

- UserFields user_fields (optional, query string: "user.fields")

Parameters
parametersThe parameters.
Returns
The Tweets.

◆ GetTweetsAsync() [4/4]

Task<RecentSearchResponse> CoreTweet.V2.RecentSearchApi.GetTweetsAsync ( string  query,
DateTimeOffset?  end_time = null,
TweetExpansions expansions = null,
int?  max_results = null,
MediaFields media_fields = null,
string  next_token = null,
PlaceFields place_fields = null,
PollFields poll_fields = null,
long?  since_id = null,
DateTimeOffset?  start_time = null,
TweetFields tweet_fields = null,
long?  until_id = null,
UserFields user_fields = null,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inline

Returns Tweets from the last 7 days that match a search query.

Parameters
queryrequired.
end_timeoptional.
expansionsoptional.
max_resultsoptional.
media_fieldsoptional.
next_tokenoptional.
place_fieldsoptional.
poll_fieldsoptional.
since_idoptional.
start_timeoptional.
tweet_fieldsoptional.
until_idoptional.
user_fieldsoptional.
cancellationTokenThe cancellation token.
Returns
The Tweets.

The documentation for this class was generated from the following file: