Package com.twitter.clientlib.api
Class TweetsApi
- java.lang.Object
-
- com.twitter.clientlib.api.ApiCommon
-
- com.twitter.clientlib.api.TweetsApi
-
public class TweetsApi extends ApiCommon
-
-
Field Summary
-
Fields inherited from class com.twitter.clientlib.api.ApiCommon
localVarApiClient
-
-
Constructor Summary
Constructors Constructor Description TweetsApi()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddOrDeleteRulesResponseaddOrDeleteRules(AddOrDeleteRulesRequest addOrDeleteRulesRequest, Boolean dryRun)Add/Delete rules Add or delete rules from a user's active rule set.okhttp3.CalladdOrDeleteRulesAsync(AddOrDeleteRulesRequest addOrDeleteRulesRequest, Boolean dryRun, ApiCallback<AddOrDeleteRulesResponse> _callback)Add/Delete rules (asynchronously) Add or delete rules from a user's active rule set.okhttp3.CalladdOrDeleteRulesCall(AddOrDeleteRulesRequest addOrDeleteRulesRequest, Boolean dryRun, ApiCallback _callback)Build call for addOrDeleteRulesApiResponse<AddOrDeleteRulesResponse>addOrDeleteRulesWithHttpInfo(AddOrDeleteRulesRequest addOrDeleteRulesRequest, Boolean dryRun)Add/Delete rules Add or delete rules from a user's active rule set.TweetCreateResponsecreateTweet(CreateTweetRequest createTweetRequest)Creation of a Tweet Causes the user to create a tweet under the authorized account.okhttp3.CallcreateTweetAsync(CreateTweetRequest createTweetRequest, ApiCallback<TweetCreateResponse> _callback)Creation of a Tweet (asynchronously) Causes the user to create a tweet under the authorized account.okhttp3.CallcreateTweetCall(CreateTweetRequest createTweetRequest, ApiCallback _callback)Build call for createTweetApiResponse<TweetCreateResponse>createTweetWithHttpInfo(CreateTweetRequest createTweetRequest)Creation of a Tweet Causes the user to create a tweet under the authorized account.TweetDeleteResponsedeleteTweetById(String id)Tweet delete by Tweet ID Delete specified Tweet (in the path) by ID.okhttp3.CalldeleteTweetByIdAsync(String id, ApiCallback<TweetDeleteResponse> _callback)Tweet delete by Tweet ID (asynchronously) Delete specified Tweet (in the path) by ID.okhttp3.CalldeleteTweetByIdCall(String id, ApiCallback _callback)Build call for deleteTweetByIdApiResponse<TweetDeleteResponse>deleteTweetByIdWithHttpInfo(String id)Tweet delete by Tweet ID Delete specified Tweet (in the path) by ID.SingleTweetLookupResponsefindTweetById(String id, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields)Tweet lookup by Tweet ID Returns a variety of information about the Tweet specified by the requested ID.okhttp3.CallfindTweetByIdAsync(String id, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback<SingleTweetLookupResponse> _callback)Tweet lookup by Tweet ID (asynchronously) Returns a variety of information about the Tweet specified by the requested ID.okhttp3.CallfindTweetByIdCall(String id, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback _callback)Build call for findTweetByIdApiResponse<SingleTweetLookupResponse>findTweetByIdWithHttpInfo(String id, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields)Tweet lookup by Tweet ID Returns a variety of information about the Tweet specified by the requested ID.MultiTweetLookupResponsefindTweetsById(List<String> ids, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields)Tweet lookup by Tweet IDs Returns a variety of information about the Tweet specified by the requested ID.okhttp3.CallfindTweetsByIdAsync(List<String> ids, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback<MultiTweetLookupResponse> _callback)Tweet lookup by Tweet IDs (asynchronously) Returns a variety of information about the Tweet specified by the requested ID.okhttp3.CallfindTweetsByIdCall(List<String> ids, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback _callback)Build call for findTweetsByIdApiResponse<MultiTweetLookupResponse>findTweetsByIdWithHttpInfo(List<String> ids, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields)Tweet lookup by Tweet IDs Returns a variety of information about the Tweet specified by the requested ID.QuoteTweetLookupResponsefindTweetsThatQuoteATweet(String id, Integer maxResults, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields)Retrieve tweets that quote a tweet.okhttp3.CallfindTweetsThatQuoteATweetAsync(String id, Integer maxResults, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback<QuoteTweetLookupResponse> _callback)Retrieve tweets that quote a tweet.okhttp3.CallfindTweetsThatQuoteATweetCall(String id, Integer maxResults, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback _callback)Build call for findTweetsThatQuoteATweetApiResponse<QuoteTweetLookupResponse>findTweetsThatQuoteATweetWithHttpInfo(String id, Integer maxResults, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields)Retrieve tweets that quote a tweet.GetRulesResponsegetRules(List<String> ids, Integer maxResults, String paginationToken)Rules lookup Returns rules from a user's active rule set.okhttp3.CallgetRulesAsync(List<String> ids, Integer maxResults, String paginationToken, ApiCallback<GetRulesResponse> _callback)Rules lookup (asynchronously) Returns rules from a user's active rule set.okhttp3.CallgetRulesCall(List<String> ids, Integer maxResults, String paginationToken, ApiCallback _callback)Build call for getRulesApiResponse<GetRulesResponse>getRulesWithHttpInfo(List<String> ids, Integer maxResults, String paginationToken)Rules lookup Returns rules from a user's active rule set.HideReplyByIdResponsehideReplyById(HideReplyByIdRequest hideReplyByIdRequest, String id)Hide replies Hides or unhides a reply to an owned conversation.okhttp3.CallhideReplyByIdAsync(HideReplyByIdRequest hideReplyByIdRequest, String id, ApiCallback<HideReplyByIdResponse> _callback)Hide replies (asynchronously) Hides or unhides a reply to an owned conversation.okhttp3.CallhideReplyByIdCall(HideReplyByIdRequest hideReplyByIdRequest, String id, ApiCallback _callback)Build call for hideReplyByIdApiResponse<HideReplyByIdResponse>hideReplyByIdWithHttpInfo(HideReplyByIdRequest hideReplyByIdRequest, String id)Hide replies Hides or unhides a reply to an owned conversation.ListsIdTweetsResponselistsIdTweets(String id, Integer maxResults, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields)List Tweets timeline by List ID Returns a list of Tweets associated with the provided List IDokhttp3.CalllistsIdTweetsAsync(String id, Integer maxResults, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback<ListsIdTweetsResponse> _callback)List Tweets timeline by List ID (asynchronously) Returns a list of Tweets associated with the provided List IDokhttp3.CalllistsIdTweetsCall(String id, Integer maxResults, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback _callback)Build call for listsIdTweetsApiResponse<ListsIdTweetsResponse>listsIdTweetsWithHttpInfo(String id, Integer maxResults, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields)List Tweets timeline by List ID Returns a list of Tweets associated with the provided List IDInputStreamsampleStream(Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, Integer backfillMinutes)Sample stream Streams a deterministic 1% of public Tweets.okhttp3.CallsampleStreamAsync(Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, Integer backfillMinutes, ApiCallback<StreamingTweet> _callback)Sample stream (asynchronously) Streams a deterministic 1% of public Tweets.okhttp3.CallsampleStreamCall(Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, Integer backfillMinutes, ApiCallback _callback)Build call for sampleStreamInputStreamsampleStreamWithHttpInfo(Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, Integer backfillMinutes)Sample stream Streams a deterministic 1% of public Tweets.InputStreamsearchStream(Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, Integer backfillMinutes)Filtered stream Streams Tweets matching the stream's active rule set.okhttp3.CallsearchStreamAsync(Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, Integer backfillMinutes, ApiCallback<FilteredStreamingTweet> _callback)Filtered stream (asynchronously) Streams Tweets matching the stream's active rule set.okhttp3.CallsearchStreamCall(Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, Integer backfillMinutes, ApiCallback _callback)Build call for searchStreamInputStreamsearchStreamWithHttpInfo(Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, Integer backfillMinutes)Filtered stream Streams Tweets matching the stream's active rule set.MultiUserLookupResponsespaceBuyers(String id, Set<String> userFields)Retrieve the list of users who purchased a ticket to the given space Retrieves the list of users who purchased a ticket to the given spaceokhttp3.CallspaceBuyersAsync(String id, Set<String> userFields, ApiCallback<MultiUserLookupResponse> _callback)Retrieve the list of users who purchased a ticket to the given space (asynchronously) Retrieves the list of users who purchased a ticket to the given spaceokhttp3.CallspaceBuyersCall(String id, Set<String> userFields, ApiCallback _callback)Build call for spaceBuyersApiResponse<MultiUserLookupResponse>spaceBuyersWithHttpInfo(String id, Set<String> userFields)Retrieve the list of users who purchased a ticket to the given space Retrieves the list of users who purchased a ticket to the given spaceMultiTweetLookupResponsespaceTweets(Integer maxResults, String id, Set<String> tweetFields)Retrieve tweets from a Space Retrieves tweets shared in the specified spaceokhttp3.CallspaceTweetsAsync(Integer maxResults, String id, Set<String> tweetFields, ApiCallback<MultiTweetLookupResponse> _callback)Retrieve tweets from a Space (asynchronously) Retrieves tweets shared in the specified spaceokhttp3.CallspaceTweetsCall(Integer maxResults, String id, Set<String> tweetFields, ApiCallback _callback)Build call for spaceTweetsApiResponse<MultiTweetLookupResponse>spaceTweetsWithHttpInfo(Integer maxResults, String id, Set<String> tweetFields)Retrieve tweets from a Space Retrieves tweets shared in the specified spaceTweetCountsResponsetweetCountsFullArchiveSearch(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, String nextToken, String paginationToken, Granularity granularity)Full archive search counts Returns Tweet Counts that match a search query.okhttp3.CalltweetCountsFullArchiveSearchAsync(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, String nextToken, String paginationToken, Granularity granularity, ApiCallback<TweetCountsResponse> _callback)Full archive search counts (asynchronously) Returns Tweet Counts that match a search query.okhttp3.CalltweetCountsFullArchiveSearchCall(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, String nextToken, String paginationToken, Granularity granularity, ApiCallback _callback)Build call for tweetCountsFullArchiveSearchApiResponse<TweetCountsResponse>tweetCountsFullArchiveSearchWithHttpInfo(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, String nextToken, String paginationToken, Granularity granularity)Full archive search counts Returns Tweet Counts that match a search query.TweetCountsResponsetweetCountsRecentSearch(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, String nextToken, String paginationToken, Granularity granularity)Recent search counts Returns Tweet Counts from the last 7 days that match a search query.okhttp3.CalltweetCountsRecentSearchAsync(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, String nextToken, String paginationToken, Granularity granularity, ApiCallback<TweetCountsResponse> _callback)Recent search counts (asynchronously) Returns Tweet Counts from the last 7 days that match a search query.okhttp3.CalltweetCountsRecentSearchCall(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, String nextToken, String paginationToken, Granularity granularity, ApiCallback _callback)Build call for tweetCountsRecentSearchApiResponse<TweetCountsResponse>tweetCountsRecentSearchWithHttpInfo(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, String nextToken, String paginationToken, Granularity granularity)Recent search counts Returns Tweet Counts from the last 7 days that match a search query.TweetSearchResponsetweetsFullarchiveSearch(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, Integer maxResults, String sortOrder, String nextToken, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields)Full-archive search Returns Tweets that match a search query.okhttp3.CalltweetsFullarchiveSearchAsync(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, Integer maxResults, String sortOrder, String nextToken, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback<TweetSearchResponse> _callback)Full-archive search (asynchronously) Returns Tweets that match a search query.okhttp3.CalltweetsFullarchiveSearchCall(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, Integer maxResults, String sortOrder, String nextToken, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback _callback)Build call for tweetsFullarchiveSearchApiResponse<TweetSearchResponse>tweetsFullarchiveSearchWithHttpInfo(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, Integer maxResults, String sortOrder, String nextToken, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields)Full-archive search Returns Tweets that match a search query.TweetSearchResponsetweetsRecentSearch(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, Integer maxResults, String sortOrder, String nextToken, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields)Recent search Returns Tweets from the last 7 days that match a search query.okhttp3.CalltweetsRecentSearchAsync(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, Integer maxResults, String sortOrder, String nextToken, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback<TweetSearchResponse> _callback)Recent search (asynchronously) Returns Tweets from the last 7 days that match a search query.okhttp3.CalltweetsRecentSearchCall(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, Integer maxResults, String sortOrder, String nextToken, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback _callback)Build call for tweetsRecentSearchApiResponse<TweetSearchResponse>tweetsRecentSearchWithHttpInfo(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, Integer maxResults, String sortOrder, String nextToken, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields)Recent search Returns Tweets from the last 7 days that match a search query.UsersLikesCreateResponseusersIdLike(UsersLikesCreateRequest usersLikesCreateRequest, String id)Causes the user (in the path) to like the specified tweet Causes the user (in the path) to like the specified tweet.okhttp3.CallusersIdLikeAsync(UsersLikesCreateRequest usersLikesCreateRequest, String id, ApiCallback<UsersLikesCreateResponse> _callback)Causes the user (in the path) to like the specified tweet (asynchronously) Causes the user (in the path) to like the specified tweet.okhttp3.CallusersIdLikeCall(UsersLikesCreateRequest usersLikesCreateRequest, String id, ApiCallback _callback)Build call for usersIdLikeUsersIdLikedTweetsResponseusersIdLikedTweets(String id, Integer maxResults, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields)Returns Tweet objects liked by the provided User ID Returns a list of Tweets liked by the provided User IDokhttp3.CallusersIdLikedTweetsAsync(String id, Integer maxResults, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback<UsersIdLikedTweetsResponse> _callback)Returns Tweet objects liked by the provided User ID (asynchronously) Returns a list of Tweets liked by the provided User IDokhttp3.CallusersIdLikedTweetsCall(String id, Integer maxResults, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback _callback)Build call for usersIdLikedTweetsApiResponse<UsersIdLikedTweetsResponse>usersIdLikedTweetsWithHttpInfo(String id, Integer maxResults, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields)Returns Tweet objects liked by the provided User ID Returns a list of Tweets liked by the provided User IDApiResponse<UsersLikesCreateResponse>usersIdLikeWithHttpInfo(UsersLikesCreateRequest usersLikesCreateRequest, String id)Causes the user (in the path) to like the specified tweet Causes the user (in the path) to like the specified tweet.GenericTweetsTimelineResponseusersIdMentions(String id, String sinceId, String untilId, Integer maxResults, String paginationToken, OffsetDateTime startTime, OffsetDateTime endTime, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields)User mention timeline by User ID Returns Tweet objects that mention username associated to the provided User IDokhttp3.CallusersIdMentionsAsync(String id, String sinceId, String untilId, Integer maxResults, String paginationToken, OffsetDateTime startTime, OffsetDateTime endTime, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback<GenericTweetsTimelineResponse> _callback)User mention timeline by User ID (asynchronously) Returns Tweet objects that mention username associated to the provided User IDokhttp3.CallusersIdMentionsCall(String id, String sinceId, String untilId, Integer maxResults, String paginationToken, OffsetDateTime startTime, OffsetDateTime endTime, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback _callback)Build call for usersIdMentionsApiResponse<GenericTweetsTimelineResponse>usersIdMentionsWithHttpInfo(String id, String sinceId, String untilId, Integer maxResults, String paginationToken, OffsetDateTime startTime, OffsetDateTime endTime, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields)User mention timeline by User ID Returns Tweet objects that mention username associated to the provided User IDUsersRetweetsCreateResponseusersIdRetweets(UsersRetweetsCreateRequest usersRetweetsCreateRequest, String id)Causes the user (in the path) to retweet the specified tweet Causes the user (in the path) to retweet the specified tweet.okhttp3.CallusersIdRetweetsAsync(UsersRetweetsCreateRequest usersRetweetsCreateRequest, String id, ApiCallback<UsersRetweetsCreateResponse> _callback)Causes the user (in the path) to retweet the specified tweet (asynchronously) Causes the user (in the path) to retweet the specified tweet.okhttp3.CallusersIdRetweetsCall(UsersRetweetsCreateRequest usersRetweetsCreateRequest, String id, ApiCallback _callback)Build call for usersIdRetweetsApiResponse<UsersRetweetsCreateResponse>usersIdRetweetsWithHttpInfo(UsersRetweetsCreateRequest usersRetweetsCreateRequest, String id)Causes the user (in the path) to retweet the specified tweet Causes the user (in the path) to retweet the specified tweet.GenericTweetsTimelineResponseusersIdTweets(String id, String sinceId, String untilId, Integer maxResults, Set<String> exclude, String paginationToken, OffsetDateTime startTime, OffsetDateTime endTime, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields)User Tweets timeline by User ID Returns a list of Tweets authored by the provided User IDokhttp3.CallusersIdTweetsAsync(String id, String sinceId, String untilId, Integer maxResults, Set<String> exclude, String paginationToken, OffsetDateTime startTime, OffsetDateTime endTime, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback<GenericTweetsTimelineResponse> _callback)User Tweets timeline by User ID (asynchronously) Returns a list of Tweets authored by the provided User IDokhttp3.CallusersIdTweetsCall(String id, String sinceId, String untilId, Integer maxResults, Set<String> exclude, String paginationToken, OffsetDateTime startTime, OffsetDateTime endTime, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback _callback)Build call for usersIdTweetsApiResponse<GenericTweetsTimelineResponse>usersIdTweetsWithHttpInfo(String id, String sinceId, String untilId, Integer maxResults, Set<String> exclude, String paginationToken, OffsetDateTime startTime, OffsetDateTime endTime, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields)User Tweets timeline by User ID Returns a list of Tweets authored by the provided User IDUsersLikesDeleteResponseusersIdUnlike(String id, String tweetId)Causes the user (in the path) to unlike the specified tweet Causes the user (in the path) to unlike the specified tweet.okhttp3.CallusersIdUnlikeAsync(String id, String tweetId, ApiCallback<UsersLikesDeleteResponse> _callback)Causes the user (in the path) to unlike the specified tweet (asynchronously) Causes the user (in the path) to unlike the specified tweet.okhttp3.CallusersIdUnlikeCall(String id, String tweetId, ApiCallback _callback)Build call for usersIdUnlikeApiResponse<UsersLikesDeleteResponse>usersIdUnlikeWithHttpInfo(String id, String tweetId)Causes the user (in the path) to unlike the specified tweet Causes the user (in the path) to unlike the specified tweet.UsersRetweetsDeleteResponseusersIdUnretweets(String id, String sourceTweetId)Causes the user (in the path) to unretweet the specified tweet Causes the user (in the path) to unretweet the specified tweet.okhttp3.CallusersIdUnretweetsAsync(String id, String sourceTweetId, ApiCallback<UsersRetweetsDeleteResponse> _callback)Causes the user (in the path) to unretweet the specified tweet (asynchronously) Causes the user (in the path) to unretweet the specified tweet.okhttp3.CallusersIdUnretweetsCall(String id, String sourceTweetId, ApiCallback _callback)Build call for usersIdUnretweetsApiResponse<UsersRetweetsDeleteResponse>usersIdUnretweetsWithHttpInfo(String id, String sourceTweetId)Causes the user (in the path) to unretweet the specified tweet Causes the user (in the path) to unretweet the specified tweet.-
Methods inherited from class com.twitter.clientlib.api.ApiCommon
isOAUth2AutoRefreshToken, reduceAuthNames, refreshToken, setClient
-
-
-
-
Method Detail
-
addOrDeleteRulesCall
public okhttp3.Call addOrDeleteRulesCall(AddOrDeleteRulesRequest addOrDeleteRulesRequest, Boolean dryRun, ApiCallback _callback) throws ApiException
Build call for addOrDeleteRules- Parameters:
addOrDeleteRulesRequest- (required)dryRun- Dry Run can be used with both the add and delete action, with the expected result given, but without actually taking any action in the system (meaning the end state will always be as it was when the request was submitted). This is particularly useful to validate rule changes. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
addOrDeleteRules
public AddOrDeleteRulesResponse addOrDeleteRules(AddOrDeleteRulesRequest addOrDeleteRulesRequest, Boolean dryRun) throws ApiException
Add/Delete rules Add or delete rules from a user's active rule set. Users can provide unique, optionally tagged rules to add. Users can delete their entire rule set or a subset specified by rule ids or values.- Parameters:
addOrDeleteRulesRequest- (required)dryRun- Dry Run can be used with both the add and delete action, with the expected result given, but without actually taking any action in the system (meaning the end state will always be as it was when the request was submitted). This is particularly useful to validate rule changes. (optional)- Returns:
- AddOrDeleteRulesResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
addOrDeleteRulesWithHttpInfo
public ApiResponse<AddOrDeleteRulesResponse> addOrDeleteRulesWithHttpInfo(AddOrDeleteRulesRequest addOrDeleteRulesRequest, Boolean dryRun) throws ApiException
Add/Delete rules Add or delete rules from a user's active rule set. Users can provide unique, optionally tagged rules to add. Users can delete their entire rule set or a subset specified by rule ids or values.- Parameters:
addOrDeleteRulesRequest- (required)dryRun- Dry Run can be used with both the add and delete action, with the expected result given, but without actually taking any action in the system (meaning the end state will always be as it was when the request was submitted). This is particularly useful to validate rule changes. (optional)- Returns:
- ApiResponse<AddOrDeleteRulesResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
addOrDeleteRulesAsync
public okhttp3.Call addOrDeleteRulesAsync(AddOrDeleteRulesRequest addOrDeleteRulesRequest, Boolean dryRun, ApiCallback<AddOrDeleteRulesResponse> _callback) throws ApiException
Add/Delete rules (asynchronously) Add or delete rules from a user's active rule set. Users can provide unique, optionally tagged rules to add. Users can delete their entire rule set or a subset specified by rule ids or values.- Parameters:
addOrDeleteRulesRequest- (required)dryRun- Dry Run can be used with both the add and delete action, with the expected result given, but without actually taking any action in the system (meaning the end state will always be as it was when the request was submitted). This is particularly useful to validate rule changes. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
createTweetCall
public okhttp3.Call createTweetCall(CreateTweetRequest createTweetRequest, ApiCallback _callback) throws ApiException
Build call for createTweet- Parameters:
createTweetRequest- (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 201 The request was successful - 0 The request has failed. -
-
createTweet
public TweetCreateResponse createTweet(CreateTweetRequest createTweetRequest) throws ApiException
Creation of a Tweet Causes the user to create a tweet under the authorized account.- Parameters:
createTweetRequest- (optional)- Returns:
- TweetCreateResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 201 The request was successful - 0 The request has failed. -
-
createTweetWithHttpInfo
public ApiResponse<TweetCreateResponse> createTweetWithHttpInfo(CreateTweetRequest createTweetRequest) throws ApiException
Creation of a Tweet Causes the user to create a tweet under the authorized account.- Parameters:
createTweetRequest- (optional)- Returns:
- ApiResponse<TweetCreateResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 201 The request was successful - 0 The request has failed. -
-
createTweetAsync
public okhttp3.Call createTweetAsync(CreateTweetRequest createTweetRequest, ApiCallback<TweetCreateResponse> _callback) throws ApiException
Creation of a Tweet (asynchronously) Causes the user to create a tweet under the authorized account.- Parameters:
createTweetRequest- (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 201 The request was successful - 0 The request has failed. -
-
deleteTweetByIdCall
public okhttp3.Call deleteTweetByIdCall(String id, ApiCallback _callback) throws ApiException
Build call for deleteTweetById- Parameters:
id- The ID of the Tweet to be deleted. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
deleteTweetById
public TweetDeleteResponse deleteTweetById(String id) throws ApiException
Tweet delete by Tweet ID Delete specified Tweet (in the path) by ID.- Parameters:
id- The ID of the Tweet to be deleted. (required)- Returns:
- TweetDeleteResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
deleteTweetByIdWithHttpInfo
public ApiResponse<TweetDeleteResponse> deleteTweetByIdWithHttpInfo(String id) throws ApiException
Tweet delete by Tweet ID Delete specified Tweet (in the path) by ID.- Parameters:
id- The ID of the Tweet to be deleted. (required)- Returns:
- ApiResponse<TweetDeleteResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
deleteTweetByIdAsync
public okhttp3.Call deleteTweetByIdAsync(String id, ApiCallback<TweetDeleteResponse> _callback) throws ApiException
Tweet delete by Tweet ID (asynchronously) Delete specified Tweet (in the path) by ID.- Parameters:
id- The ID of the Tweet to be deleted. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findTweetByIdCall
public okhttp3.Call findTweetByIdCall(String id, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback _callback) throws ApiException
Build call for findTweetById- Parameters:
id- A single Tweet ID. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findTweetById
public SingleTweetLookupResponse findTweetById(String id, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields) throws ApiException
Tweet lookup by Tweet ID Returns a variety of information about the Tweet specified by the requested ID.- Parameters:
id- A single Tweet ID. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)- Returns:
- SingleTweetLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findTweetByIdWithHttpInfo
public ApiResponse<SingleTweetLookupResponse> findTweetByIdWithHttpInfo(String id, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields) throws ApiException
Tweet lookup by Tweet ID Returns a variety of information about the Tweet specified by the requested ID.- Parameters:
id- A single Tweet ID. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)- Returns:
- ApiResponse<SingleTweetLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findTweetByIdAsync
public okhttp3.Call findTweetByIdAsync(String id, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback<SingleTweetLookupResponse> _callback) throws ApiException
Tweet lookup by Tweet ID (asynchronously) Returns a variety of information about the Tweet specified by the requested ID.- Parameters:
id- A single Tweet ID. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findTweetsByIdCall
public okhttp3.Call findTweetsByIdCall(List<String> ids, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback _callback) throws ApiException
Build call for findTweetsById- Parameters:
ids- A comma separated list of Tweet IDs. Up to 100 are allowed in a single request. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findTweetsById
public MultiTweetLookupResponse findTweetsById(List<String> ids, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields) throws ApiException
Tweet lookup by Tweet IDs Returns a variety of information about the Tweet specified by the requested ID.- Parameters:
ids- A comma separated list of Tweet IDs. Up to 100 are allowed in a single request. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)- Returns:
- MultiTweetLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findTweetsByIdWithHttpInfo
public ApiResponse<MultiTweetLookupResponse> findTweetsByIdWithHttpInfo(List<String> ids, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields) throws ApiException
Tweet lookup by Tweet IDs Returns a variety of information about the Tweet specified by the requested ID.- Parameters:
ids- A comma separated list of Tweet IDs. Up to 100 are allowed in a single request. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)- Returns:
- ApiResponse<MultiTweetLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findTweetsByIdAsync
public okhttp3.Call findTweetsByIdAsync(List<String> ids, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback<MultiTweetLookupResponse> _callback) throws ApiException
Tweet lookup by Tweet IDs (asynchronously) Returns a variety of information about the Tweet specified by the requested ID.- Parameters:
ids- A comma separated list of Tweet IDs. Up to 100 are allowed in a single request. (required)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findTweetsThatQuoteATweetCall
public okhttp3.Call findTweetsThatQuoteATweetCall(String id, Integer maxResults, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback _callback) throws ApiException
Build call for findTweetsThatQuoteATweet- Parameters:
id- The ID of the Quoted Tweet. (required)maxResults- The maximum number of results to be returned. (optional, default to 10)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findTweetsThatQuoteATweet
public QuoteTweetLookupResponse findTweetsThatQuoteATweet(String id, Integer maxResults, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields) throws ApiException
Retrieve tweets that quote a tweet. Returns a variety of information about each tweet that quotes the Tweet specified by the requested ID.- Parameters:
id- The ID of the Quoted Tweet. (required)maxResults- The maximum number of results to be returned. (optional, default to 10)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)- Returns:
- QuoteTweetLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findTweetsThatQuoteATweetWithHttpInfo
public ApiResponse<QuoteTweetLookupResponse> findTweetsThatQuoteATweetWithHttpInfo(String id, Integer maxResults, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields) throws ApiException
Retrieve tweets that quote a tweet. Returns a variety of information about each tweet that quotes the Tweet specified by the requested ID.- Parameters:
id- The ID of the Quoted Tweet. (required)maxResults- The maximum number of results to be returned. (optional, default to 10)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)- Returns:
- ApiResponse<QuoteTweetLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
findTweetsThatQuoteATweetAsync
public okhttp3.Call findTweetsThatQuoteATweetAsync(String id, Integer maxResults, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback<QuoteTweetLookupResponse> _callback) throws ApiException
Retrieve tweets that quote a tweet. (asynchronously) Returns a variety of information about each tweet that quotes the Tweet specified by the requested ID.- Parameters:
id- The ID of the Quoted Tweet. (required)maxResults- The maximum number of results to be returned. (optional, default to 10)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
getRulesCall
public okhttp3.Call getRulesCall(List<String> ids, Integer maxResults, String paginationToken, ApiCallback _callback) throws ApiException
Build call for getRules- Parameters:
ids- A comma-separated list of Rule IDs. (optional)maxResults- The maximum number of results (optional, default to 1000)paginationToken- This value is populated by passing the 'next_token' returned in a request to paginate through results. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
getRules
public GetRulesResponse getRules(List<String> ids, Integer maxResults, String paginationToken) throws ApiException
Rules lookup Returns rules from a user's active rule set. Users can fetch all of their rules or a subset, specified by the provided rule ids.- Parameters:
ids- A comma-separated list of Rule IDs. (optional)maxResults- The maximum number of results (optional, default to 1000)paginationToken- This value is populated by passing the 'next_token' returned in a request to paginate through results. (optional)- Returns:
- GetRulesResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
getRulesWithHttpInfo
public ApiResponse<GetRulesResponse> getRulesWithHttpInfo(List<String> ids, Integer maxResults, String paginationToken) throws ApiException
Rules lookup Returns rules from a user's active rule set. Users can fetch all of their rules or a subset, specified by the provided rule ids.- Parameters:
ids- A comma-separated list of Rule IDs. (optional)maxResults- The maximum number of results (optional, default to 1000)paginationToken- This value is populated by passing the 'next_token' returned in a request to paginate through results. (optional)- Returns:
- ApiResponse<GetRulesResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
getRulesAsync
public okhttp3.Call getRulesAsync(List<String> ids, Integer maxResults, String paginationToken, ApiCallback<GetRulesResponse> _callback) throws ApiException
Rules lookup (asynchronously) Returns rules from a user's active rule set. Users can fetch all of their rules or a subset, specified by the provided rule ids.- Parameters:
ids- A comma-separated list of Rule IDs. (optional)maxResults- The maximum number of results (optional, default to 1000)paginationToken- This value is populated by passing the 'next_token' returned in a request to paginate through results. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
hideReplyByIdCall
public okhttp3.Call hideReplyByIdCall(HideReplyByIdRequest hideReplyByIdRequest, String id, ApiCallback _callback) throws ApiException
Build call for hideReplyById- Parameters:
hideReplyByIdRequest- (optional)id- The ID of the reply that you want to hide or unhide. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 A successful response. The reply has been hidden or unhidden. - 0 The request has failed. -
-
hideReplyById
public HideReplyByIdResponse hideReplyById(HideReplyByIdRequest hideReplyByIdRequest, String id) throws ApiException
Hide replies Hides or unhides a reply to an owned conversation.- Parameters:
hideReplyByIdRequest- (optional)id- The ID of the reply that you want to hide or unhide. (required)- Returns:
- HideReplyByIdResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 A successful response. The reply has been hidden or unhidden. - 0 The request has failed. -
-
hideReplyByIdWithHttpInfo
public ApiResponse<HideReplyByIdResponse> hideReplyByIdWithHttpInfo(HideReplyByIdRequest hideReplyByIdRequest, String id) throws ApiException
Hide replies Hides or unhides a reply to an owned conversation.- Parameters:
hideReplyByIdRequest- (optional)id- The ID of the reply that you want to hide or unhide. (required)- Returns:
- ApiResponse<HideReplyByIdResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 A successful response. The reply has been hidden or unhidden. - 0 The request has failed. -
-
hideReplyByIdAsync
public okhttp3.Call hideReplyByIdAsync(HideReplyByIdRequest hideReplyByIdRequest, String id, ApiCallback<HideReplyByIdResponse> _callback) throws ApiException
Hide replies (asynchronously) Hides or unhides a reply to an owned conversation.- Parameters:
hideReplyByIdRequest- (optional)id- The ID of the reply that you want to hide or unhide. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 A successful response. The reply has been hidden or unhidden. - 0 The request has failed. -
-
listsIdTweetsCall
public okhttp3.Call listsIdTweetsCall(String id, Integer maxResults, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback _callback) throws ApiException
Build call for listsIdTweets- Parameters:
id- The ID of the List to list Tweets of (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get the next 'page' of results. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
listsIdTweets
public ListsIdTweetsResponse listsIdTweets(String id, Integer maxResults, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields) throws ApiException
List Tweets timeline by List ID Returns a list of Tweets associated with the provided List ID- Parameters:
id- The ID of the List to list Tweets of (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get the next 'page' of results. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)- Returns:
- ListsIdTweetsResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
listsIdTweetsWithHttpInfo
public ApiResponse<ListsIdTweetsResponse> listsIdTweetsWithHttpInfo(String id, Integer maxResults, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields) throws ApiException
List Tweets timeline by List ID Returns a list of Tweets associated with the provided List ID- Parameters:
id- The ID of the List to list Tweets of (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get the next 'page' of results. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)- Returns:
- ApiResponse<ListsIdTweetsResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
listsIdTweetsAsync
public okhttp3.Call listsIdTweetsAsync(String id, Integer maxResults, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback<ListsIdTweetsResponse> _callback) throws ApiException
List Tweets timeline by List ID (asynchronously) Returns a list of Tweets associated with the provided List ID- Parameters:
id- The ID of the List to list Tweets of (required)maxResults- The maximum number of results (optional, default to 100)paginationToken- This parameter is used to get the next 'page' of results. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
sampleStreamCall
public okhttp3.Call sampleStreamCall(Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, Integer backfillMinutes, ApiCallback _callback) throws ApiException
Build call for sampleStream- Parameters:
expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)backfillMinutes- The number of minutes of backfill requested (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful. Successful responses will return a stream of individual JSON Tweet payloads. - 0 The request has failed. -
-
sampleStream
public InputStream sampleStream(Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, Integer backfillMinutes) throws ApiException
Sample stream Streams a deterministic 1% of public Tweets.- Parameters:
expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)backfillMinutes- The number of minutes of backfill requested (optional)- Returns:
- StreamingTweet
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful. Successful responses will return a stream of individual JSON Tweet payloads. - 0 The request has failed. -
-
sampleStreamWithHttpInfo
public InputStream sampleStreamWithHttpInfo(Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, Integer backfillMinutes) throws ApiException
Sample stream Streams a deterministic 1% of public Tweets.- Parameters:
expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)backfillMinutes- The number of minutes of backfill requested (optional)- Returns:
- ApiResponse<StreamingTweet>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful. Successful responses will return a stream of individual JSON Tweet payloads. - 0 The request has failed. -
-
sampleStreamAsync
public okhttp3.Call sampleStreamAsync(Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, Integer backfillMinutes, ApiCallback<StreamingTweet> _callback) throws ApiException
Sample stream (asynchronously) Streams a deterministic 1% of public Tweets.- Parameters:
expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)backfillMinutes- The number of minutes of backfill requested (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful. Successful responses will return a stream of individual JSON Tweet payloads. - 0 The request has failed. -
-
searchStreamCall
public okhttp3.Call searchStreamCall(Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, Integer backfillMinutes, ApiCallback _callback) throws ApiException
Build call for searchStream- Parameters:
expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)backfillMinutes- The number of minutes of backfill requested (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful. Successful responses will return a stream of individual JSON Tweet payloads. - 0 The request has failed. -
-
searchStream
public InputStream searchStream(Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, Integer backfillMinutes) throws ApiException
Filtered stream Streams Tweets matching the stream's active rule set.- Parameters:
expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)backfillMinutes- The number of minutes of backfill requested (optional)- Returns:
- FilteredStreamingTweet
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful. Successful responses will return a stream of individual JSON Tweet payloads. - 0 The request has failed. -
-
searchStreamWithHttpInfo
public InputStream searchStreamWithHttpInfo(Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, Integer backfillMinutes) throws ApiException
Filtered stream Streams Tweets matching the stream's active rule set.- Parameters:
expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)backfillMinutes- The number of minutes of backfill requested (optional)- Returns:
- ApiResponse<FilteredStreamingTweet>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful. Successful responses will return a stream of individual JSON Tweet payloads. - 0 The request has failed. -
-
searchStreamAsync
public okhttp3.Call searchStreamAsync(Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, Integer backfillMinutes, ApiCallback<FilteredStreamingTweet> _callback) throws ApiException
Filtered stream (asynchronously) Streams Tweets matching the stream's active rule set.- Parameters:
expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)backfillMinutes- The number of minutes of backfill requested (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful. Successful responses will return a stream of individual JSON Tweet payloads. - 0 The request has failed. -
-
spaceBuyersCall
public okhttp3.Call spaceBuyersCall(String id, Set<String> userFields, ApiCallback _callback) throws ApiException
Build call for spaceBuyers- Parameters:
id- The space id from which tweets will be retrieved (required)userFields- A comma separated list of User fields to display. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
spaceBuyers
public MultiUserLookupResponse spaceBuyers(String id, Set<String> userFields) throws ApiException
Retrieve the list of users who purchased a ticket to the given space Retrieves the list of users who purchased a ticket to the given space- Parameters:
id- The space id from which tweets will be retrieved (required)userFields- A comma separated list of User fields to display. (optional)- Returns:
- MultiUserLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
spaceBuyersWithHttpInfo
public ApiResponse<MultiUserLookupResponse> spaceBuyersWithHttpInfo(String id, Set<String> userFields) throws ApiException
Retrieve the list of users who purchased a ticket to the given space Retrieves the list of users who purchased a ticket to the given space- Parameters:
id- The space id from which tweets will be retrieved (required)userFields- A comma separated list of User fields to display. (optional)- Returns:
- ApiResponse<MultiUserLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
spaceBuyersAsync
public okhttp3.Call spaceBuyersAsync(String id, Set<String> userFields, ApiCallback<MultiUserLookupResponse> _callback) throws ApiException
Retrieve the list of users who purchased a ticket to the given space (asynchronously) Retrieves the list of users who purchased a ticket to the given space- Parameters:
id- The space id from which tweets will be retrieved (required)userFields- A comma separated list of User fields to display. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
spaceTweetsCall
public okhttp3.Call spaceTweetsCall(Integer maxResults, String id, Set<String> tweetFields, ApiCallback _callback) throws ApiException
Build call for spaceTweets- Parameters:
maxResults- The number of tweets to fetch from the provided space. If not provided, the value will default to the maximum of 100 (optional)id- The space id from which tweets will be retrieved (required)tweetFields- A comma separated list of Tweet fields to display. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
spaceTweets
public MultiTweetLookupResponse spaceTweets(Integer maxResults, String id, Set<String> tweetFields) throws ApiException
Retrieve tweets from a Space Retrieves tweets shared in the specified space- Parameters:
maxResults- The number of tweets to fetch from the provided space. If not provided, the value will default to the maximum of 100 (optional)id- The space id from which tweets will be retrieved (required)tweetFields- A comma separated list of Tweet fields to display. (optional)- Returns:
- MultiTweetLookupResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
spaceTweetsWithHttpInfo
public ApiResponse<MultiTweetLookupResponse> spaceTweetsWithHttpInfo(Integer maxResults, String id, Set<String> tweetFields) throws ApiException
Retrieve tweets from a Space Retrieves tweets shared in the specified space- Parameters:
maxResults- The number of tweets to fetch from the provided space. If not provided, the value will default to the maximum of 100 (optional)id- The space id from which tweets will be retrieved (required)tweetFields- A comma separated list of Tweet fields to display. (optional)- Returns:
- ApiResponse<MultiTweetLookupResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
spaceTweetsAsync
public okhttp3.Call spaceTweetsAsync(Integer maxResults, String id, Set<String> tweetFields, ApiCallback<MultiTweetLookupResponse> _callback) throws ApiException
Retrieve tweets from a Space (asynchronously) Retrieves tweets shared in the specified space- Parameters:
maxResults- The number of tweets to fetch from the provided space. If not provided, the value will default to the maximum of 100 (optional)id- The space id from which tweets will be retrieved (required)tweetFields- A comma separated list of Tweet fields to display. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
tweetCountsFullArchiveSearchCall
public okhttp3.Call tweetCountsFullArchiveSearchCall(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, String nextToken, String paginationToken, Granularity granularity, ApiCallback _callback) throws ApiException
Build call for tweetCountsFullArchiveSearch- Parameters:
query- One query/rule/filter for matching Tweets. Refer to https://t.co/rulelength to identify the max query length (required)startTime- YYYY-MM-DDTHH:mm:ssZ. The oldest UTC timestamp (from most recent 7 days) from which the Tweets will be provided. Timestamp is in second granularity and is inclusive (i.e. 12:00:01 includes the first second of the minute). (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The newest, most recent UTC timestamp to which the Tweets will be provided. Timestamp is in second granularity and is exclusive (i.e. 12:00:01 excludes the first second of the minute). (optional)sinceId- Returns results with a Tweet ID greater than (that is, more recent than) the specified ID. (optional)untilId- Returns results with a Tweet ID less than (that is, older than) the specified ID. (optional)nextToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)paginationToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)granularity- The granularity for the search counts results. (optional, default to hour)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 Tweet counts response - 0 The request has failed. -
-
tweetCountsFullArchiveSearch
public TweetCountsResponse tweetCountsFullArchiveSearch(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, String nextToken, String paginationToken, Granularity granularity) throws ApiException
Full archive search counts Returns Tweet Counts that match a search query.- Parameters:
query- One query/rule/filter for matching Tweets. Refer to https://t.co/rulelength to identify the max query length (required)startTime- YYYY-MM-DDTHH:mm:ssZ. The oldest UTC timestamp (from most recent 7 days) from which the Tweets will be provided. Timestamp is in second granularity and is inclusive (i.e. 12:00:01 includes the first second of the minute). (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The newest, most recent UTC timestamp to which the Tweets will be provided. Timestamp is in second granularity and is exclusive (i.e. 12:00:01 excludes the first second of the minute). (optional)sinceId- Returns results with a Tweet ID greater than (that is, more recent than) the specified ID. (optional)untilId- Returns results with a Tweet ID less than (that is, older than) the specified ID. (optional)nextToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)paginationToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)granularity- The granularity for the search counts results. (optional, default to hour)- Returns:
- TweetCountsResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Tweet counts response - 0 The request has failed. -
-
tweetCountsFullArchiveSearchWithHttpInfo
public ApiResponse<TweetCountsResponse> tweetCountsFullArchiveSearchWithHttpInfo(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, String nextToken, String paginationToken, Granularity granularity) throws ApiException
Full archive search counts Returns Tweet Counts that match a search query.- Parameters:
query- One query/rule/filter for matching Tweets. Refer to https://t.co/rulelength to identify the max query length (required)startTime- YYYY-MM-DDTHH:mm:ssZ. The oldest UTC timestamp (from most recent 7 days) from which the Tweets will be provided. Timestamp is in second granularity and is inclusive (i.e. 12:00:01 includes the first second of the minute). (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The newest, most recent UTC timestamp to which the Tweets will be provided. Timestamp is in second granularity and is exclusive (i.e. 12:00:01 excludes the first second of the minute). (optional)sinceId- Returns results with a Tweet ID greater than (that is, more recent than) the specified ID. (optional)untilId- Returns results with a Tweet ID less than (that is, older than) the specified ID. (optional)nextToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)paginationToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)granularity- The granularity for the search counts results. (optional, default to hour)- Returns:
- ApiResponse<TweetCountsResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Tweet counts response - 0 The request has failed. -
-
tweetCountsFullArchiveSearchAsync
public okhttp3.Call tweetCountsFullArchiveSearchAsync(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, String nextToken, String paginationToken, Granularity granularity, ApiCallback<TweetCountsResponse> _callback) throws ApiException
Full archive search counts (asynchronously) Returns Tweet Counts that match a search query.- Parameters:
query- One query/rule/filter for matching Tweets. Refer to https://t.co/rulelength to identify the max query length (required)startTime- YYYY-MM-DDTHH:mm:ssZ. The oldest UTC timestamp (from most recent 7 days) from which the Tweets will be provided. Timestamp is in second granularity and is inclusive (i.e. 12:00:01 includes the first second of the minute). (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The newest, most recent UTC timestamp to which the Tweets will be provided. Timestamp is in second granularity and is exclusive (i.e. 12:00:01 excludes the first second of the minute). (optional)sinceId- Returns results with a Tweet ID greater than (that is, more recent than) the specified ID. (optional)untilId- Returns results with a Tweet ID less than (that is, older than) the specified ID. (optional)nextToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)paginationToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)granularity- The granularity for the search counts results. (optional, default to hour)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 Tweet counts response - 0 The request has failed. -
-
tweetCountsRecentSearchCall
public okhttp3.Call tweetCountsRecentSearchCall(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, String nextToken, String paginationToken, Granularity granularity, ApiCallback _callback) throws ApiException
Build call for tweetCountsRecentSearch- Parameters:
query- One query/rule/filter for matching Tweets. Refer to https://t.co/rulelength to identify the max query length (required)startTime- YYYY-MM-DDTHH:mm:ssZ. The oldest UTC timestamp (from most recent 7 days) from which the Tweets will be provided. Timestamp is in second granularity and is inclusive (i.e. 12:00:01 includes the first second of the minute). (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The newest, most recent UTC timestamp to which the Tweets will be provided. Timestamp is in second granularity and is exclusive (i.e. 12:00:01 excludes the first second of the minute). (optional)sinceId- Returns results with a Tweet ID greater than (that is, more recent than) the specified ID. (optional)untilId- Returns results with a Tweet ID less than (that is, older than) the specified ID. (optional)nextToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)paginationToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)granularity- The granularity for the search counts results. (optional, default to hour)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 Recent tweet counts response - 0 The request has failed. -
-
tweetCountsRecentSearch
public TweetCountsResponse tweetCountsRecentSearch(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, String nextToken, String paginationToken, Granularity granularity) throws ApiException
Recent search counts Returns Tweet Counts from the last 7 days that match a search query.- Parameters:
query- One query/rule/filter for matching Tweets. Refer to https://t.co/rulelength to identify the max query length (required)startTime- YYYY-MM-DDTHH:mm:ssZ. The oldest UTC timestamp (from most recent 7 days) from which the Tweets will be provided. Timestamp is in second granularity and is inclusive (i.e. 12:00:01 includes the first second of the minute). (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The newest, most recent UTC timestamp to which the Tweets will be provided. Timestamp is in second granularity and is exclusive (i.e. 12:00:01 excludes the first second of the minute). (optional)sinceId- Returns results with a Tweet ID greater than (that is, more recent than) the specified ID. (optional)untilId- Returns results with a Tweet ID less than (that is, older than) the specified ID. (optional)nextToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)paginationToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)granularity- The granularity for the search counts results. (optional, default to hour)- Returns:
- TweetCountsResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Recent tweet counts response - 0 The request has failed. -
-
tweetCountsRecentSearchWithHttpInfo
public ApiResponse<TweetCountsResponse> tweetCountsRecentSearchWithHttpInfo(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, String nextToken, String paginationToken, Granularity granularity) throws ApiException
Recent search counts Returns Tweet Counts from the last 7 days that match a search query.- Parameters:
query- One query/rule/filter for matching Tweets. Refer to https://t.co/rulelength to identify the max query length (required)startTime- YYYY-MM-DDTHH:mm:ssZ. The oldest UTC timestamp (from most recent 7 days) from which the Tweets will be provided. Timestamp is in second granularity and is inclusive (i.e. 12:00:01 includes the first second of the minute). (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The newest, most recent UTC timestamp to which the Tweets will be provided. Timestamp is in second granularity and is exclusive (i.e. 12:00:01 excludes the first second of the minute). (optional)sinceId- Returns results with a Tweet ID greater than (that is, more recent than) the specified ID. (optional)untilId- Returns results with a Tweet ID less than (that is, older than) the specified ID. (optional)nextToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)paginationToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)granularity- The granularity for the search counts results. (optional, default to hour)- Returns:
- ApiResponse<TweetCountsResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Recent tweet counts response - 0 The request has failed. -
-
tweetCountsRecentSearchAsync
public okhttp3.Call tweetCountsRecentSearchAsync(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, String nextToken, String paginationToken, Granularity granularity, ApiCallback<TweetCountsResponse> _callback) throws ApiException
Recent search counts (asynchronously) Returns Tweet Counts from the last 7 days that match a search query.- Parameters:
query- One query/rule/filter for matching Tweets. Refer to https://t.co/rulelength to identify the max query length (required)startTime- YYYY-MM-DDTHH:mm:ssZ. The oldest UTC timestamp (from most recent 7 days) from which the Tweets will be provided. Timestamp is in second granularity and is inclusive (i.e. 12:00:01 includes the first second of the minute). (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The newest, most recent UTC timestamp to which the Tweets will be provided. Timestamp is in second granularity and is exclusive (i.e. 12:00:01 excludes the first second of the minute). (optional)sinceId- Returns results with a Tweet ID greater than (that is, more recent than) the specified ID. (optional)untilId- Returns results with a Tweet ID less than (that is, older than) the specified ID. (optional)nextToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)paginationToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)granularity- The granularity for the search counts results. (optional, default to hour)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 Recent tweet counts response - 0 The request has failed. -
-
tweetsFullarchiveSearchCall
public okhttp3.Call tweetsFullarchiveSearchCall(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, Integer maxResults, String sortOrder, String nextToken, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback _callback) throws ApiException
Build call for tweetsFullarchiveSearch- Parameters:
query- One query/rule/filter for matching Tweets. Refer to https://t.co/rulelength to identify the max query length (required)startTime- YYYY-MM-DDTHH:mm:ssZ. The oldest UTC timestamp from which the Tweets will be provided. Timestamp is in second granularity and is inclusive (i.e. 12:00:01 includes the first second of the minute). (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The newest, most recent UTC timestamp to which the Tweets will be provided. Timestamp is in second granularity and is exclusive (i.e. 12:00:01 excludes the first second of the minute). (optional)sinceId- Returns results with a Tweet ID greater than (that is, more recent than) the specified ID. (optional)untilId- Returns results with a Tweet ID less than (that is, older than) the specified ID. (optional)maxResults- The maximum number of search results to be returned by a request. (optional, default to 10)sortOrder- This order in which to return results. (optional)nextToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)paginationToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 Tweets full archive search response - 0 The request has failed. -
-
tweetsFullarchiveSearch
public TweetSearchResponse tweetsFullarchiveSearch(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, Integer maxResults, String sortOrder, String nextToken, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields) throws ApiException
Full-archive search Returns Tweets that match a search query.- Parameters:
query- One query/rule/filter for matching Tweets. Refer to https://t.co/rulelength to identify the max query length (required)startTime- YYYY-MM-DDTHH:mm:ssZ. The oldest UTC timestamp from which the Tweets will be provided. Timestamp is in second granularity and is inclusive (i.e. 12:00:01 includes the first second of the minute). (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The newest, most recent UTC timestamp to which the Tweets will be provided. Timestamp is in second granularity and is exclusive (i.e. 12:00:01 excludes the first second of the minute). (optional)sinceId- Returns results with a Tweet ID greater than (that is, more recent than) the specified ID. (optional)untilId- Returns results with a Tweet ID less than (that is, older than) the specified ID. (optional)maxResults- The maximum number of search results to be returned by a request. (optional, default to 10)sortOrder- This order in which to return results. (optional)nextToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)paginationToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)- Returns:
- TweetSearchResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Tweets full archive search response - 0 The request has failed. -
-
tweetsFullarchiveSearchWithHttpInfo
public ApiResponse<TweetSearchResponse> tweetsFullarchiveSearchWithHttpInfo(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, Integer maxResults, String sortOrder, String nextToken, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields) throws ApiException
Full-archive search Returns Tweets that match a search query.- Parameters:
query- One query/rule/filter for matching Tweets. Refer to https://t.co/rulelength to identify the max query length (required)startTime- YYYY-MM-DDTHH:mm:ssZ. The oldest UTC timestamp from which the Tweets will be provided. Timestamp is in second granularity and is inclusive (i.e. 12:00:01 includes the first second of the minute). (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The newest, most recent UTC timestamp to which the Tweets will be provided. Timestamp is in second granularity and is exclusive (i.e. 12:00:01 excludes the first second of the minute). (optional)sinceId- Returns results with a Tweet ID greater than (that is, more recent than) the specified ID. (optional)untilId- Returns results with a Tweet ID less than (that is, older than) the specified ID. (optional)maxResults- The maximum number of search results to be returned by a request. (optional, default to 10)sortOrder- This order in which to return results. (optional)nextToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)paginationToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)- Returns:
- ApiResponse<TweetSearchResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Tweets full archive search response - 0 The request has failed. -
-
tweetsFullarchiveSearchAsync
public okhttp3.Call tweetsFullarchiveSearchAsync(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, Integer maxResults, String sortOrder, String nextToken, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback<TweetSearchResponse> _callback) throws ApiException
Full-archive search (asynchronously) Returns Tweets that match a search query.- Parameters:
query- One query/rule/filter for matching Tweets. Refer to https://t.co/rulelength to identify the max query length (required)startTime- YYYY-MM-DDTHH:mm:ssZ. The oldest UTC timestamp from which the Tweets will be provided. Timestamp is in second granularity and is inclusive (i.e. 12:00:01 includes the first second of the minute). (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The newest, most recent UTC timestamp to which the Tweets will be provided. Timestamp is in second granularity and is exclusive (i.e. 12:00:01 excludes the first second of the minute). (optional)sinceId- Returns results with a Tweet ID greater than (that is, more recent than) the specified ID. (optional)untilId- Returns results with a Tweet ID less than (that is, older than) the specified ID. (optional)maxResults- The maximum number of search results to be returned by a request. (optional, default to 10)sortOrder- This order in which to return results. (optional)nextToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)paginationToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 Tweets full archive search response - 0 The request has failed. -
-
tweetsRecentSearchCall
public okhttp3.Call tweetsRecentSearchCall(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, Integer maxResults, String sortOrder, String nextToken, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback _callback) throws ApiException
Build call for tweetsRecentSearch- Parameters:
query- One query/rule/filter for matching Tweets. Refer to https://t.co/rulelength to identify the max query length (required)startTime- YYYY-MM-DDTHH:mm:ssZ. The oldest UTC timestamp (from most recent 7 days) from which the Tweets will be provided. Timestamp is in second granularity and is inclusive (i.e. 12:00:01 includes the first second of the minute). (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The newest, most recent UTC timestamp to which the Tweets will be provided. Timestamp is in second granularity and is exclusive (i.e. 12:00:01 excludes the first second of the minute). (optional)sinceId- Returns results with a Tweet ID greater than (that is, more recent than) the specified ID. (optional)untilId- Returns results with a Tweet ID less than (that is, older than) the specified ID. (optional)maxResults- The maximum number of search results to be returned by a request. (optional, default to 10)sortOrder- This order in which to return results. (optional)nextToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)paginationToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 Tweets recent search response - 0 The request has failed. -
-
tweetsRecentSearch
public TweetSearchResponse tweetsRecentSearch(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, Integer maxResults, String sortOrder, String nextToken, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields) throws ApiException
Recent search Returns Tweets from the last 7 days that match a search query.- Parameters:
query- One query/rule/filter for matching Tweets. Refer to https://t.co/rulelength to identify the max query length (required)startTime- YYYY-MM-DDTHH:mm:ssZ. The oldest UTC timestamp (from most recent 7 days) from which the Tweets will be provided. Timestamp is in second granularity and is inclusive (i.e. 12:00:01 includes the first second of the minute). (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The newest, most recent UTC timestamp to which the Tweets will be provided. Timestamp is in second granularity and is exclusive (i.e. 12:00:01 excludes the first second of the minute). (optional)sinceId- Returns results with a Tweet ID greater than (that is, more recent than) the specified ID. (optional)untilId- Returns results with a Tweet ID less than (that is, older than) the specified ID. (optional)maxResults- The maximum number of search results to be returned by a request. (optional, default to 10)sortOrder- This order in which to return results. (optional)nextToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)paginationToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)- Returns:
- TweetSearchResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Tweets recent search response - 0 The request has failed. -
-
tweetsRecentSearchWithHttpInfo
public ApiResponse<TweetSearchResponse> tweetsRecentSearchWithHttpInfo(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, Integer maxResults, String sortOrder, String nextToken, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields) throws ApiException
Recent search Returns Tweets from the last 7 days that match a search query.- Parameters:
query- One query/rule/filter for matching Tweets. Refer to https://t.co/rulelength to identify the max query length (required)startTime- YYYY-MM-DDTHH:mm:ssZ. The oldest UTC timestamp (from most recent 7 days) from which the Tweets will be provided. Timestamp is in second granularity and is inclusive (i.e. 12:00:01 includes the first second of the minute). (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The newest, most recent UTC timestamp to which the Tweets will be provided. Timestamp is in second granularity and is exclusive (i.e. 12:00:01 excludes the first second of the minute). (optional)sinceId- Returns results with a Tweet ID greater than (that is, more recent than) the specified ID. (optional)untilId- Returns results with a Tweet ID less than (that is, older than) the specified ID. (optional)maxResults- The maximum number of search results to be returned by a request. (optional, default to 10)sortOrder- This order in which to return results. (optional)nextToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)paginationToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)- Returns:
- ApiResponse<TweetSearchResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Tweets recent search response - 0 The request has failed. -
-
tweetsRecentSearchAsync
public okhttp3.Call tweetsRecentSearchAsync(String query, OffsetDateTime startTime, OffsetDateTime endTime, String sinceId, String untilId, Integer maxResults, String sortOrder, String nextToken, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback<TweetSearchResponse> _callback) throws ApiException
Recent search (asynchronously) Returns Tweets from the last 7 days that match a search query.- Parameters:
query- One query/rule/filter for matching Tweets. Refer to https://t.co/rulelength to identify the max query length (required)startTime- YYYY-MM-DDTHH:mm:ssZ. The oldest UTC timestamp (from most recent 7 days) from which the Tweets will be provided. Timestamp is in second granularity and is inclusive (i.e. 12:00:01 includes the first second of the minute). (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The newest, most recent UTC timestamp to which the Tweets will be provided. Timestamp is in second granularity and is exclusive (i.e. 12:00:01 excludes the first second of the minute). (optional)sinceId- Returns results with a Tweet ID greater than (that is, more recent than) the specified ID. (optional)untilId- Returns results with a Tweet ID less than (that is, older than) the specified ID. (optional)maxResults- The maximum number of search results to be returned by a request. (optional, default to 10)sortOrder- This order in which to return results. (optional)nextToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)paginationToken- This parameter is used to get the next 'page' of results. The value used with the parameter is pulled directly from the response provided by the API, and should not be modified. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 Tweets recent search response - 0 The request has failed. -
-
usersIdLikeCall
public okhttp3.Call usersIdLikeCall(UsersLikesCreateRequest usersLikesCreateRequest, String id, ApiCallback _callback) throws ApiException
Build call for usersIdLike- Parameters:
usersLikesCreateRequest- (optional)id- The ID of the user that is requesting to like the tweet (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdLike
public UsersLikesCreateResponse usersIdLike(UsersLikesCreateRequest usersLikesCreateRequest, String id) throws ApiException
Causes the user (in the path) to like the specified tweet Causes the user (in the path) to like the specified tweet. The user in the path must match the user context authorizing the request.- Parameters:
usersLikesCreateRequest- (optional)id- The ID of the user that is requesting to like the tweet (required)- Returns:
- UsersLikesCreateResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdLikeWithHttpInfo
public ApiResponse<UsersLikesCreateResponse> usersIdLikeWithHttpInfo(UsersLikesCreateRequest usersLikesCreateRequest, String id) throws ApiException
Causes the user (in the path) to like the specified tweet Causes the user (in the path) to like the specified tweet. The user in the path must match the user context authorizing the request.- Parameters:
usersLikesCreateRequest- (optional)id- The ID of the user that is requesting to like the tweet (required)- Returns:
- ApiResponse<UsersLikesCreateResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdLikeAsync
public okhttp3.Call usersIdLikeAsync(UsersLikesCreateRequest usersLikesCreateRequest, String id, ApiCallback<UsersLikesCreateResponse> _callback) throws ApiException
Causes the user (in the path) to like the specified tweet (asynchronously) Causes the user (in the path) to like the specified tweet. The user in the path must match the user context authorizing the request.- Parameters:
usersLikesCreateRequest- (optional)id- The ID of the user that is requesting to like the tweet (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdLikedTweetsCall
public okhttp3.Call usersIdLikedTweetsCall(String id, Integer maxResults, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback _callback) throws ApiException
Build call for usersIdLikedTweets- Parameters:
id- The ID of the User to list the liked Tweets of (required)maxResults- The maximum number of results (optional)paginationToken- This parameter is used to get the next 'page' of results. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdLikedTweets
public UsersIdLikedTweetsResponse usersIdLikedTweets(String id, Integer maxResults, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields) throws ApiException
Returns Tweet objects liked by the provided User ID Returns a list of Tweets liked by the provided User ID- Parameters:
id- The ID of the User to list the liked Tweets of (required)maxResults- The maximum number of results (optional)paginationToken- This parameter is used to get the next 'page' of results. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)- Returns:
- UsersIdLikedTweetsResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdLikedTweetsWithHttpInfo
public ApiResponse<UsersIdLikedTweetsResponse> usersIdLikedTweetsWithHttpInfo(String id, Integer maxResults, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields) throws ApiException
Returns Tweet objects liked by the provided User ID Returns a list of Tweets liked by the provided User ID- Parameters:
id- The ID of the User to list the liked Tweets of (required)maxResults- The maximum number of results (optional)paginationToken- This parameter is used to get the next 'page' of results. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)- Returns:
- ApiResponse<UsersIdLikedTweetsResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdLikedTweetsAsync
public okhttp3.Call usersIdLikedTweetsAsync(String id, Integer maxResults, String paginationToken, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback<UsersIdLikedTweetsResponse> _callback) throws ApiException
Returns Tweet objects liked by the provided User ID (asynchronously) Returns a list of Tweets liked by the provided User ID- Parameters:
id- The ID of the User to list the liked Tweets of (required)maxResults- The maximum number of results (optional)paginationToken- This parameter is used to get the next 'page' of results. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdMentionsCall
public okhttp3.Call usersIdMentionsCall(String id, String sinceId, String untilId, Integer maxResults, String paginationToken, OffsetDateTime startTime, OffsetDateTime endTime, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback _callback) throws ApiException
Build call for usersIdMentions- Parameters:
id- The ID of the User to list mentions of (required)sinceId- The minimum Tweet ID to be included in the result set. This parameter takes precedence over start_time if both are specified. (optional)untilId- The maximum Tweet ID to be included in the result set. This parameter takes precedence over end_time if both are specified. (optional)maxResults- The maximum number of results (optional)paginationToken- This parameter is used to get the next 'page' of results. (optional)startTime- YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp from which the Tweets will be provided. The since_id parameter takes precedence if it is also specified. (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Tweets will be provided. The until_id parameter takes precedence if it is also specified. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdMentions
public GenericTweetsTimelineResponse usersIdMentions(String id, String sinceId, String untilId, Integer maxResults, String paginationToken, OffsetDateTime startTime, OffsetDateTime endTime, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields) throws ApiException
User mention timeline by User ID Returns Tweet objects that mention username associated to the provided User ID- Parameters:
id- The ID of the User to list mentions of (required)sinceId- The minimum Tweet ID to be included in the result set. This parameter takes precedence over start_time if both are specified. (optional)untilId- The maximum Tweet ID to be included in the result set. This parameter takes precedence over end_time if both are specified. (optional)maxResults- The maximum number of results (optional)paginationToken- This parameter is used to get the next 'page' of results. (optional)startTime- YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp from which the Tweets will be provided. The since_id parameter takes precedence if it is also specified. (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Tweets will be provided. The until_id parameter takes precedence if it is also specified. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)- Returns:
- GenericTweetsTimelineResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdMentionsWithHttpInfo
public ApiResponse<GenericTweetsTimelineResponse> usersIdMentionsWithHttpInfo(String id, String sinceId, String untilId, Integer maxResults, String paginationToken, OffsetDateTime startTime, OffsetDateTime endTime, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields) throws ApiException
User mention timeline by User ID Returns Tweet objects that mention username associated to the provided User ID- Parameters:
id- The ID of the User to list mentions of (required)sinceId- The minimum Tweet ID to be included in the result set. This parameter takes precedence over start_time if both are specified. (optional)untilId- The maximum Tweet ID to be included in the result set. This parameter takes precedence over end_time if both are specified. (optional)maxResults- The maximum number of results (optional)paginationToken- This parameter is used to get the next 'page' of results. (optional)startTime- YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp from which the Tweets will be provided. The since_id parameter takes precedence if it is also specified. (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Tweets will be provided. The until_id parameter takes precedence if it is also specified. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)- Returns:
- ApiResponse<GenericTweetsTimelineResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdMentionsAsync
public okhttp3.Call usersIdMentionsAsync(String id, String sinceId, String untilId, Integer maxResults, String paginationToken, OffsetDateTime startTime, OffsetDateTime endTime, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback<GenericTweetsTimelineResponse> _callback) throws ApiException
User mention timeline by User ID (asynchronously) Returns Tweet objects that mention username associated to the provided User ID- Parameters:
id- The ID of the User to list mentions of (required)sinceId- The minimum Tweet ID to be included in the result set. This parameter takes precedence over start_time if both are specified. (optional)untilId- The maximum Tweet ID to be included in the result set. This parameter takes precedence over end_time if both are specified. (optional)maxResults- The maximum number of results (optional)paginationToken- This parameter is used to get the next 'page' of results. (optional)startTime- YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp from which the Tweets will be provided. The since_id parameter takes precedence if it is also specified. (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Tweets will be provided. The until_id parameter takes precedence if it is also specified. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdRetweetsCall
public okhttp3.Call usersIdRetweetsCall(UsersRetweetsCreateRequest usersRetweetsCreateRequest, String id, ApiCallback _callback) throws ApiException
Build call for usersIdRetweets- Parameters:
usersRetweetsCreateRequest- (optional)id- The ID of the user that is requesting to retweet the tweet (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdRetweets
public UsersRetweetsCreateResponse usersIdRetweets(UsersRetweetsCreateRequest usersRetweetsCreateRequest, String id) throws ApiException
Causes the user (in the path) to retweet the specified tweet Causes the user (in the path) to retweet the specified tweet. The user in the path must match the user context authorizing the request.- Parameters:
usersRetweetsCreateRequest- (optional)id- The ID of the user that is requesting to retweet the tweet (required)- Returns:
- UsersRetweetsCreateResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdRetweetsWithHttpInfo
public ApiResponse<UsersRetweetsCreateResponse> usersIdRetweetsWithHttpInfo(UsersRetweetsCreateRequest usersRetweetsCreateRequest, String id) throws ApiException
Causes the user (in the path) to retweet the specified tweet Causes the user (in the path) to retweet the specified tweet. The user in the path must match the user context authorizing the request.- Parameters:
usersRetweetsCreateRequest- (optional)id- The ID of the user that is requesting to retweet the tweet (required)- Returns:
- ApiResponse<UsersRetweetsCreateResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdRetweetsAsync
public okhttp3.Call usersIdRetweetsAsync(UsersRetweetsCreateRequest usersRetweetsCreateRequest, String id, ApiCallback<UsersRetweetsCreateResponse> _callback) throws ApiException
Causes the user (in the path) to retweet the specified tweet (asynchronously) Causes the user (in the path) to retweet the specified tweet. The user in the path must match the user context authorizing the request.- Parameters:
usersRetweetsCreateRequest- (optional)id- The ID of the user that is requesting to retweet the tweet (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdTweetsCall
public okhttp3.Call usersIdTweetsCall(String id, String sinceId, String untilId, Integer maxResults, Set<String> exclude, String paginationToken, OffsetDateTime startTime, OffsetDateTime endTime, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback _callback) throws ApiException
Build call for usersIdTweets- Parameters:
id- The ID of the User to list Tweets of (required)sinceId- The minimum Tweet ID to be included in the result set. This parameter takes precedence over start_time if both are specified. (optional)untilId- The maximum Tweet ID to be included in the result set. This parameter takes precedence over end_time if both are specified. (optional)maxResults- The maximum number of results (optional)exclude- The set of entities to exclude (e.g. 'replies' or 'retweets') (optional)paginationToken- This parameter is used to get the next 'page' of results. (optional)startTime- YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp from which the Tweets will be provided. The since_id parameter takes precedence if it is also specified. (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Tweets will be provided. The until_id parameter takes precedence if it is also specified. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdTweets
public GenericTweetsTimelineResponse usersIdTweets(String id, String sinceId, String untilId, Integer maxResults, Set<String> exclude, String paginationToken, OffsetDateTime startTime, OffsetDateTime endTime, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields) throws ApiException
User Tweets timeline by User ID Returns a list of Tweets authored by the provided User ID- Parameters:
id- The ID of the User to list Tweets of (required)sinceId- The minimum Tweet ID to be included in the result set. This parameter takes precedence over start_time if both are specified. (optional)untilId- The maximum Tweet ID to be included in the result set. This parameter takes precedence over end_time if both are specified. (optional)maxResults- The maximum number of results (optional)exclude- The set of entities to exclude (e.g. 'replies' or 'retweets') (optional)paginationToken- This parameter is used to get the next 'page' of results. (optional)startTime- YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp from which the Tweets will be provided. The since_id parameter takes precedence if it is also specified. (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Tweets will be provided. The until_id parameter takes precedence if it is also specified. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)- Returns:
- GenericTweetsTimelineResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdTweetsWithHttpInfo
public ApiResponse<GenericTweetsTimelineResponse> usersIdTweetsWithHttpInfo(String id, String sinceId, String untilId, Integer maxResults, Set<String> exclude, String paginationToken, OffsetDateTime startTime, OffsetDateTime endTime, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields) throws ApiException
User Tweets timeline by User ID Returns a list of Tweets authored by the provided User ID- Parameters:
id- The ID of the User to list Tweets of (required)sinceId- The minimum Tweet ID to be included in the result set. This parameter takes precedence over start_time if both are specified. (optional)untilId- The maximum Tweet ID to be included in the result set. This parameter takes precedence over end_time if both are specified. (optional)maxResults- The maximum number of results (optional)exclude- The set of entities to exclude (e.g. 'replies' or 'retweets') (optional)paginationToken- This parameter is used to get the next 'page' of results. (optional)startTime- YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp from which the Tweets will be provided. The since_id parameter takes precedence if it is also specified. (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Tweets will be provided. The until_id parameter takes precedence if it is also specified. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)- Returns:
- ApiResponse<GenericTweetsTimelineResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdTweetsAsync
public okhttp3.Call usersIdTweetsAsync(String id, String sinceId, String untilId, Integer maxResults, Set<String> exclude, String paginationToken, OffsetDateTime startTime, OffsetDateTime endTime, Set<String> expansions, Set<String> tweetFields, Set<String> userFields, Set<String> mediaFields, Set<String> placeFields, Set<String> pollFields, ApiCallback<GenericTweetsTimelineResponse> _callback) throws ApiException
User Tweets timeline by User ID (asynchronously) Returns a list of Tweets authored by the provided User ID- Parameters:
id- The ID of the User to list Tweets of (required)sinceId- The minimum Tweet ID to be included in the result set. This parameter takes precedence over start_time if both are specified. (optional)untilId- The maximum Tweet ID to be included in the result set. This parameter takes precedence over end_time if both are specified. (optional)maxResults- The maximum number of results (optional)exclude- The set of entities to exclude (e.g. 'replies' or 'retweets') (optional)paginationToken- This parameter is used to get the next 'page' of results. (optional)startTime- YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp from which the Tweets will be provided. The since_id parameter takes precedence if it is also specified. (optional)endTime- YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp to which the Tweets will be provided. The until_id parameter takes precedence if it is also specified. (optional)expansions- A comma separated list of fields to expand. (optional)tweetFields- A comma separated list of Tweet fields to display. (optional)userFields- A comma separated list of User fields to display. (optional)mediaFields- A comma separated list of Media fields to display. (optional)placeFields- A comma separated list of Place fields to display. (optional)pollFields- A comma separated list of Poll fields to display. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdUnlikeCall
public okhttp3.Call usersIdUnlikeCall(String id, String tweetId, ApiCallback _callback) throws ApiException
Build call for usersIdUnlike- Parameters:
id- The ID of the user that is requesting to unlike the tweet (required)tweetId- The ID of the tweet that the user is requesting to unlike (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdUnlike
public UsersLikesDeleteResponse usersIdUnlike(String id, String tweetId) throws ApiException
Causes the user (in the path) to unlike the specified tweet Causes the user (in the path) to unlike the specified tweet. The user must match the user context authorizing the request- Parameters:
id- The ID of the user that is requesting to unlike the tweet (required)tweetId- The ID of the tweet that the user is requesting to unlike (required)- Returns:
- UsersLikesDeleteResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdUnlikeWithHttpInfo
public ApiResponse<UsersLikesDeleteResponse> usersIdUnlikeWithHttpInfo(String id, String tweetId) throws ApiException
Causes the user (in the path) to unlike the specified tweet Causes the user (in the path) to unlike the specified tweet. The user must match the user context authorizing the request- Parameters:
id- The ID of the user that is requesting to unlike the tweet (required)tweetId- The ID of the tweet that the user is requesting to unlike (required)- Returns:
- ApiResponse<UsersLikesDeleteResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdUnlikeAsync
public okhttp3.Call usersIdUnlikeAsync(String id, String tweetId, ApiCallback<UsersLikesDeleteResponse> _callback) throws ApiException
Causes the user (in the path) to unlike the specified tweet (asynchronously) Causes the user (in the path) to unlike the specified tweet. The user must match the user context authorizing the request- Parameters:
id- The ID of the user that is requesting to unlike the tweet (required)tweetId- The ID of the tweet that the user is requesting to unlike (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdUnretweetsCall
public okhttp3.Call usersIdUnretweetsCall(String id, String sourceTweetId, ApiCallback _callback) throws ApiException
Build call for usersIdUnretweets- Parameters:
id- The ID of the user that is requesting to unretweet the tweet (required)sourceTweetId- The ID of the tweet that the user is requesting to unretweet (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdUnretweets
public UsersRetweetsDeleteResponse usersIdUnretweets(String id, String sourceTweetId) throws ApiException
Causes the user (in the path) to unretweet the specified tweet Causes the user (in the path) to unretweet the specified tweet. The user must match the user context authorizing the request- Parameters:
id- The ID of the user that is requesting to unretweet the tweet (required)sourceTweetId- The ID of the tweet that the user is requesting to unretweet (required)- Returns:
- UsersRetweetsDeleteResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdUnretweetsWithHttpInfo
public ApiResponse<UsersRetweetsDeleteResponse> usersIdUnretweetsWithHttpInfo(String id, String sourceTweetId) throws ApiException
Causes the user (in the path) to unretweet the specified tweet Causes the user (in the path) to unretweet the specified tweet. The user must match the user context authorizing the request- Parameters:
id- The ID of the user that is requesting to unretweet the tweet (required)sourceTweetId- The ID of the tweet that the user is requesting to unretweet (required)- Returns:
- ApiResponse<UsersRetweetsDeleteResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
usersIdUnretweetsAsync
public okhttp3.Call usersIdUnretweetsAsync(String id, String sourceTweetId, ApiCallback<UsersRetweetsDeleteResponse> _callback) throws ApiException
Causes the user (in the path) to unretweet the specified tweet (asynchronously) Causes the user (in the path) to unretweet the specified tweet. The user must match the user context authorizing the request- Parameters:
id- The ID of the user that is requesting to unretweet the tweet (required)sourceTweetId- The ID of the tweet that the user is requesting to unretweet (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 The request was successful - 0 The request has failed. -
-
-