| IKomfoProviderRetrieveTweetsAsync Method |
Retrieves the tweets asynchronously.
Namespace: KomfoSharp.ProviderAssembly: KomfoSharp (in KomfoSharp.dll) Version: 1.0.0.0 (1.0.0.0)
SyntaxTask<IEnumerable<Tweet>> RetrieveTweetsAsync(
string accessToken,
IEnumerable<string> ids,
Nullable<DateTime> since = null,
Nullable<DateTime> until = null,
TweetFields fields = TweetFields.All
)
Parameters
- accessToken
- Type: SystemString
The access token. - ids
- Type: System.Collections.GenericIEnumerableString
The list of Twitter handles (without "@" character). - since (Optional)
- Type: SystemNullableDateTime
UTC time for the earliest tweet. Always matched again the GatheredTime.
Must be earlier than until.
The since can be maximally 30 days in the past.
Default value is 30 minutes in the past from the current UTC time. - until (Optional)
- Type: SystemNullableDateTime
UTC time for the latest tweet. Always matched again the GatheredTime.
Must be later than since.
Default value is the current time in UTC. - fields (Optional)
- Type: KomfoSharp.ModelTweetFields
The fields to be retrieved and filled in the Tweet.
Return Value
Type:
TaskIEnumerableTweet
The tweets list sorted by
GatheredTime from newest to oldest. If no tweets are retrieved an empty list is returned.
Examplesvar tweets = await komfoProvider.RetrieveTweetsAsync("<your_access_token>", new[] { "dkoroedova", "bkoroedova" });
foreach (var tweet in tweets)
{
this.ShowTweet(tweet);
}
See Also