All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
fetchLatestPostCommentsApiV1TwitterWebFetchLatestPostCommentsGet | GET /api/v1/twitter/web/fetch_latest_post_comments | 获取最新的推文评论/Get the latest tweet comments |
fetchLatestPostCommentsApiV1TwitterWebFetchLatestPostCommentsGet_0 | GET /api/v1/twitter/web/fetch_latest_post_comments | 获取最新的推文评论/Get the latest tweet comments |
fetchPostCommentsApiV1TwitterWebFetchPostCommentsGet | GET /api/v1/twitter/web/fetch_post_comments | 获取评论/Get comments |
fetchPostCommentsApiV1TwitterWebFetchPostCommentsGet_0 | GET /api/v1/twitter/web/fetch_post_comments | 获取评论/Get comments |
fetchRetweetUserListApiV1TwitterWebFetchRetweetUserListGet | GET /api/v1/twitter/web/fetch_retweet_user_list | 转推用户列表/ReTweet User list |
fetchRetweetUserListApiV1TwitterWebFetchRetweetUserListGet_0 | GET /api/v1/twitter/web/fetch_retweet_user_list | 转推用户列表/ReTweet User list |
fetchSearchTimelineApiV1TwitterWebFetchSearchTimelineGet | GET /api/v1/twitter/web/fetch_search_timeline | 搜索/Search |
fetchSearchTimelineApiV1TwitterWebFetchSearchTimelineGet_0 | GET /api/v1/twitter/web/fetch_search_timeline | 搜索/Search |
fetchTrendingApiV1TwitterWebFetchTrendingGet | GET /api/v1/twitter/web/fetch_trending | 趋势/Trending |
fetchTrendingApiV1TwitterWebFetchTrendingGet_0 | GET /api/v1/twitter/web/fetch_trending | 趋势/Trending |
fetchTweetDetailApiV1TwitterWebFetchTweetDetailGet | GET /api/v1/twitter/web/fetch_tweet_detail | 获取单个推文数据/Get single tweet data |
fetchTweetDetailApiV1TwitterWebFetchTweetDetailGet_0 | GET /api/v1/twitter/web/fetch_tweet_detail | 获取单个推文数据/Get single tweet data |
fetchUserFollowersApiV1TwitterWebFetchUserFollowersGet | GET /api/v1/twitter/web/fetch_user_followers | 用户粉丝/User Followers |
fetchUserFollowersApiV1TwitterWebFetchUserFollowersGet_0 | GET /api/v1/twitter/web/fetch_user_followers | 用户粉丝/User Followers |
fetchUserFollowingsApiV1TwitterWebFetchUserFollowingsGet | GET /api/v1/twitter/web/fetch_user_followings | 用户关注/User Followings |
fetchUserFollowingsApiV1TwitterWebFetchUserFollowingsGet_0 | GET /api/v1/twitter/web/fetch_user_followings | 用户关注/User Followings |
fetchUserHighlightsTweetsApiV1TwitterWebFetchUserHighlightsTweetsGet | GET /api/v1/twitter/web/fetch_user_highlights_tweets | 获取用户高光推文/Get user highlights tweets |
fetchUserHighlightsTweetsApiV1TwitterWebFetchUserHighlightsTweetsGet_0 | GET /api/v1/twitter/web/fetch_user_highlights_tweets | 获取用户高光推文/Get user highlights tweets |
fetchUserMediaApiV1TwitterWebFetchUserMediaGet | GET /api/v1/twitter/web/fetch_user_media | 获取用户媒体/Get user media |
fetchUserMediaApiV1TwitterWebFetchUserMediaGet_0 | GET /api/v1/twitter/web/fetch_user_media | 获取用户媒体/Get user media |
fetchUserPostTweetApiV1TwitterWebFetchUserPostTweetGet | GET /api/v1/twitter/web/fetch_user_post_tweet | 获取用户发帖/Get user post |
fetchUserPostTweetApiV1TwitterWebFetchUserPostTweetGet_0 | GET /api/v1/twitter/web/fetch_user_post_tweet | 获取用户发帖/Get user post |
fetchUserProfileApiV1TwitterWebFetchUserProfileGet | GET /api/v1/twitter/web/fetch_user_profile | 获取用户资料/Get user profile |
fetchUserProfileApiV1TwitterWebFetchUserProfileGet_0 | GET /api/v1/twitter/web/fetch_user_profile | 获取用户资料/Get user profile |
fetchUserTweetRepliesApiV1TwitterWebFetchUserTweetRepliesGet | GET /api/v1/twitter/web/fetch_user_tweet_replies | 获取用户推文回复/Get user tweet replies |
fetchUserTweetRepliesApiV1TwitterWebFetchUserTweetRepliesGet_0 | GET /api/v1/twitter/web/fetch_user_tweet_replies | 获取用户推文回复/Get user tweet replies |
ResponseModel fetchLatestPostCommentsApiV1TwitterWebFetchLatestPostCommentsGet(tweetId, cursor)
获取最新的推文评论/Get the latest tweet comments
[中文] ### 用途: - 获取最新的推文评论 ### 参数: - tweet_id: 推文ID - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 推文评论 # [English] ### Purpose: - Get the latest tweet comments ### Parameters: - tweet_id: Tweet ID - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - Tweet comments # [示例/Example] tweet_id = "1808168603721650364" cursor = None
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String tweetId = 1808168603721650364; // String | 推文ID/Tweet ID
String cursor = "cursor_example"; // String | 游标/Cursor
try {
ResponseModel result = apiInstance.fetchLatestPostCommentsApiV1TwitterWebFetchLatestPostCommentsGet(tweetId, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchLatestPostCommentsApiV1TwitterWebFetchLatestPostCommentsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
tweetId | String | 推文ID/Tweet ID | |
cursor | String | 游标/Cursor | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchLatestPostCommentsApiV1TwitterWebFetchLatestPostCommentsGet_0(tweetId, cursor)
获取最新的推文评论/Get the latest tweet comments
[中文] ### 用途: - 获取最新的推文评论 ### 参数: - tweet_id: 推文ID - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 推文评论 # [English] ### Purpose: - Get the latest tweet comments ### Parameters: - tweet_id: Tweet ID - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - Tweet comments # [示例/Example] tweet_id = "1808168603721650364" cursor = None
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String tweetId = 1808168603721650364; // String | 推文ID/Tweet ID
String cursor = "cursor_example"; // String | 游标/Cursor
try {
ResponseModel result = apiInstance.fetchLatestPostCommentsApiV1TwitterWebFetchLatestPostCommentsGet_0(tweetId, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchLatestPostCommentsApiV1TwitterWebFetchLatestPostCommentsGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
tweetId | String | 推文ID/Tweet ID | |
cursor | String | 游标/Cursor | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchPostCommentsApiV1TwitterWebFetchPostCommentsGet(tweetId, cursor)
获取评论/Get comments
[中文] ### 用途: - 获取推文下的评论 ### 参数: - tweet_id: 推文ID - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 评论 # [English] ### Purpose: - Get comments under the tweet ### Parameters: - tweet_id: Tweet ID - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - Comments # [示例/Example] tweet_id = "1808168603721650364" cursor = None
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String tweetId = 1835124037934367098; // String | 推文ID/Tweet ID
String cursor = "cursor_example"; // String | 游标/Cursor
try {
ResponseModel result = apiInstance.fetchPostCommentsApiV1TwitterWebFetchPostCommentsGet(tweetId, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchPostCommentsApiV1TwitterWebFetchPostCommentsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
tweetId | String | 推文ID/Tweet ID | |
cursor | String | 游标/Cursor | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchPostCommentsApiV1TwitterWebFetchPostCommentsGet_0(tweetId, cursor)
获取评论/Get comments
[中文] ### 用途: - 获取推文下的评论 ### 参数: - tweet_id: 推文ID - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 评论 # [English] ### Purpose: - Get comments under the tweet ### Parameters: - tweet_id: Tweet ID - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - Comments # [示例/Example] tweet_id = "1808168603721650364" cursor = None
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String tweetId = 1835124037934367098; // String | 推文ID/Tweet ID
String cursor = "cursor_example"; // String | 游标/Cursor
try {
ResponseModel result = apiInstance.fetchPostCommentsApiV1TwitterWebFetchPostCommentsGet_0(tweetId, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchPostCommentsApiV1TwitterWebFetchPostCommentsGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
tweetId | String | 推文ID/Tweet ID | |
cursor | String | 游标/Cursor | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchRetweetUserListApiV1TwitterWebFetchRetweetUserListGet(tweetId, cursor)
转推用户列表/ReTweet User list
[中文] ### 用途: - 获取转推用户列表 ### 参数: - tweet_id: 推文ID,可以从推文链接中获取。例如:https://x.com/elonmusk/status/1808168603721650364 中的 1808168603721650364。 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 转推用户列表 # [English] ### Purpose: - Get ReTweet User list ### Parameters: - tweet_id: Tweet ID, can be obtained from the tweet link. For example: 1808168603721650364 in https://x.com/elonmusk/status/1808168603721650364 - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - ReTweet User list # [示例/Example] tweet_id = "1808168603721650364" cursor = None
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String tweetId = 1835124037934367098; // String | 推文ID/Tweet ID
String cursor = "cursor_example"; // String | 游标/Cursor
try {
ResponseModel result = apiInstance.fetchRetweetUserListApiV1TwitterWebFetchRetweetUserListGet(tweetId, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchRetweetUserListApiV1TwitterWebFetchRetweetUserListGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
tweetId | String | 推文ID/Tweet ID | |
cursor | String | 游标/Cursor | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchRetweetUserListApiV1TwitterWebFetchRetweetUserListGet_0(tweetId, cursor)
转推用户列表/ReTweet User list
[中文] ### 用途: - 获取转推用户列表 ### 参数: - tweet_id: 推文ID,可以从推文链接中获取。例如:https://x.com/elonmusk/status/1808168603721650364 中的 1808168603721650364。 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 转推用户列表 # [English] ### Purpose: - Get ReTweet User list ### Parameters: - tweet_id: Tweet ID, can be obtained from the tweet link. For example: 1808168603721650364 in https://x.com/elonmusk/status/1808168603721650364 - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - ReTweet User list # [示例/Example] tweet_id = "1808168603721650364" cursor = None
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String tweetId = 1835124037934367098; // String | 推文ID/Tweet ID
String cursor = "cursor_example"; // String | 游标/Cursor
try {
ResponseModel result = apiInstance.fetchRetweetUserListApiV1TwitterWebFetchRetweetUserListGet_0(tweetId, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchRetweetUserListApiV1TwitterWebFetchRetweetUserListGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
tweetId | String | 推文ID/Tweet ID | |
cursor | String | 游标/Cursor | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSearchTimelineApiV1TwitterWebFetchSearchTimelineGet(keyword, searchType, cursor)
搜索/Search
[中文] ### 用途: - 搜索 ### 参数: - keyword: 搜索关键字 - search_type: 搜索类型,默认为Top,其他可选值为Latest,Media,People, Lists - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 搜索结果 # [English] ### Purpose: - Search ### Parameters: - keyword: Search keyword - search_type: Search type, default is Top, other optional values are Latest, Media, People, Lists - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - Search results # [示例/Example] keyword = "Elon Musk" search_type = "Top" cursor = None
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String keyword = Elon Musk; // String | 搜索关键字/Search Keyword
String searchType = Top; // String | 搜索类型/Search Type
String cursor = "cursor_example"; // String | 游标/Cursor
try {
ResponseModel result = apiInstance.fetchSearchTimelineApiV1TwitterWebFetchSearchTimelineGet(keyword, searchType, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchSearchTimelineApiV1TwitterWebFetchSearchTimelineGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 搜索关键字/Search Keyword | |
searchType | String | 搜索类型/Search Type | [optional] [default to "Top"] |
cursor | String | 游标/Cursor | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSearchTimelineApiV1TwitterWebFetchSearchTimelineGet_0(keyword, searchType, cursor)
搜索/Search
[中文] ### 用途: - 搜索 ### 参数: - keyword: 搜索关键字 - search_type: 搜索类型,默认为Top,其他可选值为Latest,Media,People, Lists - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 搜索结果 # [English] ### Purpose: - Search ### Parameters: - keyword: Search keyword - search_type: Search type, default is Top, other optional values are Latest, Media, People, Lists - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - Search results # [示例/Example] keyword = "Elon Musk" search_type = "Top" cursor = None
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String keyword = Elon Musk; // String | 搜索关键字/Search Keyword
String searchType = Top; // String | 搜索类型/Search Type
String cursor = "cursor_example"; // String | 游标/Cursor
try {
ResponseModel result = apiInstance.fetchSearchTimelineApiV1TwitterWebFetchSearchTimelineGet_0(keyword, searchType, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchSearchTimelineApiV1TwitterWebFetchSearchTimelineGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keyword | String | 搜索关键字/Search Keyword | |
searchType | String | 搜索类型/Search Type | [optional] [default to "Top"] |
cursor | String | 游标/Cursor | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchTrendingApiV1TwitterWebFetchTrendingGet(country)
趋势/Trending
[中文] ### 用途: - 获取趋势 ### 参数: - country: 国家,默认为UnitedStates,其他可选值见下方 - China - India - Japan - Russia - Germany - Indonesia - Brazil - France - UnitedKingdom - Turkey - Italy - Mexico - SouthKorea - Canada - Spain - SaudiArabia - Egypt - Australia - Poland - Iran - Pakistan - Vietnam - Nigeria - Bangladesh - Netherlands - Argentina - Philippines - Malaysia - Colombia - UniteArabEmirates - Romania - Belgium - Switzerland - Singapore - Sweden - Norway - Austria - Kazakhstan - Algeria - Chile - Czechia - Peru - Iraq - Israel - Ukraine - Denmark - Portugal - Hungary - Greece - Finland - NewZealand - Belarus - Slovakia - Serbia - Lithuania - Luxembourg - Estonia ### 返回: - 趋势 # [English] ### Purpose: - Get Trending ### Parameters: - country: Country, default is UnitedStates, other optional values are as follows - China - India - Japan - Russia - Germany - Indonesia - Brazil - France - UnitedKingdom - Turkey - Italy - Mexico - SouthKorea - Canada - Spain - SaudiArabia - Egypt - Australia - Poland - Iran - Pakistan - Vietnam - Nigeria - Bangladesh - Netherlands - Argentina - Philippines - Malaysia - Colombia - UniteArabEmirates - Romania - Belgium - Switzerland - Singapore - Sweden - Norway - Austria - Kazakhstan - Algeria - Chile - Czechia - Peru ### Return: - Trending # [示例/Example] country = "UnitedStates"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String country = UnitedStates; // String | 国家/Country
try {
ResponseModel result = apiInstance.fetchTrendingApiV1TwitterWebFetchTrendingGet(country);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchTrendingApiV1TwitterWebFetchTrendingGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
country | String | 国家/Country | [optional] [default to "UnitedStates"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchTrendingApiV1TwitterWebFetchTrendingGet_0(country)
趋势/Trending
[中文] ### 用途: - 获取趋势 ### 参数: - country: 国家,默认为UnitedStates,其他可选值见下方 - China - India - Japan - Russia - Germany - Indonesia - Brazil - France - UnitedKingdom - Turkey - Italy - Mexico - SouthKorea - Canada - Spain - SaudiArabia - Egypt - Australia - Poland - Iran - Pakistan - Vietnam - Nigeria - Bangladesh - Netherlands - Argentina - Philippines - Malaysia - Colombia - UniteArabEmirates - Romania - Belgium - Switzerland - Singapore - Sweden - Norway - Austria - Kazakhstan - Algeria - Chile - Czechia - Peru - Iraq - Israel - Ukraine - Denmark - Portugal - Hungary - Greece - Finland - NewZealand - Belarus - Slovakia - Serbia - Lithuania - Luxembourg - Estonia ### 返回: - 趋势 # [English] ### Purpose: - Get Trending ### Parameters: - country: Country, default is UnitedStates, other optional values are as follows - China - India - Japan - Russia - Germany - Indonesia - Brazil - France - UnitedKingdom - Turkey - Italy - Mexico - SouthKorea - Canada - Spain - SaudiArabia - Egypt - Australia - Poland - Iran - Pakistan - Vietnam - Nigeria - Bangladesh - Netherlands - Argentina - Philippines - Malaysia - Colombia - UniteArabEmirates - Romania - Belgium - Switzerland - Singapore - Sweden - Norway - Austria - Kazakhstan - Algeria - Chile - Czechia - Peru ### Return: - Trending # [示例/Example] country = "UnitedStates"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String country = UnitedStates; // String | 国家/Country
try {
ResponseModel result = apiInstance.fetchTrendingApiV1TwitterWebFetchTrendingGet_0(country);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchTrendingApiV1TwitterWebFetchTrendingGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
country | String | 国家/Country | [optional] [default to "UnitedStates"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchTweetDetailApiV1TwitterWebFetchTweetDetailGet(tweetId)
获取单个推文数据/Get single tweet data
[中文] ### 用途: - 获取单个推文数据 ### 参数: - tweet_id: 推文ID,可以从推文链接中获取。例如:https://x.com/elonmusk/status/1808168603721650364 中的 1808168603721650364。 ### 返回: - 推文数据 # [English] ### Purpose: - Get single tweet data ### Parameters: - tweet_id: Tweet ID, can be obtained from the tweet link. For example: 1808168603721650364 in https://x.com/elonmusk/status/1808168603721650364 ### Return: - Tweet data # [示例/Example] tweet_id = "1808168603721650364"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String tweetId = 1808168603721650364; // String | 推文ID/Tweet ID
try {
ResponseModel result = apiInstance.fetchTweetDetailApiV1TwitterWebFetchTweetDetailGet(tweetId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchTweetDetailApiV1TwitterWebFetchTweetDetailGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
tweetId | String | 推文ID/Tweet ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchTweetDetailApiV1TwitterWebFetchTweetDetailGet_0(tweetId)
获取单个推文数据/Get single tweet data
[中文] ### 用途: - 获取单个推文数据 ### 参数: - tweet_id: 推文ID,可以从推文链接中获取。例如:https://x.com/elonmusk/status/1808168603721650364 中的 1808168603721650364。 ### 返回: - 推文数据 # [English] ### Purpose: - Get single tweet data ### Parameters: - tweet_id: Tweet ID, can be obtained from the tweet link. For example: 1808168603721650364 in https://x.com/elonmusk/status/1808168603721650364 ### Return: - Tweet data # [示例/Example] tweet_id = "1808168603721650364"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String tweetId = 1808168603721650364; // String | 推文ID/Tweet ID
try {
ResponseModel result = apiInstance.fetchTweetDetailApiV1TwitterWebFetchTweetDetailGet_0(tweetId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchTweetDetailApiV1TwitterWebFetchTweetDetailGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
tweetId | String | 推文ID/Tweet ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowersApiV1TwitterWebFetchUserFollowersGet(screenName, cursor)
用户粉丝/User Followers
[中文] ### 用途: - 获取用户粉丝 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 用户粉丝 # [English] ### Purpose: - Get User Followers ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - User Followers # [示例/Example] screen_name = "elonmusk"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String screenName = elonmusk; // String | 用户名/Screen Name
String cursor = "cursor_example"; // String | 游标/Cursor
try {
ResponseModel result = apiInstance.fetchUserFollowersApiV1TwitterWebFetchUserFollowersGet(screenName, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchUserFollowersApiV1TwitterWebFetchUserFollowersGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
screenName | String | 用户名/Screen Name | |
cursor | String | 游标/Cursor | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowersApiV1TwitterWebFetchUserFollowersGet_0(screenName, cursor)
用户粉丝/User Followers
[中文] ### 用途: - 获取用户粉丝 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 用户粉丝 # [English] ### Purpose: - Get User Followers ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - User Followers # [示例/Example] screen_name = "elonmusk"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String screenName = elonmusk; // String | 用户名/Screen Name
String cursor = "cursor_example"; // String | 游标/Cursor
try {
ResponseModel result = apiInstance.fetchUserFollowersApiV1TwitterWebFetchUserFollowersGet_0(screenName, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchUserFollowersApiV1TwitterWebFetchUserFollowersGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
screenName | String | 用户名/Screen Name | |
cursor | String | 游标/Cursor | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowingsApiV1TwitterWebFetchUserFollowingsGet(screenName, cursor)
用户关注/User Followings
[中文] ### 用途: - 获取用户关注 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 用户关注 # [English] ### Purpose: - Get User Followings ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - User Followings # [示例/Example] screen_name = "elonmusk"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String screenName = elonmusk; // String | 用户名/Screen Name
String cursor = "cursor_example"; // String | 游标/Cursor
try {
ResponseModel result = apiInstance.fetchUserFollowingsApiV1TwitterWebFetchUserFollowingsGet(screenName, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchUserFollowingsApiV1TwitterWebFetchUserFollowingsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
screenName | String | 用户名/Screen Name | |
cursor | String | 游标/Cursor | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowingsApiV1TwitterWebFetchUserFollowingsGet_0(screenName, cursor)
用户关注/User Followings
[中文] ### 用途: - 获取用户关注 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 用户关注 # [English] ### Purpose: - Get User Followings ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - User Followings # [示例/Example] screen_name = "elonmusk"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String screenName = elonmusk; // String | 用户名/Screen Name
String cursor = "cursor_example"; // String | 游标/Cursor
try {
ResponseModel result = apiInstance.fetchUserFollowingsApiV1TwitterWebFetchUserFollowingsGet_0(screenName, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchUserFollowingsApiV1TwitterWebFetchUserFollowingsGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
screenName | String | 用户名/Screen Name | |
cursor | String | 游标/Cursor | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserHighlightsTweetsApiV1TwitterWebFetchUserHighlightsTweetsGet(userId, count, cursor)
获取用户高光推文/Get user highlights tweets
[中文] ### 用途: - 获取用户高光推文 ### 参数: - userId: 用户ID - count: 数量,默认为20 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 - JSONPath:
You can't use 'macro parameter character #' in math mode
$.data.data.user.result.timeline_v2.timeline.instructions.[1].entries.[-1].content.value ### 返回: - 用户高光推文 # [English] ### Purpose: - Get user highlights tweets ### Parameters: - userId: User ID - count: Count, default is 20 - cursor: Cursor, default is None, used for paging, obtained from the last request - JSONPath: $
.data.data.user.result.timeline_v2.timeline.instructions.[1].entries.[-1].content.value ### Return: - User highlights tweets # [示例/Example] userId = "44196397" count = 20 cursor = None
$.data.data.user.result.timeline_v2.timeline.instructions.[1].entries.[-1].content.value ### 返回: - 用户高光推文 # [English] ### Purpose: - Get user highlights tweets ### Parameters: - userId: User ID - count: Count, default is 20 - cursor: Cursor, default is None, used for paging, obtained from the last request - JSONPath: $
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String userId = 44196397; // String | 用户ID/User ID
Integer count = 20; // Integer | 数量/Count
String cursor = "cursor_example"; // String | 游标/Cursor
try {
ResponseModel result = apiInstance.fetchUserHighlightsTweetsApiV1TwitterWebFetchUserHighlightsTweetsGet(userId, count, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchUserHighlightsTweetsApiV1TwitterWebFetchUserHighlightsTweetsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userId | String | 用户ID/User ID | |
count | Integer | 数量/Count | [optional] [default to 20] |
cursor | String | 游标/Cursor | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserHighlightsTweetsApiV1TwitterWebFetchUserHighlightsTweetsGet_0(userId, count, cursor)
获取用户高光推文/Get user highlights tweets
[中文] ### 用途: - 获取用户高光推文 ### 参数: - userId: 用户ID - count: 数量,默认为20 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 - JSONPath:
You can't use 'macro parameter character #' in math mode
$.data.data.user.result.timeline_v2.timeline.instructions.[1].entries.[-1].content.value ### 返回: - 用户高光推文 # [English] ### Purpose: - Get user highlights tweets ### Parameters: - userId: User ID - count: Count, default is 20 - cursor: Cursor, default is None, used for paging, obtained from the last request - JSONPath: $
.data.data.user.result.timeline_v2.timeline.instructions.[1].entries.[-1].content.value ### Return: - User highlights tweets # [示例/Example] userId = "44196397" count = 20 cursor = None
$.data.data.user.result.timeline_v2.timeline.instructions.[1].entries.[-1].content.value ### 返回: - 用户高光推文 # [English] ### Purpose: - Get user highlights tweets ### Parameters: - userId: User ID - count: Count, default is 20 - cursor: Cursor, default is None, used for paging, obtained from the last request - JSONPath: $
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String userId = 44196397; // String | 用户ID/User ID
Integer count = 20; // Integer | 数量/Count
String cursor = "cursor_example"; // String | 游标/Cursor
try {
ResponseModel result = apiInstance.fetchUserHighlightsTweetsApiV1TwitterWebFetchUserHighlightsTweetsGet_0(userId, count, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchUserHighlightsTweetsApiV1TwitterWebFetchUserHighlightsTweetsGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userId | String | 用户ID/User ID | |
count | Integer | 数量/Count | [optional] [default to 20] |
cursor | String | 游标/Cursor | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserMediaApiV1TwitterWebFetchUserMediaGet(screenName, restId)
获取用户媒体/Get user media
[中文] ### 用途: - 获取用户媒体 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - rest_id: 用户ID,例如:44196397,如果使用用户ID则会忽略用户名,两者只能选其一。 ### 返回: - 用户媒体 # [English] ### Purpose: - Get user media ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - rest_id: User ID, for example: 44196397, if the user ID is used, the username will be ignored, only one of them can be selected. ### Return: - User media # [示例/Example] screen_name = "elonmusk"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String screenName = elonmusk; // String | 用户名/Screen Name
Integer restId = 44196397; // Integer | 用户ID/User ID
try {
ResponseModel result = apiInstance.fetchUserMediaApiV1TwitterWebFetchUserMediaGet(screenName, restId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchUserMediaApiV1TwitterWebFetchUserMediaGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
screenName | String | 用户名/Screen Name | |
restId | Integer | 用户ID/User ID | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserMediaApiV1TwitterWebFetchUserMediaGet_0(screenName, restId)
获取用户媒体/Get user media
[中文] ### 用途: - 获取用户媒体 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - rest_id: 用户ID,例如:44196397,如果使用用户ID则会忽略用户名,两者只能选其一。 ### 返回: - 用户媒体 # [English] ### Purpose: - Get user media ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - rest_id: User ID, for example: 44196397, if the user ID is used, the username will be ignored, only one of them can be selected. ### Return: - User media # [示例/Example] screen_name = "elonmusk"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String screenName = elonmusk; // String | 用户名/Screen Name
Integer restId = 44196397; // Integer | 用户ID/User ID
try {
ResponseModel result = apiInstance.fetchUserMediaApiV1TwitterWebFetchUserMediaGet_0(screenName, restId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchUserMediaApiV1TwitterWebFetchUserMediaGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
screenName | String | 用户名/Screen Name | |
restId | Integer | 用户ID/User ID | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserPostTweetApiV1TwitterWebFetchUserPostTweetGet(screenName, restId, cursor)
获取用户发帖/Get user post
[中文] ### 用途: - 获取用户发帖 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - rest_id: 用户ID,例如:44196397,如果使用用户ID则会忽略用户名,两者只能选其一。 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中的JSON中获取。 ### 返回: - 用户发帖 # [English] ### Purpose: - Get user post ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - rest_id: User ID, for example: 44196397, if the user ID is used, the username will be ignored, only one of them can be selected. - cursor: Cursor, default is None, used for paging, obtained from the JSON in the last request. # [示例/Example] screen_name = "elonmusk" rest_id = 44196397 cursor = None
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String screenName = elonmusk; // String | 用户名/Screen Name
Integer restId = 44196397; // Integer | 用户ID/User ID
String cursor = "cursor_example"; // String | 游标/Cursor
try {
ResponseModel result = apiInstance.fetchUserPostTweetApiV1TwitterWebFetchUserPostTweetGet(screenName, restId, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchUserPostTweetApiV1TwitterWebFetchUserPostTweetGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
screenName | String | 用户名/Screen Name | [optional] |
restId | Integer | 用户ID/User ID | [optional] |
cursor | String | 游标/Cursor | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserPostTweetApiV1TwitterWebFetchUserPostTweetGet_0(screenName, restId, cursor)
获取用户发帖/Get user post
[中文] ### 用途: - 获取用户发帖 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - rest_id: 用户ID,例如:44196397,如果使用用户ID则会忽略用户名,两者只能选其一。 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中的JSON中获取。 ### 返回: - 用户发帖 # [English] ### Purpose: - Get user post ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - rest_id: User ID, for example: 44196397, if the user ID is used, the username will be ignored, only one of them can be selected. - cursor: Cursor, default is None, used for paging, obtained from the JSON in the last request. # [示例/Example] screen_name = "elonmusk" rest_id = 44196397 cursor = None
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String screenName = elonmusk; // String | 用户名/Screen Name
Integer restId = 44196397; // Integer | 用户ID/User ID
String cursor = "cursor_example"; // String | 游标/Cursor
try {
ResponseModel result = apiInstance.fetchUserPostTweetApiV1TwitterWebFetchUserPostTweetGet_0(screenName, restId, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchUserPostTweetApiV1TwitterWebFetchUserPostTweetGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
screenName | String | 用户名/Screen Name | [optional] |
restId | Integer | 用户ID/User ID | [optional] |
cursor | String | 游标/Cursor | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserProfileApiV1TwitterWebFetchUserProfileGet(screenName, restId)
获取用户资料/Get user profile
[中文] ### 用途: - 获取用户资料 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - rest_id: 用户ID,例如:44196397,如果使用用户ID则会忽略用户名,两者只能选其一。 ### 返回: - 用户资料 # [English] ### Purpose: - Get user profile ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - rest_id: User ID, for example: 44196397, if the user ID is used, the username will be ignored, only one of them can be selected. ### Return: - User profile # [示例/Example] screen_name = "elonmusk"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String screenName = elonmusk; // String | 用户名/Screen Name
Integer restId = 44196397; // Integer | 用户ID(如果使用用户ID则会忽略用户名)/User ID (If the user ID is used, the user name will be ignored)
try {
ResponseModel result = apiInstance.fetchUserProfileApiV1TwitterWebFetchUserProfileGet(screenName, restId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchUserProfileApiV1TwitterWebFetchUserProfileGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
screenName | String | 用户名/Screen Name | [optional] |
restId | Integer | 用户ID(如果使用用户ID则会忽略用户名)/User ID (If the user ID is used, the user name will be ignored) | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserProfileApiV1TwitterWebFetchUserProfileGet_0(screenName, restId)
获取用户资料/Get user profile
[中文] ### 用途: - 获取用户资料 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - rest_id: 用户ID,例如:44196397,如果使用用户ID则会忽略用户名,两者只能选其一。 ### 返回: - 用户资料 # [English] ### Purpose: - Get user profile ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - rest_id: User ID, for example: 44196397, if the user ID is used, the username will be ignored, only one of them can be selected. ### Return: - User profile # [示例/Example] screen_name = "elonmusk"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String screenName = elonmusk; // String | 用户名/Screen Name
Integer restId = 44196397; // Integer | 用户ID(如果使用用户ID则会忽略用户名)/User ID (If the user ID is used, the user name will be ignored)
try {
ResponseModel result = apiInstance.fetchUserProfileApiV1TwitterWebFetchUserProfileGet_0(screenName, restId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchUserProfileApiV1TwitterWebFetchUserProfileGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
screenName | String | 用户名/Screen Name | [optional] |
restId | Integer | 用户ID(如果使用用户ID则会忽略用户名)/User ID (If the user ID is used, the user name will be ignored) | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserTweetRepliesApiV1TwitterWebFetchUserTweetRepliesGet(screenName, cursor)
获取用户推文回复/Get user tweet replies
[中文] ### 用途: - 获取用户推文回复 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 用户推文回复 # [English] ### Purpose: - Get user tweet replies ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - User tweet replies # [示例/Example] screen_name = "elonmusk" cursor = None
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String screenName = elonmusk; // String | 用户名/Screen Name
String cursor = "cursor_example"; // String | 游标/Cursor
try {
ResponseModel result = apiInstance.fetchUserTweetRepliesApiV1TwitterWebFetchUserTweetRepliesGet(screenName, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchUserTweetRepliesApiV1TwitterWebFetchUserTweetRepliesGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
screenName | String | 用户名/Screen Name | |
cursor | String | 游标/Cursor | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserTweetRepliesApiV1TwitterWebFetchUserTweetRepliesGet_0(screenName, cursor)
获取用户推文回复/Get user tweet replies
[中文] ### 用途: - 获取用户推文回复 ### 参数: - screen_name: 用户名,例如:elonmusk,可以从用户主页链接中获取,例如:https://twitter.com/elonmusk 中的 elonmusk。 - cursor: 游标,默认为None,用于翻页,后续从上一次请求的返回结果中获取 ### 返回: - 用户推文回复 # [English] ### Purpose: - Get user tweet replies ### Parameters: - screen_name: Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk - cursor: Cursor, default is None, used for paging, obtained from the last request ### Return: - User tweet replies # [示例/Example] screen_name = "elonmusk" cursor = None
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.TwitterWebApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
TwitterWebApiApi apiInstance = new TwitterWebApiApi(defaultClient);
String screenName = elonmusk; // String | 用户名/Screen Name
String cursor = "cursor_example"; // String | 游标/Cursor
try {
ResponseModel result = apiInstance.fetchUserTweetRepliesApiV1TwitterWebFetchUserTweetRepliesGet_0(screenName, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterWebApiApi#fetchUserTweetRepliesApiV1TwitterWebFetchUserTweetRepliesGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
screenName | String | 用户名/Screen Name | |
cursor | String | 游标/Cursor | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |