All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
checkLiveRoomOnlineApiV1TiktokAppV2CheckLiveRoomOnlineGet | GET /api/v1/tiktok/app/v2/check_live_room_online | 检测直播间是否在线/Check if live room is online |
checkLiveRoomOnlineApiV1TiktokAppV2CheckLiveRoomOnlineGet_0 | GET /api/v1/tiktok/app/v2/check_live_room_online | 检测直播间是否在线/Check if live room is online |
fetchGeneralSearchResultApiV1TiktokAppV2FetchGeneralSearchResultGet | GET /api/v1/tiktok/app/v2/fetch_general_search_result | 获取指定关键词的综合搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_general_search_result) |
fetchGeneralSearchResultApiV1TiktokAppV2FetchGeneralSearchResultGet_0 | GET /api/v1/tiktok/app/v2/fetch_general_search_result | 获取指定关键词的综合搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_general_search_result) |
fetchHashtagDetailApiV1TiktokAppV2FetchHashtagDetailGet | GET /api/v1/tiktok/app/v2/fetch_hashtag_detail | 获取指定话题的详情数据/Get details of specified hashtag |
fetchHashtagDetailApiV1TiktokAppV2FetchHashtagDetailGet_0 | GET /api/v1/tiktok/app/v2/fetch_hashtag_detail | 获取指定话题的详情数据/Get details of specified hashtag |
fetchHashtagSearchResultApiV1TiktokAppV2FetchHashtagSearchResultGet | GET /api/v1/tiktok/app/v2/fetch_hashtag_search_result | 获取指定关键词的话题搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_hashtag_search_result) |
fetchHashtagSearchResultApiV1TiktokAppV2FetchHashtagSearchResultGet_0 | GET /api/v1/tiktok/app/v2/fetch_hashtag_search_result | 获取指定关键词的话题搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_hashtag_search_result) |
fetchHashtagVideoListApiV1TiktokAppV2FetchHashtagVideoListGet | GET /api/v1/tiktok/app/v2/fetch_hashtag_video_list | 获取指定话题的作品数据/Get video list of specified hashtag |
fetchHashtagVideoListApiV1TiktokAppV2FetchHashtagVideoListGet_0 | GET /api/v1/tiktok/app/v2/fetch_hashtag_video_list | 获取指定话题的作品数据/Get video list of specified hashtag |
fetchHomeFeedApiV1TiktokAppV2FetchHomeFeedGet | GET /api/v1/tiktok/app/v2/fetch_home_feed | 获取主页视频推荐数据/Get home feed(recommend) video data |
fetchHomeFeedApiV1TiktokAppV2FetchHomeFeedGet_0 | GET /api/v1/tiktok/app/v2/fetch_home_feed | 获取主页视频推荐数据/Get home feed(recommend) video data |
fetchLiveRankingListApiV1TiktokAppV2FetchLiveRankingListGet | GET /api/v1/tiktok/app/v2/fetch_live_ranking_list | 获取直播间排行榜数据/Get live room ranking list |
fetchLiveRankingListApiV1TiktokAppV2FetchLiveRankingListGet_0 | GET /api/v1/tiktok/app/v2/fetch_live_ranking_list | 获取直播间排行榜数据/Get live room ranking list |
fetchLiveSearchResultApiV1TiktokAppV2FetchLiveSearchResultGet | GET /api/v1/tiktok/app/v2/fetch_live_search_result | 获取指定关键词的直播搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_live_search_result) |
fetchLiveSearchResultApiV1TiktokAppV2FetchLiveSearchResultGet_0 | GET /api/v1/tiktok/app/v2/fetch_live_search_result | 获取指定关键词的直播搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_live_search_result) |
fetchMusicDetailApiV1TiktokAppV2FetchMusicDetailGet | GET /api/v1/tiktok/app/v2/fetch_music_detail | 获取指定音乐的详情数据/Get details of specified music |
fetchMusicDetailApiV1TiktokAppV2FetchMusicDetailGet_0 | GET /api/v1/tiktok/app/v2/fetch_music_detail | 获取指定音乐的详情数据/Get details of specified music |
fetchMusicSearchResultApiV1TiktokAppV2FetchMusicSearchResultGet | GET /api/v1/tiktok/app/v2/fetch_music_search_result | 获取指定关键词的音乐搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_music_search_result) |
fetchMusicSearchResultApiV1TiktokAppV2FetchMusicSearchResultGet_0 | GET /api/v1/tiktok/app/v2/fetch_music_search_result | 获取指定关键词的音乐搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_music_search_result) |
fetchMusicVideoListApiV1TiktokAppV2FetchMusicVideoListGet | GET /api/v1/tiktok/app/v2/fetch_music_video_list | 获取指定音乐的视频列表数据/Get video list of specified music |
fetchMusicVideoListApiV1TiktokAppV2FetchMusicVideoListGet_0 | GET /api/v1/tiktok/app/v2/fetch_music_video_list | 获取指定音乐的视频列表数据/Get video list of specified music |
fetchOneVideoApiV1TiktokAppV2FetchOneVideoGet | GET /api/v1/tiktok/app/v2/fetch_one_video | 获取单个作品数据/Get single video data |
fetchOneVideoApiV1TiktokAppV2FetchOneVideoGet_0 | GET /api/v1/tiktok/app/v2/fetch_one_video | 获取单个作品数据/Get single video data |
fetchOneVideoByShareUrlApiV1TiktokAppV2FetchOneVideoByShareUrlGet | GET /api/v1/tiktok/app/v2/fetch_one_video_by_share_url | 根据分享链接获取单个作品数据/Get single video data by sharing link |
fetchOneVideoByShareUrlApiV1TiktokAppV2FetchOneVideoByShareUrlGet_0 | GET /api/v1/tiktok/app/v2/fetch_one_video_by_share_url | 根据分享链接获取单个作品数据/Get single video data by sharing link |
fetchUserFollowerListApiV1TiktokAppV2FetchUserFollowerListGet | GET /api/v1/tiktok/app/v2/fetch_user_follower_list | 获取指定用户的粉丝列表数据/Get follower list of specified user |
fetchUserFollowerListApiV1TiktokAppV2FetchUserFollowerListGet_0 | GET /api/v1/tiktok/app/v2/fetch_user_follower_list | 获取指定用户的粉丝列表数据/Get follower list of specified user |
fetchUserFollowingListApiV1TiktokAppV2FetchUserFollowingListGet | GET /api/v1/tiktok/app/v2/fetch_user_following_list | 获取指定用户的关注列表数据/Get following list of specified user |
fetchUserFollowingListApiV1TiktokAppV2FetchUserFollowingListGet_0 | GET /api/v1/tiktok/app/v2/fetch_user_following_list | 获取指定用户的关注列表数据/Get following list of specified user |
fetchUserLikeVideosApiV1TiktokAppV2FetchUserLikeVideosGet | GET /api/v1/tiktok/app/v2/fetch_user_like_videos | 获取用户喜欢作品数据/Get user like video data |
fetchUserLikeVideosApiV1TiktokAppV2FetchUserLikeVideosGet_0 | GET /api/v1/tiktok/app/v2/fetch_user_like_videos | 获取用户喜欢作品数据/Get user like video data |
fetchUserPostVideosApiV1TiktokAppV2FetchUserPostVideosGet | GET /api/v1/tiktok/app/v2/fetch_user_post_videos | 获取用户主页作品数据/Get user homepage video data |
fetchUserPostVideosApiV1TiktokAppV2FetchUserPostVideosGet_0 | GET /api/v1/tiktok/app/v2/fetch_user_post_videos | 获取用户主页作品数据/Get user homepage video data |
fetchUserSearchResultApiV1TiktokAppV2FetchUserSearchResultGet | GET /api/v1/tiktok/app/v2/fetch_user_search_result | 获取指定关键词的用户搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_user_search_result) |
fetchUserSearchResultApiV1TiktokAppV2FetchUserSearchResultGet_0 | GET /api/v1/tiktok/app/v2/fetch_user_search_result | 获取指定关键词的用户搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_user_search_result) |
fetchVideoCommentsApiV1TiktokAppV2FetchVideoCommentsGet | GET /api/v1/tiktok/app/v2/fetch_video_comments | 获取单个视频评论数据/Get single video comments data |
fetchVideoCommentsApiV1TiktokAppV2FetchVideoCommentsGet_0 | GET /api/v1/tiktok/app/v2/fetch_video_comments | 获取单个视频评论数据/Get single video comments data |
fetchVideoCommentsReplyApiV1TiktokAppV2FetchVideoCommentRepliesGet | GET /api/v1/tiktok/app/v2/fetch_video_comment_replies | 获取指定视频的评论回复数据/Get comment replies data of specified video |
fetchVideoCommentsReplyApiV1TiktokAppV2FetchVideoCommentRepliesGet_0 | GET /api/v1/tiktok/app/v2/fetch_video_comment_replies | 获取指定视频的评论回复数据/Get comment replies data of specified video |
fetchVideoSearchResultApiV1TiktokAppV2FetchVideoSearchResultGet | GET /api/v1/tiktok/app/v2/fetch_video_search_result | 获取指定关键词的视频搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_video_search_result) |
fetchVideoSearchResultApiV1TiktokAppV2FetchVideoSearchResultGet_0 | GET /api/v1/tiktok/app/v2/fetch_video_search_result | 获取指定关键词的视频搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_video_search_result) |
handlerUserProfileApiV1TiktokAppV2HandlerUserProfileGet | GET /api/v1/tiktok/app/v2/handler_user_profile | 获取指定用户的信息/Get information of specified user |
handlerUserProfileApiV1TiktokAppV2HandlerUserProfileGet_0 | GET /api/v1/tiktok/app/v2/handler_user_profile | 获取指定用户的信息/Get information of specified user |
ResponseModel checkLiveRoomOnlineApiV1TiktokAppV2CheckLiveRoomOnlineGet(roomId)
检测直播间是否在线/Check if live room is online
[中文] ### 用途: - 检测直播间是否在线 ### 参数: - room_id: 直播间id ### 返回: - 是否在线 # [English] ### Purpose: - Check if live room is online ### Parameters: - room_id: Live room id ### Return: - Whether online # [示例/Example] room_id = "7358603858249009962"
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String roomId = 7358603858249009962; // String | 直播间id/Live room id
try {
ResponseModel result = apiInstance.checkLiveRoomOnlineApiV1TiktokAppV2CheckLiveRoomOnlineGet(roomId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#checkLiveRoomOnlineApiV1TiktokAppV2CheckLiveRoomOnlineGet");
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 |
---|---|---|---|
roomId | String | 直播间id/Live room id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel checkLiveRoomOnlineApiV1TiktokAppV2CheckLiveRoomOnlineGet_0(roomId)
检测直播间是否在线/Check if live room is online
[中文] ### 用途: - 检测直播间是否在线 ### 参数: - room_id: 直播间id ### 返回: - 是否在线 # [English] ### Purpose: - Check if live room is online ### Parameters: - room_id: Live room id ### Return: - Whether online # [示例/Example] room_id = "7358603858249009962"
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String roomId = 7358603858249009962; // String | 直播间id/Live room id
try {
ResponseModel result = apiInstance.checkLiveRoomOnlineApiV1TiktokAppV2CheckLiveRoomOnlineGet_0(roomId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#checkLiveRoomOnlineApiV1TiktokAppV2CheckLiveRoomOnlineGet_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 |
---|---|---|---|
roomId | String | 直播间id/Live room id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchGeneralSearchResultApiV1TiktokAppV2FetchGeneralSearchResultGet(keyword, offset, count, sortType, publishTime)
获取指定关键词的综合搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_general_search_result) | Get comprehensive search results of specified keywords (deprecated, replaced by interface: /api/v1/tiktok/app/v3/fetch_general_search_result)
[中文] ### 用途: - 获取指定关键词的综合搜索结果 ### 参数: - keyword: 关键词 - offset: 偏移量 - count: 数量 - sort_type: 0-相关度,1-最多点赞 - publish_time: 0-不限制,1-最近一天,7-最近一周,30-最近一个月,90-最近三个月,180-最近半年 ### 返回: - 综合搜索结果 # [English] ### Purpose: - Get comprehensive search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset - count: Number - sort_type: 0-Relatedness, 1-Most likes - publish_time: 0-Unlimited, 1-Last day, 7-Last week, 30-Last month, 90-Last three months, 180-Last half year ### Return: - Comprehensive search results # [示例/Example] keyword = "中华娘" offset = 0 count = 20 sort_type = 0 publish_time = 0
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String keyword = 中华娘; // String | 关键词/Keyword
Integer offset = 0; // Integer | 偏移量/Offset
Integer count = 20; // Integer | 数量/Number
Integer sortType = 56; // Integer | 排序类型/Sort type
Integer publishTime = 56; // Integer | 发布时间/Publish time
try {
ResponseModel result = apiInstance.fetchGeneralSearchResultApiV1TiktokAppV2FetchGeneralSearchResultGet(keyword, offset, count, sortType, publishTime);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchGeneralSearchResultApiV1TiktokAppV2FetchGeneralSearchResultGet");
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 | 关键词/Keyword | |
offset | Integer | 偏移量/Offset | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
sortType | Integer | 排序类型/Sort type | [optional] |
publishTime | Integer | 发布时间/Publish time | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchGeneralSearchResultApiV1TiktokAppV2FetchGeneralSearchResultGet_0(keyword, offset, count, sortType, publishTime)
获取指定关键词的综合搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_general_search_result) | Get comprehensive search results of specified keywords (deprecated, replaced by interface: /api/v1/tiktok/app/v3/fetch_general_search_result)
[中文] ### 用途: - 获取指定关键词的综合搜索结果 ### 参数: - keyword: 关键词 - offset: 偏移量 - count: 数量 - sort_type: 0-相关度,1-最多点赞 - publish_time: 0-不限制,1-最近一天,7-最近一周,30-最近一个月,90-最近三个月,180-最近半年 ### 返回: - 综合搜索结果 # [English] ### Purpose: - Get comprehensive search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset - count: Number - sort_type: 0-Relatedness, 1-Most likes - publish_time: 0-Unlimited, 1-Last day, 7-Last week, 30-Last month, 90-Last three months, 180-Last half year ### Return: - Comprehensive search results # [示例/Example] keyword = "中华娘" offset = 0 count = 20 sort_type = 0 publish_time = 0
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String keyword = 中华娘; // String | 关键词/Keyword
Integer offset = 0; // Integer | 偏移量/Offset
Integer count = 20; // Integer | 数量/Number
Integer sortType = 56; // Integer | 排序类型/Sort type
Integer publishTime = 56; // Integer | 发布时间/Publish time
try {
ResponseModel result = apiInstance.fetchGeneralSearchResultApiV1TiktokAppV2FetchGeneralSearchResultGet_0(keyword, offset, count, sortType, publishTime);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchGeneralSearchResultApiV1TiktokAppV2FetchGeneralSearchResultGet_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 | 关键词/Keyword | |
offset | Integer | 偏移量/Offset | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
sortType | Integer | 排序类型/Sort type | [optional] |
publishTime | Integer | 发布时间/Publish time | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchHashtagDetailApiV1TiktokAppV2FetchHashtagDetailGet(chId)
获取指定话题的详情数据/Get details of specified hashtag
[中文] ### 用途: - 获取指定话题的详情数据 ### 参数: - ch_id: 话题id ### 返回: - 话题详情数据 # [English] ### Purpose: - Get details of specified hashtag ### Parameters: - ch_id: Hashtag id ### Return: - Hashtag details data # [示例/Example] ch_id = "7551"
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String chId = 7551; // String | 话题id/Hashtag id
try {
ResponseModel result = apiInstance.fetchHashtagDetailApiV1TiktokAppV2FetchHashtagDetailGet(chId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchHashtagDetailApiV1TiktokAppV2FetchHashtagDetailGet");
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 |
---|---|---|---|
chId | String | 话题id/Hashtag id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchHashtagDetailApiV1TiktokAppV2FetchHashtagDetailGet_0(chId)
获取指定话题的详情数据/Get details of specified hashtag
[中文] ### 用途: - 获取指定话题的详情数据 ### 参数: - ch_id: 话题id ### 返回: - 话题详情数据 # [English] ### Purpose: - Get details of specified hashtag ### Parameters: - ch_id: Hashtag id ### Return: - Hashtag details data # [示例/Example] ch_id = "7551"
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String chId = 7551; // String | 话题id/Hashtag id
try {
ResponseModel result = apiInstance.fetchHashtagDetailApiV1TiktokAppV2FetchHashtagDetailGet_0(chId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchHashtagDetailApiV1TiktokAppV2FetchHashtagDetailGet_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 |
---|---|---|---|
chId | String | 话题id/Hashtag id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchHashtagSearchResultApiV1TiktokAppV2FetchHashtagSearchResultGet(keyword, offset, count)
获取指定关键词的话题搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_hashtag_search_result) | Get hashtag search results of specified keywords (deprecated, replaced by interface: /api/v1/tiktok/app/v3/fetch_hashtag_search_result)
[中文] ### 用途: - 获取指定关键词的话题搜索结果 ### 参数: - keyword: 关键词 - offset: 偏移量 - count: 数量 ### 返回: - 话题搜索结果 # [English] ### Purpose: - Get hashtag search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset - count: Number ### Return: - Hashtag search results # [示例/Example] keyword = "Cat" offset = 0 count = 20
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String keyword = Cat; // String | 关键词/Keyword
Integer offset = 0; // Integer | 偏移量/Offset
Integer count = 20; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchHashtagSearchResultApiV1TiktokAppV2FetchHashtagSearchResultGet(keyword, offset, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchHashtagSearchResultApiV1TiktokAppV2FetchHashtagSearchResultGet");
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 | 关键词/Keyword | |
offset | Integer | 偏移量/Offset | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchHashtagSearchResultApiV1TiktokAppV2FetchHashtagSearchResultGet_0(keyword, offset, count)
获取指定关键词的话题搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_hashtag_search_result) | Get hashtag search results of specified keywords (deprecated, replaced by interface: /api/v1/tiktok/app/v3/fetch_hashtag_search_result)
[中文] ### 用途: - 获取指定关键词的话题搜索结果 ### 参数: - keyword: 关键词 - offset: 偏移量 - count: 数量 ### 返回: - 话题搜索结果 # [English] ### Purpose: - Get hashtag search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset - count: Number ### Return: - Hashtag search results # [示例/Example] keyword = "Cat" offset = 0 count = 20
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String keyword = Cat; // String | 关键词/Keyword
Integer offset = 0; // Integer | 偏移量/Offset
Integer count = 20; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchHashtagSearchResultApiV1TiktokAppV2FetchHashtagSearchResultGet_0(keyword, offset, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchHashtagSearchResultApiV1TiktokAppV2FetchHashtagSearchResultGet_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 | 关键词/Keyword | |
offset | Integer | 偏移量/Offset | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchHashtagVideoListApiV1TiktokAppV2FetchHashtagVideoListGet(chId, cursor, count)
获取指定话题的作品数据/Get video list of specified hashtag
[中文] ### 用途: - 获取指定话题的作品数据 ### 参数: - ch_id: 话题id - cursor: 游标,用于翻页,第一页为0,第二页为第一次响应中的cursor值。 - count: 数量 ### 返回: - 话题作品数据 # [English] ### Purpose: - Get video list of specified hashtag ### Parameters: - ch_id: Hashtag id - cursor: Cursor, used for paging, the first page is 0, the second page is the cursor value in the first response. - count: Number ### Return: - Hashtag video list data # [示例/Example] ch_id = "7551" cursor = 0 sort_type = 0 count = 10
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String chId = 7551; // String | 话题id/Hashtag id
Integer cursor = 0; // Integer | 游标/Cursor
Integer count = 10; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchHashtagVideoListApiV1TiktokAppV2FetchHashtagVideoListGet(chId, cursor, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchHashtagVideoListApiV1TiktokAppV2FetchHashtagVideoListGet");
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 |
---|---|---|---|
chId | String | 话题id/Hashtag id | |
cursor | Integer | 游标/Cursor | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 10] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchHashtagVideoListApiV1TiktokAppV2FetchHashtagVideoListGet_0(chId, cursor, count)
获取指定话题的作品数据/Get video list of specified hashtag
[中文] ### 用途: - 获取指定话题的作品数据 ### 参数: - ch_id: 话题id - cursor: 游标,用于翻页,第一页为0,第二页为第一次响应中的cursor值。 - count: 数量 ### 返回: - 话题作品数据 # [English] ### Purpose: - Get video list of specified hashtag ### Parameters: - ch_id: Hashtag id - cursor: Cursor, used for paging, the first page is 0, the second page is the cursor value in the first response. - count: Number ### Return: - Hashtag video list data # [示例/Example] ch_id = "7551" cursor = 0 sort_type = 0 count = 10
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String chId = 7551; // String | 话题id/Hashtag id
Integer cursor = 0; // Integer | 游标/Cursor
Integer count = 10; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchHashtagVideoListApiV1TiktokAppV2FetchHashtagVideoListGet_0(chId, cursor, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchHashtagVideoListApiV1TiktokAppV2FetchHashtagVideoListGet_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 |
---|---|---|---|
chId | String | 话题id/Hashtag id | |
cursor | Integer | 游标/Cursor | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 10] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchHomeFeedApiV1TiktokAppV2FetchHomeFeedGet()
获取主页视频推荐数据/Get home feed(recommend) video data
[中文] ### 用途: - 获取主页视频推荐数据 ### 参数: - 无 ### 返回: - 视频推荐数据 # [English] ### Purpose: - Get home feed(recommend) video data ### Parameters: - None ### Return: - Video recommend data
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchHomeFeedApiV1TiktokAppV2FetchHomeFeedGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchHomeFeedApiV1TiktokAppV2FetchHomeFeedGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
ResponseModel fetchHomeFeedApiV1TiktokAppV2FetchHomeFeedGet_0()
获取主页视频推荐数据/Get home feed(recommend) video data
[中文] ### 用途: - 获取主页视频推荐数据 ### 参数: - 无 ### 返回: - 视频推荐数据 # [English] ### Purpose: - Get home feed(recommend) video data ### Parameters: - None ### Return: - Video recommend data
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchHomeFeedApiV1TiktokAppV2FetchHomeFeedGet_0();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchHomeFeedApiV1TiktokAppV2FetchHomeFeedGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
ResponseModel fetchLiveRankingListApiV1TiktokAppV2FetchLiveRankingListGet(roomId, anchorId)
获取直播间排行榜数据/Get live room ranking list
[中文] ### 用途: - 获取直播间内观众的排行榜数据 ### 参数: - room_id: 直播间id - anchor_id: 主播id ### 返回: - 排行榜数据 # [English] ### Purpose: - Get ranking list of audience in live room ### Parameters: - room_id: Live room id - anchor_id: Anchor id ### Return: - Ranking list data # [示例/Example] room_id = "7358603858249009962" anchor_id = "7222941468722758702"
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String roomId = 7358603858249009962; // String | 直播间id/Live room id
String anchorId = "\"7222941468722758702\""; // String | 主播id/Anchor id
try {
ResponseModel result = apiInstance.fetchLiveRankingListApiV1TiktokAppV2FetchLiveRankingListGet(roomId, anchorId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchLiveRankingListApiV1TiktokAppV2FetchLiveRankingListGet");
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 |
---|---|---|---|
roomId | String | 直播间id/Live room id | |
anchorId | String | 主播id/Anchor id | [optional] [default to "7222941468722758702"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchLiveRankingListApiV1TiktokAppV2FetchLiveRankingListGet_0(roomId, anchorId)
获取直播间排行榜数据/Get live room ranking list
[中文] ### 用途: - 获取直播间内观众的排行榜数据 ### 参数: - room_id: 直播间id - anchor_id: 主播id ### 返回: - 排行榜数据 # [English] ### Purpose: - Get ranking list of audience in live room ### Parameters: - room_id: Live room id - anchor_id: Anchor id ### Return: - Ranking list data # [示例/Example] room_id = "7358603858249009962" anchor_id = "7222941468722758702"
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String roomId = 7358603858249009962; // String | 直播间id/Live room id
String anchorId = "\"7222941468722758702\""; // String | 主播id/Anchor id
try {
ResponseModel result = apiInstance.fetchLiveRankingListApiV1TiktokAppV2FetchLiveRankingListGet_0(roomId, anchorId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchLiveRankingListApiV1TiktokAppV2FetchLiveRankingListGet_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 |
---|---|---|---|
roomId | String | 直播间id/Live room id | |
anchorId | String | 主播id/Anchor id | [optional] [default to "7222941468722758702"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchLiveSearchResultApiV1TiktokAppV2FetchLiveSearchResultGet(keyword, offset, count)
获取指定关键词的直播搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_live_search_result) | Get live search results of specified keywords (deprecated, replaced by interface: /api/v1/tiktok/app/v3/fetch_live_search_result)
[中文] ### 用途: - 获取指定关键词的直播搜索结果 ### 参数: - keyword: 关键词 - offset: 偏移量 - count: 数量 ### 返回: - 直播搜索结果 # [English] ### Purpose: - Get live search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset - count: Number ### Return: - Live search results # [示例/Example] keyword = "Cat" offset = 0 count = 20
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String keyword = Cat; // String | 关键词/Keyword
Integer offset = 0; // Integer | 偏移量/Offset
Integer count = 20; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchLiveSearchResultApiV1TiktokAppV2FetchLiveSearchResultGet(keyword, offset, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchLiveSearchResultApiV1TiktokAppV2FetchLiveSearchResultGet");
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 | 关键词/Keyword | |
offset | Integer | 偏移量/Offset | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchLiveSearchResultApiV1TiktokAppV2FetchLiveSearchResultGet_0(keyword, offset, count)
获取指定关键词的直播搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_live_search_result) | Get live search results of specified keywords (deprecated, replaced by interface: /api/v1/tiktok/app/v3/fetch_live_search_result)
[中文] ### 用途: - 获取指定关键词的直播搜索结果 ### 参数: - keyword: 关键词 - offset: 偏移量 - count: 数量 ### 返回: - 直播搜索结果 # [English] ### Purpose: - Get live search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset - count: Number ### Return: - Live search results # [示例/Example] keyword = "Cat" offset = 0 count = 20
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String keyword = Cat; // String | 关键词/Keyword
Integer offset = 0; // Integer | 偏移量/Offset
Integer count = 20; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchLiveSearchResultApiV1TiktokAppV2FetchLiveSearchResultGet_0(keyword, offset, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchLiveSearchResultApiV1TiktokAppV2FetchLiveSearchResultGet_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 | 关键词/Keyword | |
offset | Integer | 偏移量/Offset | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchMusicDetailApiV1TiktokAppV2FetchMusicDetailGet(musicId)
获取指定音乐的详情数据/Get details of specified music
[中文] ### 用途: - 获取指定音乐的详情数据 ### 参数: - music_id: 音乐id ### 返回: - 音乐详情数据 # [English] ### Purpose: - Get details of specified music ### Parameters: - music_id: Music id ### Return: - Music details data # [示例/Example] music_id = "6943027371519772674"
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String musicId = 6943027371519772674; // String | 音乐id/Music id
try {
ResponseModel result = apiInstance.fetchMusicDetailApiV1TiktokAppV2FetchMusicDetailGet(musicId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchMusicDetailApiV1TiktokAppV2FetchMusicDetailGet");
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 |
---|---|---|---|
musicId | String | 音乐id/Music id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchMusicDetailApiV1TiktokAppV2FetchMusicDetailGet_0(musicId)
获取指定音乐的详情数据/Get details of specified music
[中文] ### 用途: - 获取指定音乐的详情数据 ### 参数: - music_id: 音乐id ### 返回: - 音乐详情数据 # [English] ### Purpose: - Get details of specified music ### Parameters: - music_id: Music id ### Return: - Music details data # [示例/Example] music_id = "6943027371519772674"
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String musicId = 6943027371519772674; // String | 音乐id/Music id
try {
ResponseModel result = apiInstance.fetchMusicDetailApiV1TiktokAppV2FetchMusicDetailGet_0(musicId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchMusicDetailApiV1TiktokAppV2FetchMusicDetailGet_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 |
---|---|---|---|
musicId | String | 音乐id/Music id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchMusicSearchResultApiV1TiktokAppV2FetchMusicSearchResultGet(keyword, offset, count)
获取指定关键词的音乐搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_music_search_result) | Get music search results of specified keywords (deprecated, replaced by interface: /api/v1/tiktok/app/v3/fetch_music_search_result)
[中文] ### 用途: - 获取指定关键词的音乐搜索结果 ### 参数: - keyword: 关键词 - offset: 偏移量 - count: 数量 ### 返回: - 音乐搜索结果 # [English] ### Purpose: - Get music search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset - count: Number ### Return: - Music search results # [示例/Example] keyword = "Cat" offset = 0 count = 20
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String keyword = Cat; // String | 关键词/Keyword
Integer offset = 0; // Integer | 偏移量/Offset
Integer count = 20; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchMusicSearchResultApiV1TiktokAppV2FetchMusicSearchResultGet(keyword, offset, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchMusicSearchResultApiV1TiktokAppV2FetchMusicSearchResultGet");
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 | 关键词/Keyword | |
offset | Integer | 偏移量/Offset | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchMusicSearchResultApiV1TiktokAppV2FetchMusicSearchResultGet_0(keyword, offset, count)
获取指定关键词的音乐搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_music_search_result) | Get music search results of specified keywords (deprecated, replaced by interface: /api/v1/tiktok/app/v3/fetch_music_search_result)
[中文] ### 用途: - 获取指定关键词的音乐搜索结果 ### 参数: - keyword: 关键词 - offset: 偏移量 - count: 数量 ### 返回: - 音乐搜索结果 # [English] ### Purpose: - Get music search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset - count: Number ### Return: - Music search results # [示例/Example] keyword = "Cat" offset = 0 count = 20
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String keyword = Cat; // String | 关键词/Keyword
Integer offset = 0; // Integer | 偏移量/Offset
Integer count = 20; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchMusicSearchResultApiV1TiktokAppV2FetchMusicSearchResultGet_0(keyword, offset, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchMusicSearchResultApiV1TiktokAppV2FetchMusicSearchResultGet_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 | 关键词/Keyword | |
offset | Integer | 偏移量/Offset | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchMusicVideoListApiV1TiktokAppV2FetchMusicVideoListGet(musicId, cursor, count)
获取指定音乐的视频列表数据/Get video list of specified music
[中文] ### 用途: - 获取指定音乐的视频列表数据 ### 参数: - music_id: 音乐id - cursor: 游标,用于翻页,第一页为0,第二页为第一次响应中的cursor值。 - count: 数量 ### 返回: - 音乐视频列表数据 # [English] ### Purpose: - Get video list of specified music ### Parameters: - music_id: Music id - cursor: Cursor, used for paging, the first page is 0, the second page is the cursor value in the first response. - count: Number ### Return: - Music video list data # [示例/Example] music_id = "6943027371519772674" cursor = 0 count = 10
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String musicId = 6943027371519772674; // String | 音乐id/Music id
Integer cursor = 0; // Integer | 游标/Cursor
Integer count = 10; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchMusicVideoListApiV1TiktokAppV2FetchMusicVideoListGet(musicId, cursor, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchMusicVideoListApiV1TiktokAppV2FetchMusicVideoListGet");
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 |
---|---|---|---|
musicId | String | 音乐id/Music id | |
cursor | Integer | 游标/Cursor | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 10] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchMusicVideoListApiV1TiktokAppV2FetchMusicVideoListGet_0(musicId, cursor, count)
获取指定音乐的视频列表数据/Get video list of specified music
[中文] ### 用途: - 获取指定音乐的视频列表数据 ### 参数: - music_id: 音乐id - cursor: 游标,用于翻页,第一页为0,第二页为第一次响应中的cursor值。 - count: 数量 ### 返回: - 音乐视频列表数据 # [English] ### Purpose: - Get video list of specified music ### Parameters: - music_id: Music id - cursor: Cursor, used for paging, the first page is 0, the second page is the cursor value in the first response. - count: Number ### Return: - Music video list data # [示例/Example] music_id = "6943027371519772674" cursor = 0 count = 10
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String musicId = 6943027371519772674; // String | 音乐id/Music id
Integer cursor = 0; // Integer | 游标/Cursor
Integer count = 10; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchMusicVideoListApiV1TiktokAppV2FetchMusicVideoListGet_0(musicId, cursor, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchMusicVideoListApiV1TiktokAppV2FetchMusicVideoListGet_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 |
---|---|---|---|
musicId | String | 音乐id/Music id | |
cursor | Integer | 游标/Cursor | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 10] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchOneVideoApiV1TiktokAppV2FetchOneVideoGet(awemeId)
获取单个作品数据/Get single video data
[中文] ### 用途: - 获取单个作品数据 ### 参数: - aweme_id: 作品id ### 返回: - 作品数据 # [English] ### Purpose: - Get single video data ### Parameters: - aweme_id: Video id ### Return: - Video data # [示例/Example] aweme_id = "7350810998023949599"
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String awemeId = 7350810998023949599; // String | 作品id/Video id
try {
ResponseModel result = apiInstance.fetchOneVideoApiV1TiktokAppV2FetchOneVideoGet(awemeId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchOneVideoApiV1TiktokAppV2FetchOneVideoGet");
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 |
---|---|---|---|
awemeId | String | 作品id/Video id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchOneVideoApiV1TiktokAppV2FetchOneVideoGet_0(awemeId)
获取单个作品数据/Get single video data
[中文] ### 用途: - 获取单个作品数据 ### 参数: - aweme_id: 作品id ### 返回: - 作品数据 # [English] ### Purpose: - Get single video data ### Parameters: - aweme_id: Video id ### Return: - Video data # [示例/Example] aweme_id = "7350810998023949599"
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String awemeId = 7350810998023949599; // String | 作品id/Video id
try {
ResponseModel result = apiInstance.fetchOneVideoApiV1TiktokAppV2FetchOneVideoGet_0(awemeId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchOneVideoApiV1TiktokAppV2FetchOneVideoGet_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 |
---|---|---|---|
awemeId | String | 作品id/Video id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchOneVideoByShareUrlApiV1TiktokAppV2FetchOneVideoByShareUrlGet(shareUrl)
根据分享链接获取单个作品数据/Get single video data by sharing link
[中文] ### 用途: - 根据分享链接获取单个作品数据 ### 参数: - share_url: 分享链接 ### 返回: - 作品数据 # [English] ### Purpose: - Get single video data by sharing link ### Parameters: - share_url: Share link ### Return: - Video data # [示例/Example] share_url = "https://www.tiktok.com/t/ZTFNEj8Hk/\"
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String shareUrl = https://www.tiktok.com/t/ZTFNEj8Hk/; // String | 分享链接/Share link
try {
ResponseModel result = apiInstance.fetchOneVideoByShareUrlApiV1TiktokAppV2FetchOneVideoByShareUrlGet(shareUrl);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchOneVideoByShareUrlApiV1TiktokAppV2FetchOneVideoByShareUrlGet");
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 |
---|---|---|---|
shareUrl | String | 分享链接/Share link |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchOneVideoByShareUrlApiV1TiktokAppV2FetchOneVideoByShareUrlGet_0(shareUrl)
根据分享链接获取单个作品数据/Get single video data by sharing link
[中文] ### 用途: - 根据分享链接获取单个作品数据 ### 参数: - share_url: 分享链接 ### 返回: - 作品数据 # [English] ### Purpose: - Get single video data by sharing link ### Parameters: - share_url: Share link ### Return: - Video data # [示例/Example] share_url = "https://www.tiktok.com/t/ZTFNEj8Hk/\"
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String shareUrl = https://www.tiktok.com/t/ZTFNEj8Hk/; // String | 分享链接/Share link
try {
ResponseModel result = apiInstance.fetchOneVideoByShareUrlApiV1TiktokAppV2FetchOneVideoByShareUrlGet_0(shareUrl);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchOneVideoByShareUrlApiV1TiktokAppV2FetchOneVideoByShareUrlGet_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 |
---|---|---|---|
shareUrl | String | 分享链接/Share link |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowerListApiV1TiktokAppV2FetchUserFollowerListGet(secUserId, count, minTime, pageToken)
获取指定用户的粉丝列表数据/Get follower list of specified user
[中文] ### 用途: - 获取指定用户的粉丝列表数据 ### 参数: - sec_user_id: 用户sec_user_id - count: 数量 - min_time: 最小时间,用于翻页,第一次请求使用默认值0,后续请求使用上一次请求返回的min_time值。 - page_token: 翻页token,第一次请求使用默认值"",后续请求使用上一次请求返回的page_token值。 ### 返回: - 粉丝列表数据 # [English] ### Purpose: - Get follower list of specified user ### Parameters: - sec_user_id: User sec_user_id - count: Number - min_time: Minimum time for paging, use default value 0 for the first request, and use the min_time value returned by the last request for subsequent requests. - page_token: Page token, use default value "" for the first request, and use the page_token value returned by the last request for subsequent requests. ### Return: - Follower list data # [示例/Example] sec_user = "MS4wLjABAAAAXqqA-cLDC0hfQPIrS5APYNsg04zkl-socWCkqkI3UIOaEe6_Qnokg0GcWpLnMNQP" count = 40 min_time = 1719570100 page_token = "eyJtYXhfY3Vyc29yIjoxNzE5NTcwMTg3LCJtaW5fY3Vyc29yIjoxNzE5NTcwMTAwLCJmaW5pc2hfaW5zZXJ0X21hZiI6dHJ1ZX0="
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String secUserId = MS4wLjABAAAAmfqfLWjdS8L9dC6j4e3Mzq5qyUiEW_E45zpJvsM06N4WkSXFFUY92jDtL08-jaOW; // String | 用户sec_user_id/User sec_user_id
Integer count = 20; // Integer | 数量/Number
Integer minTime = 0; // Integer | 最小时间,用于翻页/Minimum time for paging
String pageToken = "\"\""; // String | 翻页token/Page token
try {
ResponseModel result = apiInstance.fetchUserFollowerListApiV1TiktokAppV2FetchUserFollowerListGet(secUserId, count, minTime, pageToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchUserFollowerListApiV1TiktokAppV2FetchUserFollowerListGet");
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 |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id | |
count | Integer | 数量/Number | [optional] [default to 20] |
minTime | Integer | 最小时间,用于翻页/Minimum time for paging | [optional] [default to 0] |
pageToken | String | 翻页token/Page token | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowerListApiV1TiktokAppV2FetchUserFollowerListGet_0(secUserId, count, minTime, pageToken)
获取指定用户的粉丝列表数据/Get follower list of specified user
[中文] ### 用途: - 获取指定用户的粉丝列表数据 ### 参数: - sec_user_id: 用户sec_user_id - count: 数量 - min_time: 最小时间,用于翻页,第一次请求使用默认值0,后续请求使用上一次请求返回的min_time值。 - page_token: 翻页token,第一次请求使用默认值"",后续请求使用上一次请求返回的page_token值。 ### 返回: - 粉丝列表数据 # [English] ### Purpose: - Get follower list of specified user ### Parameters: - sec_user_id: User sec_user_id - count: Number - min_time: Minimum time for paging, use default value 0 for the first request, and use the min_time value returned by the last request for subsequent requests. - page_token: Page token, use default value "" for the first request, and use the page_token value returned by the last request for subsequent requests. ### Return: - Follower list data # [示例/Example] sec_user = "MS4wLjABAAAAXqqA-cLDC0hfQPIrS5APYNsg04zkl-socWCkqkI3UIOaEe6_Qnokg0GcWpLnMNQP" count = 40 min_time = 1719570100 page_token = "eyJtYXhfY3Vyc29yIjoxNzE5NTcwMTg3LCJtaW5fY3Vyc29yIjoxNzE5NTcwMTAwLCJmaW5pc2hfaW5zZXJ0X21hZiI6dHJ1ZX0="
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String secUserId = MS4wLjABAAAAmfqfLWjdS8L9dC6j4e3Mzq5qyUiEW_E45zpJvsM06N4WkSXFFUY92jDtL08-jaOW; // String | 用户sec_user_id/User sec_user_id
Integer count = 20; // Integer | 数量/Number
Integer minTime = 0; // Integer | 最小时间,用于翻页/Minimum time for paging
String pageToken = "\"\""; // String | 翻页token/Page token
try {
ResponseModel result = apiInstance.fetchUserFollowerListApiV1TiktokAppV2FetchUserFollowerListGet_0(secUserId, count, minTime, pageToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchUserFollowerListApiV1TiktokAppV2FetchUserFollowerListGet_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 |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id | |
count | Integer | 数量/Number | [optional] [default to 20] |
minTime | Integer | 最小时间,用于翻页/Minimum time for paging | [optional] [default to 0] |
pageToken | String | 翻页token/Page token | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowingListApiV1TiktokAppV2FetchUserFollowingListGet(secUserId, count, minTime, pageToken)
获取指定用户的关注列表数据/Get following list of specified user
[中文] ### 用途: - 获取指定用户的关注列表数据 ### 参数: - sec_user_id: 用户sec_user_id - count: 数量 - min_time: 最小时间,用于翻页,第一次请求使用默认值0,后续请求使用上一次请求返回的min_time值。 - page_token: 翻页token,第一次请求使用默认值"",后续请求使用上一次请求返回的page_token值。 ### 返回: - 关注列表数据 # [English] ### Purpose: - Get following list of specified user ### Parameters: - sec_user_id: User sec_user_id - count: Number - min_time: Minimum time for paging, use default value 0 for the first request, and use the min_time value returned by the last request for subsequent requests. - page_token: Page token, use default value "" for the first request, and use the page_token value returned by the last request for subsequent requests. ### Return: - Following list data # [示例/Example] sec_user = "MS4wLjABAAAAXqqA-cLDC0hfQPIrS5APYNsg04zkl-socWCkqkI3UIOaEe6_Qnokg0GcWpLnMNQP" count = 20 min_time = 1639642146 page_token = "eyJtYXhfY3Vyc29yIjoxNzE4NzIzNTY0LCJtaW5fY3Vyc29yIjoxNjM5NjQyMTQ2LCJmaW5pc2hfaW5zZXJ0X21hZiI6dHJ1ZX0="
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String secUserId = MS4wLjABAAAAXqqA-cLDC0hfQPIrS5APYNsg04zkl-socWCkqkI3UIOaEe6_Qnokg0GcWpLnMNQP; // String | 用户sec_user_id/User sec_user_id
Integer count = 20; // Integer | 数量/Number
Integer minTime = 0; // Integer | 最小时间,用于翻页/Minimum time for paging
String pageToken = "\"\""; // String | 翻页token/Page token
try {
ResponseModel result = apiInstance.fetchUserFollowingListApiV1TiktokAppV2FetchUserFollowingListGet(secUserId, count, minTime, pageToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchUserFollowingListApiV1TiktokAppV2FetchUserFollowingListGet");
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 |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id | |
count | Integer | 数量/Number | [optional] [default to 20] |
minTime | Integer | 最小时间,用于翻页/Minimum time for paging | [optional] [default to 0] |
pageToken | String | 翻页token/Page token | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowingListApiV1TiktokAppV2FetchUserFollowingListGet_0(secUserId, count, minTime, pageToken)
获取指定用户的关注列表数据/Get following list of specified user
[中文] ### 用途: - 获取指定用户的关注列表数据 ### 参数: - sec_user_id: 用户sec_user_id - count: 数量 - min_time: 最小时间,用于翻页,第一次请求使用默认值0,后续请求使用上一次请求返回的min_time值。 - page_token: 翻页token,第一次请求使用默认值"",后续请求使用上一次请求返回的page_token值。 ### 返回: - 关注列表数据 # [English] ### Purpose: - Get following list of specified user ### Parameters: - sec_user_id: User sec_user_id - count: Number - min_time: Minimum time for paging, use default value 0 for the first request, and use the min_time value returned by the last request for subsequent requests. - page_token: Page token, use default value "" for the first request, and use the page_token value returned by the last request for subsequent requests. ### Return: - Following list data # [示例/Example] sec_user = "MS4wLjABAAAAXqqA-cLDC0hfQPIrS5APYNsg04zkl-socWCkqkI3UIOaEe6_Qnokg0GcWpLnMNQP" count = 20 min_time = 1639642146 page_token = "eyJtYXhfY3Vyc29yIjoxNzE4NzIzNTY0LCJtaW5fY3Vyc29yIjoxNjM5NjQyMTQ2LCJmaW5pc2hfaW5zZXJ0X21hZiI6dHJ1ZX0="
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String secUserId = MS4wLjABAAAAXqqA-cLDC0hfQPIrS5APYNsg04zkl-socWCkqkI3UIOaEe6_Qnokg0GcWpLnMNQP; // String | 用户sec_user_id/User sec_user_id
Integer count = 20; // Integer | 数量/Number
Integer minTime = 0; // Integer | 最小时间,用于翻页/Minimum time for paging
String pageToken = "\"\""; // String | 翻页token/Page token
try {
ResponseModel result = apiInstance.fetchUserFollowingListApiV1TiktokAppV2FetchUserFollowingListGet_0(secUserId, count, minTime, pageToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchUserFollowingListApiV1TiktokAppV2FetchUserFollowingListGet_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 |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id | |
count | Integer | 数量/Number | [optional] [default to 20] |
minTime | Integer | 最小时间,用于翻页/Minimum time for paging | [optional] [default to 0] |
pageToken | String | 翻页token/Page token | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserLikeVideosApiV1TiktokAppV2FetchUserLikeVideosGet(secUserId, maxCursor, counts)
获取用户喜欢作品数据/Get user like video data
[中文] ### 用途: - 获取用户喜欢作品数据 ### 参数: - sec_user_id: 用户sec_user_id - max_cursor: 最大游标,用于翻页,第一页为0,第二页为第一次响应中的max_cursor值。 - count: 最大数量 ### 返回: - 用户作品数据 # [English] ### Purpose: - Get user like video data ### Parameters: - sec_user_id: User sec_user_id - max_cursor: Maximum cursor, used for paging, the first page is 0, the second page is the max_cursor value in the first response. - count: Maximum count number ### Return: - User video data # [示例/Example] sec_user_id = "MS4wLjABAAAA5u9HhzjGAj-leViCcvZD6b4-qyqHHgr9lVJmcPMzcBUX_Q2NpBeCgz8Uh6KugkfS" max_cursor = 0 counts = 20
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String secUserId = MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM; // String | 用户sec_user_id/User sec_user_id
Integer maxCursor = 0; // Integer | 最大游标/Maximum cursor
Integer counts = 20; // Integer | 每页数量/Number per page
try {
ResponseModel result = apiInstance.fetchUserLikeVideosApiV1TiktokAppV2FetchUserLikeVideosGet(secUserId, maxCursor, counts);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchUserLikeVideosApiV1TiktokAppV2FetchUserLikeVideosGet");
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 |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id | |
maxCursor | Integer | 最大游标/Maximum cursor | [optional] [default to 0] |
counts | Integer | 每页数量/Number per page | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserLikeVideosApiV1TiktokAppV2FetchUserLikeVideosGet_0(secUserId, maxCursor, counts)
获取用户喜欢作品数据/Get user like video data
[中文] ### 用途: - 获取用户喜欢作品数据 ### 参数: - sec_user_id: 用户sec_user_id - max_cursor: 最大游标,用于翻页,第一页为0,第二页为第一次响应中的max_cursor值。 - count: 最大数量 ### 返回: - 用户作品数据 # [English] ### Purpose: - Get user like video data ### Parameters: - sec_user_id: User sec_user_id - max_cursor: Maximum cursor, used for paging, the first page is 0, the second page is the max_cursor value in the first response. - count: Maximum count number ### Return: - User video data # [示例/Example] sec_user_id = "MS4wLjABAAAA5u9HhzjGAj-leViCcvZD6b4-qyqHHgr9lVJmcPMzcBUX_Q2NpBeCgz8Uh6KugkfS" max_cursor = 0 counts = 20
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String secUserId = MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM; // String | 用户sec_user_id/User sec_user_id
Integer maxCursor = 0; // Integer | 最大游标/Maximum cursor
Integer counts = 20; // Integer | 每页数量/Number per page
try {
ResponseModel result = apiInstance.fetchUserLikeVideosApiV1TiktokAppV2FetchUserLikeVideosGet_0(secUserId, maxCursor, counts);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchUserLikeVideosApiV1TiktokAppV2FetchUserLikeVideosGet_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 |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id | |
maxCursor | Integer | 最大游标/Maximum cursor | [optional] [default to 0] |
counts | Integer | 每页数量/Number per page | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserPostVideosApiV1TiktokAppV2FetchUserPostVideosGet(secUserId, maxCursor, count)
获取用户主页作品数据/Get user homepage video data
[中文] ### 用途: - 获取用户主页作品数据 ### 参数: - sec_user_id: 用户sec_user_id - max_cursor: 最大游标,用于翻页,第一页为0,第二页为第一次响应中的max_cursor值。 - count: 最大数量 ### 返回: - 用户作品数据 # [English] ### Purpose: - Get user homepage video data ### Parameters: - sec_user_id: User sec_user_id - max_cursor: Maximum cursor, used for paging, the first page is 0, the second page is the max_cursor value in the first response. - count: Maximum count number ### Return: - User video data # [示例/Example] sec_user_id = "MS4wLjABAAAA5u9HhzjGAj-leViCcvZD6b4-qyqHHgr9lVJmcPMzcBUX_Q2NpBeCgz8Uh6KugkfS" max_cursor = 0 counts = 20
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String secUserId = MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM; // String | 用户sec_user_id/User sec_user_id
Integer maxCursor = 0; // Integer | 最大游标/Maximum cursor
Integer count = 20; // Integer | 每页数量/Number per page
try {
ResponseModel result = apiInstance.fetchUserPostVideosApiV1TiktokAppV2FetchUserPostVideosGet(secUserId, maxCursor, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchUserPostVideosApiV1TiktokAppV2FetchUserPostVideosGet");
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 |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id | |
maxCursor | Integer | 最大游标/Maximum cursor | [optional] [default to 0] |
count | Integer | 每页数量/Number per page | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserPostVideosApiV1TiktokAppV2FetchUserPostVideosGet_0(secUserId, maxCursor, count)
获取用户主页作品数据/Get user homepage video data
[中文] ### 用途: - 获取用户主页作品数据 ### 参数: - sec_user_id: 用户sec_user_id - max_cursor: 最大游标,用于翻页,第一页为0,第二页为第一次响应中的max_cursor值。 - count: 最大数量 ### 返回: - 用户作品数据 # [English] ### Purpose: - Get user homepage video data ### Parameters: - sec_user_id: User sec_user_id - max_cursor: Maximum cursor, used for paging, the first page is 0, the second page is the max_cursor value in the first response. - count: Maximum count number ### Return: - User video data # [示例/Example] sec_user_id = "MS4wLjABAAAA5u9HhzjGAj-leViCcvZD6b4-qyqHHgr9lVJmcPMzcBUX_Q2NpBeCgz8Uh6KugkfS" max_cursor = 0 counts = 20
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String secUserId = MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM; // String | 用户sec_user_id/User sec_user_id
Integer maxCursor = 0; // Integer | 最大游标/Maximum cursor
Integer count = 20; // Integer | 每页数量/Number per page
try {
ResponseModel result = apiInstance.fetchUserPostVideosApiV1TiktokAppV2FetchUserPostVideosGet_0(secUserId, maxCursor, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchUserPostVideosApiV1TiktokAppV2FetchUserPostVideosGet_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 |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id | |
maxCursor | Integer | 最大游标/Maximum cursor | [optional] [default to 0] |
count | Integer | 每页数量/Number per page | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserSearchResultApiV1TiktokAppV2FetchUserSearchResultGet(keyword, offset, count, userSearchFollowerCount, userSearchProfileType, userSearchOtherPref)
获取指定关键词的用户搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_user_search_result) | Get user search results of specified keywords (deprecated, replaced by interface: /api/v1/tiktok/app/v3/fetch_user_search_result)
[中文] ### 用途: - 获取指定关键词的用户搜索结果 ### 参数: - keyword: 关键词 - offset: 偏移量 - count: 数量 - user_search_follower_count(根据粉丝数排序): - 空-不限制, - ZERO_TO_ONE_K = 0-1K, - ONE_K_TO_TEN_K-1K = 1K-10K, - TEN_K_TO_ONE_H_K = 10K-100K, - ONE_H_K_PLUS = 100K以上 - user_search_profile_type(根据账号类型排序): - 空-不限制, - VERIFIED = 认证用户 - user_search_other_pref(根据其他偏好排序): - USERNAME = 根据用户名相关性 ### 返回: - 用户搜索结果 # [English] ### Purpose: - Get user search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset - count: Number - user_search_follower_count(Sort by number of followers): - Empty-Unlimited, - ZERO_TO_ONE_K = 0-1K, - ONE_K_TO_TEN_K-1K = 1K-10K, - TEN_K_TO_ONE_H_K = 10K-100K, - ONE_H_K_PLUS = 100K and above - user_search_profile_type(Sort by account type): - Empty-Unlimited, - VERIFIED = Verified user - user_search_other_pref(Sort by other preferences): - USERNAME = Sort by username relevance ### Return: - User search results # [示例/Example] keyword = "Cat" offset = 0 count = 20 user_search_follower_count = "" user_search_profile_type = "" user_search_other_pref = ""
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String keyword = Cat; // String | 关键词/Keyword
Integer offset = 0; // Integer | 偏移量/Offset
Integer count = 20; // Integer | 数量/Number
String userSearchFollowerCount = "\"\""; // String | 根据粉丝数排序/Sort by number of followers
String userSearchProfileType = "\"\""; // String | 根据账号类型排序/Sort by account type
String userSearchOtherPref = "\"\""; // String | 根据其他偏好排序/Sort by other preferences
try {
ResponseModel result = apiInstance.fetchUserSearchResultApiV1TiktokAppV2FetchUserSearchResultGet(keyword, offset, count, userSearchFollowerCount, userSearchProfileType, userSearchOtherPref);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchUserSearchResultApiV1TiktokAppV2FetchUserSearchResultGet");
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 | 关键词/Keyword | |
offset | Integer | 偏移量/Offset | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
userSearchFollowerCount | String | 根据粉丝数排序/Sort by number of followers | [optional] [default to ""] |
userSearchProfileType | String | 根据账号类型排序/Sort by account type | [optional] [default to ""] |
userSearchOtherPref | String | 根据其他偏好排序/Sort by other preferences | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserSearchResultApiV1TiktokAppV2FetchUserSearchResultGet_0(keyword, offset, count, userSearchFollowerCount, userSearchProfileType, userSearchOtherPref)
获取指定关键词的用户搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_user_search_result) | Get user search results of specified keywords (deprecated, replaced by interface: /api/v1/tiktok/app/v3/fetch_user_search_result)
[中文] ### 用途: - 获取指定关键词的用户搜索结果 ### 参数: - keyword: 关键词 - offset: 偏移量 - count: 数量 - user_search_follower_count(根据粉丝数排序): - 空-不限制, - ZERO_TO_ONE_K = 0-1K, - ONE_K_TO_TEN_K-1K = 1K-10K, - TEN_K_TO_ONE_H_K = 10K-100K, - ONE_H_K_PLUS = 100K以上 - user_search_profile_type(根据账号类型排序): - 空-不限制, - VERIFIED = 认证用户 - user_search_other_pref(根据其他偏好排序): - USERNAME = 根据用户名相关性 ### 返回: - 用户搜索结果 # [English] ### Purpose: - Get user search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset - count: Number - user_search_follower_count(Sort by number of followers): - Empty-Unlimited, - ZERO_TO_ONE_K = 0-1K, - ONE_K_TO_TEN_K-1K = 1K-10K, - TEN_K_TO_ONE_H_K = 10K-100K, - ONE_H_K_PLUS = 100K and above - user_search_profile_type(Sort by account type): - Empty-Unlimited, - VERIFIED = Verified user - user_search_other_pref(Sort by other preferences): - USERNAME = Sort by username relevance ### Return: - User search results # [示例/Example] keyword = "Cat" offset = 0 count = 20 user_search_follower_count = "" user_search_profile_type = "" user_search_other_pref = ""
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String keyword = Cat; // String | 关键词/Keyword
Integer offset = 0; // Integer | 偏移量/Offset
Integer count = 20; // Integer | 数量/Number
String userSearchFollowerCount = "\"\""; // String | 根据粉丝数排序/Sort by number of followers
String userSearchProfileType = "\"\""; // String | 根据账号类型排序/Sort by account type
String userSearchOtherPref = "\"\""; // String | 根据其他偏好排序/Sort by other preferences
try {
ResponseModel result = apiInstance.fetchUserSearchResultApiV1TiktokAppV2FetchUserSearchResultGet_0(keyword, offset, count, userSearchFollowerCount, userSearchProfileType, userSearchOtherPref);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchUserSearchResultApiV1TiktokAppV2FetchUserSearchResultGet_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 | 关键词/Keyword | |
offset | Integer | 偏移量/Offset | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
userSearchFollowerCount | String | 根据粉丝数排序/Sort by number of followers | [optional] [default to ""] |
userSearchProfileType | String | 根据账号类型排序/Sort by account type | [optional] [default to ""] |
userSearchOtherPref | String | 根据其他偏好排序/Sort by other preferences | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoCommentsApiV1TiktokAppV2FetchVideoCommentsGet(awemeId, cursor, count)
获取单个视频评论数据/Get single video comments data
[中文] ### 用途: - 获取单个视频评论数据 ### 参数: - aweme_id: 作品id - cursor: 游标,用于翻页,第一页为0,第二页为第一次响应中的cursor值。 - count: 数量 ### 返回: - 评论数据 # [English] ### Purpose: - Get single video comments data ### Parameters: - aweme_id: Video id - cursor: Cursor, used for paging, the first page is 0, the second page is the cursor value in the first response. - count: Number ### Return: - Comments data # [示例/Example] aweme_id = "7326156045968067873" cursor = 0 count = 20
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String awemeId = 7326156045968067873; // String | 作品id/Video id
Integer cursor = 0; // Integer | 游标/Cursor
Integer count = 20; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchVideoCommentsApiV1TiktokAppV2FetchVideoCommentsGet(awemeId, cursor, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchVideoCommentsApiV1TiktokAppV2FetchVideoCommentsGet");
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 |
---|---|---|---|
awemeId | String | 作品id/Video id | |
cursor | Integer | 游标/Cursor | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoCommentsApiV1TiktokAppV2FetchVideoCommentsGet_0(awemeId, cursor, count)
获取单个视频评论数据/Get single video comments data
[中文] ### 用途: - 获取单个视频评论数据 ### 参数: - aweme_id: 作品id - cursor: 游标,用于翻页,第一页为0,第二页为第一次响应中的cursor值。 - count: 数量 ### 返回: - 评论数据 # [English] ### Purpose: - Get single video comments data ### Parameters: - aweme_id: Video id - cursor: Cursor, used for paging, the first page is 0, the second page is the cursor value in the first response. - count: Number ### Return: - Comments data # [示例/Example] aweme_id = "7326156045968067873" cursor = 0 count = 20
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String awemeId = 7326156045968067873; // String | 作品id/Video id
Integer cursor = 0; // Integer | 游标/Cursor
Integer count = 20; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchVideoCommentsApiV1TiktokAppV2FetchVideoCommentsGet_0(awemeId, cursor, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchVideoCommentsApiV1TiktokAppV2FetchVideoCommentsGet_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 |
---|---|---|---|
awemeId | String | 作品id/Video id | |
cursor | Integer | 游标/Cursor | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoCommentsReplyApiV1TiktokAppV2FetchVideoCommentRepliesGet(itemId, commentId, cursor, count)
获取指定视频的评论回复数据/Get comment replies data of specified video
[中文] ### 用途: - 获取指定视频的评论回复数据 ### 参数: - item_id: 作品id - comment_id: 评论id - cursor: 游标,用于翻页,第一页为0,第二页为第一次响应中的cursor值。 - count: 数量 ### 返回: - 评论回复数据 # [English] ### Purpose: - Get comment replies data of specified video ### Parameters: - item_id: Video id - comment_id: Comment id - cursor: Cursor, used for paging, the first page is 0, the second page is the cursor value in the first response. - count: Number ### Return: - Comment replies data # [示例/Example] aweme_id = "7326156045968067873" comment_id = "7327061675382260482" cursor = 0 count = 20
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String itemId = 7326156045968067873; // String | 作品id/Video id
String commentId = 7327061675382260482; // String | 评论id/Comment id
Integer cursor = 0; // Integer | 游标/Cursor
Integer count = 20; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchVideoCommentsReplyApiV1TiktokAppV2FetchVideoCommentRepliesGet(itemId, commentId, cursor, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchVideoCommentsReplyApiV1TiktokAppV2FetchVideoCommentRepliesGet");
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 |
---|---|---|---|
itemId | String | 作品id/Video id | |
commentId | String | 评论id/Comment id | |
cursor | Integer | 游标/Cursor | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoCommentsReplyApiV1TiktokAppV2FetchVideoCommentRepliesGet_0(itemId, commentId, cursor, count)
获取指定视频的评论回复数据/Get comment replies data of specified video
[中文] ### 用途: - 获取指定视频的评论回复数据 ### 参数: - item_id: 作品id - comment_id: 评论id - cursor: 游标,用于翻页,第一页为0,第二页为第一次响应中的cursor值。 - count: 数量 ### 返回: - 评论回复数据 # [English] ### Purpose: - Get comment replies data of specified video ### Parameters: - item_id: Video id - comment_id: Comment id - cursor: Cursor, used for paging, the first page is 0, the second page is the cursor value in the first response. - count: Number ### Return: - Comment replies data # [示例/Example] aweme_id = "7326156045968067873" comment_id = "7327061675382260482" cursor = 0 count = 20
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String itemId = 7326156045968067873; // String | 作品id/Video id
String commentId = 7327061675382260482; // String | 评论id/Comment id
Integer cursor = 0; // Integer | 游标/Cursor
Integer count = 20; // Integer | 数量/Number
try {
ResponseModel result = apiInstance.fetchVideoCommentsReplyApiV1TiktokAppV2FetchVideoCommentRepliesGet_0(itemId, commentId, cursor, count);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchVideoCommentsReplyApiV1TiktokAppV2FetchVideoCommentRepliesGet_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 |
---|---|---|---|
itemId | String | 作品id/Video id | |
commentId | String | 评论id/Comment id | |
cursor | Integer | 游标/Cursor | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoSearchResultApiV1TiktokAppV2FetchVideoSearchResultGet(keyword, offset, count, sortType, publishTime)
获取指定关键词的视频搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_video_search_result) | Get video search results of specified keywords (deprecated, replaced by interface: /api/v1/tiktok/app/v3/fetch_video_search_result)
[中文] ### 用途: - 获取指定关键词的视频搜索结果 ### 参数: - keyword: 关键词 - offset: 偏移量 - count: 数量 - sort_type: 0-相关度,1-最多点赞 - publish_time: 0-不限制,1-最近一天,7-最近一周,30-最近一个月,90-最近三个月,180-最近半年 ### 返回: - 视频搜索结果 # [English] ### Purpose: - Get video search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset - count: Number - sort_type: 0-Relatedness, 1-Most likes - publish_time: 0-Unlimited, 1-Last day, 7-Last week, 30-Last month, 90-Last three months, 180-Last half year ### Return: - Video search results # [示例/Example] keyword = "中华娘" offset = 0 count = 20 sort_type = 0 publish_time = 0
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String keyword = 中华娘; // String | 关键词/Keyword
Integer offset = 0; // Integer | 偏移量/Offset
Integer count = 20; // Integer | 数量/Number
Integer sortType = 56; // Integer | 排序类型/Sort type
Integer publishTime = 56; // Integer | 发布时间/Publish time
try {
ResponseModel result = apiInstance.fetchVideoSearchResultApiV1TiktokAppV2FetchVideoSearchResultGet(keyword, offset, count, sortType, publishTime);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchVideoSearchResultApiV1TiktokAppV2FetchVideoSearchResultGet");
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 | 关键词/Keyword | |
offset | Integer | 偏移量/Offset | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
sortType | Integer | 排序类型/Sort type | [optional] |
publishTime | Integer | 发布时间/Publish time | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchVideoSearchResultApiV1TiktokAppV2FetchVideoSearchResultGet_0(keyword, offset, count, sortType, publishTime)
获取指定关键词的视频搜索结果(弃用,替代接口:/api/v1/tiktok/app/v3/fetch_video_search_result) | Get video search results of specified keywords (deprecated, replaced by interface: /api/v1/tiktok/app/v3/fetch_video_search_result)
[中文] ### 用途: - 获取指定关键词的视频搜索结果 ### 参数: - keyword: 关键词 - offset: 偏移量 - count: 数量 - sort_type: 0-相关度,1-最多点赞 - publish_time: 0-不限制,1-最近一天,7-最近一周,30-最近一个月,90-最近三个月,180-最近半年 ### 返回: - 视频搜索结果 # [English] ### Purpose: - Get video search results of specified keywords ### Parameters: - keyword: Keyword - offset: Offset - count: Number - sort_type: 0-Relatedness, 1-Most likes - publish_time: 0-Unlimited, 1-Last day, 7-Last week, 30-Last month, 90-Last three months, 180-Last half year ### Return: - Video search results # [示例/Example] keyword = "中华娘" offset = 0 count = 20 sort_type = 0 publish_time = 0
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String keyword = 中华娘; // String | 关键词/Keyword
Integer offset = 0; // Integer | 偏移量/Offset
Integer count = 20; // Integer | 数量/Number
Integer sortType = 56; // Integer | 排序类型/Sort type
Integer publishTime = 56; // Integer | 发布时间/Publish time
try {
ResponseModel result = apiInstance.fetchVideoSearchResultApiV1TiktokAppV2FetchVideoSearchResultGet_0(keyword, offset, count, sortType, publishTime);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#fetchVideoSearchResultApiV1TiktokAppV2FetchVideoSearchResultGet_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 | 关键词/Keyword | |
offset | Integer | 偏移量/Offset | [optional] [default to 0] |
count | Integer | 数量/Number | [optional] [default to 20] |
sortType | Integer | 排序类型/Sort type | [optional] |
publishTime | Integer | 发布时间/Publish time | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel handlerUserProfileApiV1TiktokAppV2HandlerUserProfileGet(secUserId)
获取指定用户的信息/Get information of specified user
[中文] ### 用途: - 获取指定用户的信息 ### 参数: - sec_user_id: 用户sec_user_id ### 返回: - 用户信息 # [English] ### Purpose: - Get information of specified user ### Parameters: - sec_user_id: User sec_user_id ### Return: - User information # [示例/Example] sec_user_id = "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM"
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String secUserId = MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM; // String | 用户sec_user_id/User sec_user_id
try {
ResponseModel result = apiInstance.handlerUserProfileApiV1TiktokAppV2HandlerUserProfileGet(secUserId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#handlerUserProfileApiV1TiktokAppV2HandlerUserProfileGet");
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 |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel handlerUserProfileApiV1TiktokAppV2HandlerUserProfileGet_0(secUserId)
获取指定用户的信息/Get information of specified user
[中文] ### 用途: - 获取指定用户的信息 ### 参数: - sec_user_id: 用户sec_user_id ### 返回: - 用户信息 # [English] ### Purpose: - Get information of specified user ### Parameters: - sec_user_id: User sec_user_id ### Return: - User information # [示例/Example] sec_user_id = "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM"
// 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.TikTokAppV2ApiApi;
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");
TikTokAppV2ApiApi apiInstance = new TikTokAppV2ApiApi(defaultClient);
String secUserId = MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM; // String | 用户sec_user_id/User sec_user_id
try {
ResponseModel result = apiInstance.handlerUserProfileApiV1TiktokAppV2HandlerUserProfileGet_0(secUserId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TikTokAppV2ApiApi#handlerUserProfileApiV1TiktokAppV2HandlerUserProfileGet_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 |
---|---|---|---|
secUserId | String | 用户sec_user_id/User sec_user_id |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |