All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
fetchDiscoverBannersApiV1Lemon8AppFetchDiscoverBannersGet | GET /api/v1/lemon8/app/fetch_discover_banners | 获取发现页Banner/Get banners of discover page |
fetchDiscoverBannersApiV1Lemon8AppFetchDiscoverBannersGet_0 | GET /api/v1/lemon8/app/fetch_discover_banners | 获取发现页Banner/Get banners of discover page |
fetchDiscoverTabApiV1Lemon8AppFetchDiscoverTabGet | GET /api/v1/lemon8/app/fetch_discover_tab | 获取发现页主体内容/Get main content of discover page |
fetchDiscoverTabApiV1Lemon8AppFetchDiscoverTabGet_0 | GET /api/v1/lemon8/app/fetch_discover_tab | 获取发现页主体内容/Get main content of discover page |
fetchDiscoverTabInformationTabsApiV1Lemon8AppFetchDiscoverTabInformationTabsGet | GET /api/v1/lemon8/app/fetch_discover_tab_information_tabs | 获取发现页的 Editor's Picks/Get Editor's Picks of discover page |
fetchDiscoverTabInformationTabsApiV1Lemon8AppFetchDiscoverTabInformationTabsGet_0 | GET /api/v1/lemon8/app/fetch_discover_tab_information_tabs | 获取发现页的 Editor's Picks/Get Editor's Picks of discover page |
fetchHotSearchKeywordsApiV1Lemon8AppFetchHotSearchKeywordsGet | GET /api/v1/lemon8/app/fetch_hot_search_keywords | 获取热搜关键词/Get hot search keywords |
fetchHotSearchKeywordsApiV1Lemon8AppFetchHotSearchKeywordsGet_0 | GET /api/v1/lemon8/app/fetch_hot_search_keywords | 获取热搜关键词/Get hot search keywords |
fetchPostCommentListApiV1Lemon8AppFetchPostCommentListGet | GET /api/v1/lemon8/app/fetch_post_comment_list | 获取指定作品的评论列表/Get comments list of specified post |
fetchPostCommentListApiV1Lemon8AppFetchPostCommentListGet_0 | GET /api/v1/lemon8/app/fetch_post_comment_list | 获取指定作品的评论列表/Get comments list of specified post |
fetchPostDetailApiV1Lemon8AppFetchPostDetailGet | GET /api/v1/lemon8/app/fetch_post_detail | 获取指定作品的信息/Get information of specified post |
fetchPostDetailApiV1Lemon8AppFetchPostDetailGet_0 | GET /api/v1/lemon8/app/fetch_post_detail | 获取指定作品的信息/Get information of specified post |
fetchSearchApiV1Lemon8AppFetchSearchGet | GET /api/v1/lemon8/app/fetch_search | 搜索接口/Search API |
fetchSearchApiV1Lemon8AppFetchSearchGet_0 | GET /api/v1/lemon8/app/fetch_search | 搜索接口/Search API |
fetchTopicInfoApiV1Lemon8AppFetchTopicInfoGet | GET /api/v1/lemon8/app/fetch_topic_info | 获取话题信息/Get topic information |
fetchTopicInfoApiV1Lemon8AppFetchTopicInfoGet_0 | GET /api/v1/lemon8/app/fetch_topic_info | 获取话题信息/Get topic information |
fetchTopicPostListApiV1Lemon8AppFetchTopicPostListGet | GET /api/v1/lemon8/app/fetch_topic_post_list | 获取话题作品列表/Get topic post list |
fetchTopicPostListApiV1Lemon8AppFetchTopicPostListGet_0 | GET /api/v1/lemon8/app/fetch_topic_post_list | 获取话题作品列表/Get topic post list |
fetchUserFollowerListApiV1Lemon8AppFetchUserFollowerListGet | GET /api/v1/lemon8/app/fetch_user_follower_list | 获取指定用户的粉丝列表/Get fans list of specified user |
fetchUserFollowerListApiV1Lemon8AppFetchUserFollowerListGet_0 | GET /api/v1/lemon8/app/fetch_user_follower_list | 获取指定用户的粉丝列表/Get fans list of specified user |
fetchUserFollowingListApiV1Lemon8AppFetchUserFollowingListGet | GET /api/v1/lemon8/app/fetch_user_following_list | 获取指定用户的关注列表/Get following list of specified user |
fetchUserFollowingListApiV1Lemon8AppFetchUserFollowingListGet_0 | GET /api/v1/lemon8/app/fetch_user_following_list | 获取指定用户的关注列表/Get following list of specified user |
getItemIdApiV1Lemon8AppGetItemIdGet | GET /api/v1/lemon8/app/get_item_id | 通过分享链接获取作品ID/Get post ID through sharing link |
getItemIdApiV1Lemon8AppGetItemIdGet_0 | GET /api/v1/lemon8/app/get_item_id | 通过分享链接获取作品ID/Get post ID through sharing link |
getItemIdsApiV1Lemon8AppGetItemIdsPost | POST /api/v1/lemon8/app/get_item_ids | 通过分享链接批量获取作品ID/Get post IDs in batch through sharing links |
getItemIdsApiV1Lemon8AppGetItemIdsPost_0 | POST /api/v1/lemon8/app/get_item_ids | 通过分享链接批量获取作品ID/Get post IDs in batch through sharing links |
getUserIdApiV1Lemon8AppGetUserIdGet | GET /api/v1/lemon8/app/get_user_id | 通过分享链接获取用户ID/Get user ID through sharing link |
getUserIdApiV1Lemon8AppGetUserIdGet_0 | GET /api/v1/lemon8/app/get_user_id | 通过分享链接获取用户ID/Get user ID through sharing link |
getUserIdsApiV1Lemon8AppGetUserIdsPost | POST /api/v1/lemon8/app/get_user_ids | 通过分享链接批量获取用户ID/Get user IDs in batch through sharing links |
getUserIdsApiV1Lemon8AppGetUserIdsPost_0 | POST /api/v1/lemon8/app/get_user_ids | 通过分享链接批量获取用户ID/Get user IDs in batch through sharing links |
handlerUserProfileApiV1Lemon8AppFetchUserProfileGet | GET /api/v1/lemon8/app/fetch_user_profile | 获取指定用户的信息/Get information of specified user |
handlerUserProfileApiV1Lemon8AppFetchUserProfileGet_0 | GET /api/v1/lemon8/app/fetch_user_profile | 获取指定用户的信息/Get information of specified user |
ResponseModel fetchDiscoverBannersApiV1Lemon8AppFetchDiscoverBannersGet()
获取发现页Banner/Get banners of discover page
[中文] ### 用途: - 获取发现页Banner(搜索页上方的滚动内容) ### 返回: - Banner列表 # [English] ### Purpose: - Get banners of discover page ### Return: - Banners list # [示例/Example]
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchDiscoverBannersApiV1Lemon8AppFetchDiscoverBannersGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchDiscoverBannersApiV1Lemon8AppFetchDiscoverBannersGet");
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 fetchDiscoverBannersApiV1Lemon8AppFetchDiscoverBannersGet_0()
获取发现页Banner/Get banners of discover page
[中文] ### 用途: - 获取发现页Banner(搜索页上方的滚动内容) ### 返回: - Banner列表 # [English] ### Purpose: - Get banners of discover page ### Return: - Banners list # [示例/Example]
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchDiscoverBannersApiV1Lemon8AppFetchDiscoverBannersGet_0();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchDiscoverBannersApiV1Lemon8AppFetchDiscoverBannersGet_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 fetchDiscoverTabApiV1Lemon8AppFetchDiscoverTabGet()
获取发现页主体内容/Get main content of discover page
[中文] ### 用途: - 获取发现页(搜索页主体内容) ### 返回: - 主体内容 # [English] ### Purpose: - Get main content of discover page ### Return: - Main content # [示例/Example]
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchDiscoverTabApiV1Lemon8AppFetchDiscoverTabGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchDiscoverTabApiV1Lemon8AppFetchDiscoverTabGet");
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 fetchDiscoverTabApiV1Lemon8AppFetchDiscoverTabGet_0()
获取发现页主体内容/Get main content of discover page
[中文] ### 用途: - 获取发现页(搜索页主体内容) ### 返回: - 主体内容 # [English] ### Purpose: - Get main content of discover page ### Return: - Main content # [示例/Example]
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchDiscoverTabApiV1Lemon8AppFetchDiscoverTabGet_0();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchDiscoverTabApiV1Lemon8AppFetchDiscoverTabGet_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 fetchDiscoverTabInformationTabsApiV1Lemon8AppFetchDiscoverTabInformationTabsGet()
获取发现页的 Editor's Picks/Get Editor's Picks of discover page
[中文] ### 用途: - 获取发现页(搜索页下方的推荐内容 - Editor's Picks) ### 返回: - 推荐内容 # [English] ### Purpose: - Get Editor's Picks of discover page ### Return: - Editor's Picks # [示例/Example]
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchDiscoverTabInformationTabsApiV1Lemon8AppFetchDiscoverTabInformationTabsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchDiscoverTabInformationTabsApiV1Lemon8AppFetchDiscoverTabInformationTabsGet");
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 fetchDiscoverTabInformationTabsApiV1Lemon8AppFetchDiscoverTabInformationTabsGet_0()
获取发现页的 Editor's Picks/Get Editor's Picks of discover page
[中文] ### 用途: - 获取发现页(搜索页下方的推荐内容 - Editor's Picks) ### 返回: - 推荐内容 # [English] ### Purpose: - Get Editor's Picks of discover page ### Return: - Editor's Picks # [示例/Example]
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchDiscoverTabInformationTabsApiV1Lemon8AppFetchDiscoverTabInformationTabsGet_0();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchDiscoverTabInformationTabsApiV1Lemon8AppFetchDiscoverTabInformationTabsGet_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 fetchHotSearchKeywordsApiV1Lemon8AppFetchHotSearchKeywordsGet()
获取热搜关键词/Get hot search keywords
[中文] ### 用途: - 获取热搜关键词 ### 返回: - 热搜关键词列表 # [English] ### Purpose: - Get hot search keywords ### Return: - Hot search keywords list # [示例/Example]
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchHotSearchKeywordsApiV1Lemon8AppFetchHotSearchKeywordsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchHotSearchKeywordsApiV1Lemon8AppFetchHotSearchKeywordsGet");
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 fetchHotSearchKeywordsApiV1Lemon8AppFetchHotSearchKeywordsGet_0()
获取热搜关键词/Get hot search keywords
[中文] ### 用途: - 获取热搜关键词 ### 返回: - 热搜关键词列表 # [English] ### Purpose: - Get hot search keywords ### Return: - Hot search keywords list # [示例/Example]
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
try {
ResponseModel result = apiInstance.fetchHotSearchKeywordsApiV1Lemon8AppFetchHotSearchKeywordsGet_0();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchHotSearchKeywordsApiV1Lemon8AppFetchHotSearchKeywordsGet_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 fetchPostCommentListApiV1Lemon8AppFetchPostCommentListGet(groupId, itemId, mediaId, offset)
获取指定作品的评论列表/Get comments list of specified post
[中文] ### 用途: - 获取指定作品的评论列表 ### 参数: - group_id: 作品的group_id,可以从接口`/lemon8/app/fetch_post_detail`获取 - item_id: 作品的item_id,可以从接口`/lemon8/app/fetch_post_detail` 或 `/lemon8/app/get_item_id`获取 - media_id: 作品的media_id,可以从接口`/lemon8/app/fetch_post_detail`获取 - offset: 翻页参数,可以从上一次请求的返回结果中获取,第一次请求为空,后续请求使用上一次请求返回的offset进行翻页。 ### 返回: - 评论列表 # [English] ### Purpose: - Get comments list of specified post ### Parameters: - group_id: Post's group_id, can be obtained from the interface `/lemon8/app/fetch_post_detail` - item_id: Post's item_id, can be obtained from the interface `/lemon8/app/fetch_post_detail` or `/lemon8/app/get_item_id` - media_id: Post's media_id, can be obtained from the interface `/lemon8/app/fetch_post_detail` - offset: Pagination parameter, can be obtained from the return result of the last request. It is empty for the first request, and the offset returned by the last request is used for subsequent requests. ### Return: - Comments list # [示例/Example] group_id = "7361926875709129222" item_id = "7361926875709129222" media_id = "7428056850216862763"
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
String groupId = 7361926875709129222; // String | 作品的group_id/Post's group_id
String itemId = 7361926875709129222; // String | 作品的item_id/Post's item_id
String mediaId = 7428056850216862763; // String | 作品的media_id/Post's media_id
String offset = 0; // String | 翻页参数/Pagination parameter
try {
ResponseModel result = apiInstance.fetchPostCommentListApiV1Lemon8AppFetchPostCommentListGet(groupId, itemId, mediaId, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchPostCommentListApiV1Lemon8AppFetchPostCommentListGet");
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 |
---|---|---|---|
groupId | String | 作品的group_id/Post's group_id | |
itemId | String | 作品的item_id/Post's item_id | |
mediaId | String | 作品的media_id/Post's media_id | |
offset | String | 翻页参数/Pagination parameter | [optional] [default to "0"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchPostCommentListApiV1Lemon8AppFetchPostCommentListGet_0(groupId, itemId, mediaId, offset)
获取指定作品的评论列表/Get comments list of specified post
[中文] ### 用途: - 获取指定作品的评论列表 ### 参数: - group_id: 作品的group_id,可以从接口`/lemon8/app/fetch_post_detail`获取 - item_id: 作品的item_id,可以从接口`/lemon8/app/fetch_post_detail` 或 `/lemon8/app/get_item_id`获取 - media_id: 作品的media_id,可以从接口`/lemon8/app/fetch_post_detail`获取 - offset: 翻页参数,可以从上一次请求的返回结果中获取,第一次请求为空,后续请求使用上一次请求返回的offset进行翻页。 ### 返回: - 评论列表 # [English] ### Purpose: - Get comments list of specified post ### Parameters: - group_id: Post's group_id, can be obtained from the interface `/lemon8/app/fetch_post_detail` - item_id: Post's item_id, can be obtained from the interface `/lemon8/app/fetch_post_detail` or `/lemon8/app/get_item_id` - media_id: Post's media_id, can be obtained from the interface `/lemon8/app/fetch_post_detail` - offset: Pagination parameter, can be obtained from the return result of the last request. It is empty for the first request, and the offset returned by the last request is used for subsequent requests. ### Return: - Comments list # [示例/Example] group_id = "7361926875709129222" item_id = "7361926875709129222" media_id = "7428056850216862763"
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
String groupId = 7361926875709129222; // String | 作品的group_id/Post's group_id
String itemId = 7361926875709129222; // String | 作品的item_id/Post's item_id
String mediaId = 7428056850216862763; // String | 作品的media_id/Post's media_id
String offset = 0; // String | 翻页参数/Pagination parameter
try {
ResponseModel result = apiInstance.fetchPostCommentListApiV1Lemon8AppFetchPostCommentListGet_0(groupId, itemId, mediaId, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchPostCommentListApiV1Lemon8AppFetchPostCommentListGet_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 |
---|---|---|---|
groupId | String | 作品的group_id/Post's group_id | |
itemId | String | 作品的item_id/Post's item_id | |
mediaId | String | 作品的media_id/Post's media_id | |
offset | String | 翻页参数/Pagination parameter | [optional] [default to "0"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchPostDetailApiV1Lemon8AppFetchPostDetailGet(itemId)
获取指定作品的信息/Get information of specified post
[中文] ### 用途: - 获取指定作品的信息 ### 参数: - item_id: 作品ID,可以从接口`/lemon8/app/get_item_id`获取 ### 返回: - 作品信息 # [English] ### Purpose: - Get information of specified post ### Parameters: - item_id: Post ID, can be obtained from the interface `/lemon8/app/get_item_id` ### Return: - Post information # [示例/Example] item_id = "7361926875709129222"
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
String itemId = 7361926875709129222; // String | 作品ID/Post ID
try {
ResponseModel result = apiInstance.fetchPostDetailApiV1Lemon8AppFetchPostDetailGet(itemId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchPostDetailApiV1Lemon8AppFetchPostDetailGet");
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/Post ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchPostDetailApiV1Lemon8AppFetchPostDetailGet_0(itemId)
获取指定作品的信息/Get information of specified post
[中文] ### 用途: - 获取指定作品的信息 ### 参数: - item_id: 作品ID,可以从接口`/lemon8/app/get_item_id`获取 ### 返回: - 作品信息 # [English] ### Purpose: - Get information of specified post ### Parameters: - item_id: Post ID, can be obtained from the interface `/lemon8/app/get_item_id` ### Return: - Post information # [示例/Example] item_id = "7361926875709129222"
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
String itemId = 7361926875709129222; // String | 作品ID/Post ID
try {
ResponseModel result = apiInstance.fetchPostDetailApiV1Lemon8AppFetchPostDetailGet_0(itemId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchPostDetailApiV1Lemon8AppFetchPostDetailGet_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/Post ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSearchApiV1Lemon8AppFetchSearchGet(query, maxCursor, filterType, orderBy, searchTab)
搜索接口/Search API
[中文] ### 用途: - 搜索接口 ### 参数: - query: 搜索关键词 - max_cursor: 翻页参数,可以从上一次请求的返回结果中获取,第一次请求为空,后续请求使用上一次请求返回的`max_cursor`进行翻页,可以通过返回结果的`has_more`字段判断是否还有更多数据。 - filter_type: 搜索过滤类型,默认为空字符串,可选值如下: - 空字符串:All(全部,默认使用此参数搜索) - video:只搜索视频作品 - posts:只搜索文章作品 - order_by: 搜索排序方式,默认为空字符串,可选值如下: - 空字符串:Relevance(相关度,默认使用此参数排序) - popular:流行度排序 - recent:从新到旧排序 - search_tab: 搜索类型,默认为`main`,可选值如下: - main:APP中显示为 `Top`(综合搜索,默认使用此参数搜索) - user:APP中显示为 `Accounts` (搜索用户账号) - hashtag:APP中显示为 `Hashtags`(搜索话题) - article:APP中显示为 `Posts`(搜索文章) ### 返回: - 搜索结果 # [English] ### Purpose: - Search API ### Parameters: - query: Search keyword - max_cursor: Pagination parameter, can be obtained from the return result of the last request. It is empty for the first request, and the `max_cursor` returned by the last request is used for subsequent requests. You can judge whether there is more data by the `has_more` field in the return result. - filter_type: Search filter type, default is an empty string, optional values are as follows: - Empty string: All (default using this parameter to search) - video: Search only video - posts: Search only posts - order_by: Search sort type, default is an empty string, optional values are as follows: - Empty string: Relevance (default using this parameter to sort) - popular: Sort by popularity - recent: Sort from new to old - search_tab: Search type, default is `main`, optional values are as follows: - main: Display as `Top` in the APP (comprehensive search, default using this parameter to search) - user: Display as `Accounts` in the APP (search user accounts) - hashtag: Display as `Hashtags` in the APP (search hashtags) - article: Display as `Posts` in the APP (search articles) ### Return: - Search results # [示例/Example] query = "lemon8" max_cursor = "" filter_type = "" order_by = "" search_tab = "main"
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
String query = lemon8; // String | 搜索关键词/Search keyword
String maxCursor = "\"\""; // String | 翻页参数/Pagination parameter
String filterType = "\"\""; // String | 搜索过滤类型/Search filter type
String orderBy = "\"\""; // String | 搜索排序方式/Search sort type
String searchTab = main; // String | 搜索类型/Search type
try {
ResponseModel result = apiInstance.fetchSearchApiV1Lemon8AppFetchSearchGet(query, maxCursor, filterType, orderBy, searchTab);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchSearchApiV1Lemon8AppFetchSearchGet");
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 |
---|---|---|---|
query | String | 搜索关键词/Search keyword | |
maxCursor | String | 翻页参数/Pagination parameter | [optional] [default to ""] |
filterType | String | 搜索过滤类型/Search filter type | [optional] [default to ""] |
orderBy | String | 搜索排序方式/Search sort type | [optional] [default to ""] |
searchTab | String | 搜索类型/Search type | [optional] [default to "main"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchSearchApiV1Lemon8AppFetchSearchGet_0(query, maxCursor, filterType, orderBy, searchTab)
搜索接口/Search API
[中文] ### 用途: - 搜索接口 ### 参数: - query: 搜索关键词 - max_cursor: 翻页参数,可以从上一次请求的返回结果中获取,第一次请求为空,后续请求使用上一次请求返回的`max_cursor`进行翻页,可以通过返回结果的`has_more`字段判断是否还有更多数据。 - filter_type: 搜索过滤类型,默认为空字符串,可选值如下: - 空字符串:All(全部,默认使用此参数搜索) - video:只搜索视频作品 - posts:只搜索文章作品 - order_by: 搜索排序方式,默认为空字符串,可选值如下: - 空字符串:Relevance(相关度,默认使用此参数排序) - popular:流行度排序 - recent:从新到旧排序 - search_tab: 搜索类型,默认为`main`,可选值如下: - main:APP中显示为 `Top`(综合搜索,默认使用此参数搜索) - user:APP中显示为 `Accounts` (搜索用户账号) - hashtag:APP中显示为 `Hashtags`(搜索话题) - article:APP中显示为 `Posts`(搜索文章) ### 返回: - 搜索结果 # [English] ### Purpose: - Search API ### Parameters: - query: Search keyword - max_cursor: Pagination parameter, can be obtained from the return result of the last request. It is empty for the first request, and the `max_cursor` returned by the last request is used for subsequent requests. You can judge whether there is more data by the `has_more` field in the return result. - filter_type: Search filter type, default is an empty string, optional values are as follows: - Empty string: All (default using this parameter to search) - video: Search only video - posts: Search only posts - order_by: Search sort type, default is an empty string, optional values are as follows: - Empty string: Relevance (default using this parameter to sort) - popular: Sort by popularity - recent: Sort from new to old - search_tab: Search type, default is `main`, optional values are as follows: - main: Display as `Top` in the APP (comprehensive search, default using this parameter to search) - user: Display as `Accounts` in the APP (search user accounts) - hashtag: Display as `Hashtags` in the APP (search hashtags) - article: Display as `Posts` in the APP (search articles) ### Return: - Search results # [示例/Example] query = "lemon8" max_cursor = "" filter_type = "" order_by = "" search_tab = "main"
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
String query = lemon8; // String | 搜索关键词/Search keyword
String maxCursor = "\"\""; // String | 翻页参数/Pagination parameter
String filterType = "\"\""; // String | 搜索过滤类型/Search filter type
String orderBy = "\"\""; // String | 搜索排序方式/Search sort type
String searchTab = main; // String | 搜索类型/Search type
try {
ResponseModel result = apiInstance.fetchSearchApiV1Lemon8AppFetchSearchGet_0(query, maxCursor, filterType, orderBy, searchTab);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchSearchApiV1Lemon8AppFetchSearchGet_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 |
---|---|---|---|
query | String | 搜索关键词/Search keyword | |
maxCursor | String | 翻页参数/Pagination parameter | [optional] [default to ""] |
filterType | String | 搜索过滤类型/Search filter type | [optional] [default to ""] |
orderBy | String | 搜索排序方式/Search sort type | [optional] [default to ""] |
searchTab | String | 搜索类型/Search type | [optional] [default to "main"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchTopicInfoApiV1Lemon8AppFetchTopicInfoGet(forumId)
获取话题信息/Get topic information
[中文] ### 用途: - 获取话题信息 ### 参数: - forum_id: 话题ID,可以从下面的接口获取 - 获取指定作品的信息:`/lemon8/app/fetch_post_detail` - 获取发现页的 Editor's Picks:`/lemon8/app/fetch_discover_tab_information_tabs` - 通过接口搜索 Hashtag:`/lemon8/app/fetch_search?search_tab=hashtag&keyword=lemon8` ### 返回: - 话题信息 # [English] ### Purpose: - Get topic information ### Parameters: - forum_id: Topic ID, can be obtained from the following interfaces - Get information of specified post: `/lemon8/app/fetch_post_detail` - Get Editor's Picks of discover page: `/lemon8/app/fetch_discover_tab_information_tabs` - Search Hashtag through interface: `/lemon8/app/fetch_search?search_tab=hashtag&keyword=lemon8` ### Return: - Topic information # [示例/Example] forum_id = "7174447913778593798"
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
String forumId = 7174447913778593798; // String | 话题ID/Topic ID
try {
ResponseModel result = apiInstance.fetchTopicInfoApiV1Lemon8AppFetchTopicInfoGet(forumId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchTopicInfoApiV1Lemon8AppFetchTopicInfoGet");
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 |
---|---|---|---|
forumId | String | 话题ID/Topic ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchTopicInfoApiV1Lemon8AppFetchTopicInfoGet_0(forumId)
获取话题信息/Get topic information
[中文] ### 用途: - 获取话题信息 ### 参数: - forum_id: 话题ID,可以从下面的接口获取 - 获取指定作品的信息:`/lemon8/app/fetch_post_detail` - 获取发现页的 Editor's Picks:`/lemon8/app/fetch_discover_tab_information_tabs` - 通过接口搜索 Hashtag:`/lemon8/app/fetch_search?search_tab=hashtag&keyword=lemon8` ### 返回: - 话题信息 # [English] ### Purpose: - Get topic information ### Parameters: - forum_id: Topic ID, can be obtained from the following interfaces - Get information of specified post: `/lemon8/app/fetch_post_detail` - Get Editor's Picks of discover page: `/lemon8/app/fetch_discover_tab_information_tabs` - Search Hashtag through interface: `/lemon8/app/fetch_search?search_tab=hashtag&keyword=lemon8` ### Return: - Topic information # [示例/Example] forum_id = "7174447913778593798"
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
String forumId = 7174447913778593798; // String | 话题ID/Topic ID
try {
ResponseModel result = apiInstance.fetchTopicInfoApiV1Lemon8AppFetchTopicInfoGet_0(forumId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchTopicInfoApiV1Lemon8AppFetchTopicInfoGet_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 |
---|---|---|---|
forumId | String | 话题ID/Topic ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchTopicPostListApiV1Lemon8AppFetchTopicPostListGet(category, categoryParameter, hashtagName, maxBehotTime, sortType)
获取话题作品列表/Get topic post list
[中文] ### 用途: - 获取话题作品列表 ### 参数: - category: 话题分类 ID,可以从接口`/lemon8/app/fetch_topic_info`获取 - max_behot_time: 翻页参数,可以从上一次请求的返回结果中获取,第一次请求为空,后续请求使用上一次请求返回的max_behot_time进行翻页。 - category_parameter: 分类参数ID,可以从接口`/lemon8/app/fetch_topic_info`获取 - hashtag_name: Hashtag名称,可以从接口`/lemon8/app/fetch_topic_info`获取 - sort_type: 排序方式,0为默认排序,当前只支持使用默认排序,请不要传入其他值。 ### 返回: - 作品列表 # [English] ### Purpose: - Get topic post list ### Parameters: - category: Topic category ID, can be obtained from the interface `/lemon8/app/fetch_topic_info` - max_behot_time: Pagination parameter, can be obtained from the return result of the last request. It is empty for the first request, and the max_behot_time returned by the last request is used for subsequent requests. - category_parameter: Category parameter ID, can be obtained from the interface `/lemon8/app/fetch_topic_info` - hashtag_name: Hashtag name, can be obtained from the interface `/lemon8/app/fetch_topic_info` - sort_type: Sort type, 0 for default sort, currently only support default sort, please do not pass other values. ### Return: - Post list # [示例/Example] category = "590" max_behot_time = "" category_parameter = "7174447913778593798" hashtag_name = "lemon8christmas" sort_type = "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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
String category = 590; // String | 话题分类 ID/Topic category ID
String categoryParameter = 7174447913778593798; // String | 分类参数/Category parameter
String hashtagName = lemon8christmas; // String | Hashtag名称/Hashtag name
String maxBehotTime = "\"\""; // String | 翻页参数/Pagination parameter
String sortType = "\"0\""; // String | 排序方式/Sort type
try {
ResponseModel result = apiInstance.fetchTopicPostListApiV1Lemon8AppFetchTopicPostListGet(category, categoryParameter, hashtagName, maxBehotTime, sortType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchTopicPostListApiV1Lemon8AppFetchTopicPostListGet");
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 |
---|---|---|---|
category | String | 话题分类 ID/Topic category ID | |
categoryParameter | String | 分类参数/Category parameter | |
hashtagName | String | Hashtag名称/Hashtag name | |
maxBehotTime | String | 翻页参数/Pagination parameter | [optional] [default to ""] |
sortType | String | 排序方式/Sort type | [optional] [default to "0"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchTopicPostListApiV1Lemon8AppFetchTopicPostListGet_0(category, categoryParameter, hashtagName, maxBehotTime, sortType)
获取话题作品列表/Get topic post list
[中文] ### 用途: - 获取话题作品列表 ### 参数: - category: 话题分类 ID,可以从接口`/lemon8/app/fetch_topic_info`获取 - max_behot_time: 翻页参数,可以从上一次请求的返回结果中获取,第一次请求为空,后续请求使用上一次请求返回的max_behot_time进行翻页。 - category_parameter: 分类参数ID,可以从接口`/lemon8/app/fetch_topic_info`获取 - hashtag_name: Hashtag名称,可以从接口`/lemon8/app/fetch_topic_info`获取 - sort_type: 排序方式,0为默认排序,当前只支持使用默认排序,请不要传入其他值。 ### 返回: - 作品列表 # [English] ### Purpose: - Get topic post list ### Parameters: - category: Topic category ID, can be obtained from the interface `/lemon8/app/fetch_topic_info` - max_behot_time: Pagination parameter, can be obtained from the return result of the last request. It is empty for the first request, and the max_behot_time returned by the last request is used for subsequent requests. - category_parameter: Category parameter ID, can be obtained from the interface `/lemon8/app/fetch_topic_info` - hashtag_name: Hashtag name, can be obtained from the interface `/lemon8/app/fetch_topic_info` - sort_type: Sort type, 0 for default sort, currently only support default sort, please do not pass other values. ### Return: - Post list # [示例/Example] category = "590" max_behot_time = "" category_parameter = "7174447913778593798" hashtag_name = "lemon8christmas" sort_type = "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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
String category = 590; // String | 话题分类 ID/Topic category ID
String categoryParameter = 7174447913778593798; // String | 分类参数/Category parameter
String hashtagName = lemon8christmas; // String | Hashtag名称/Hashtag name
String maxBehotTime = "\"\""; // String | 翻页参数/Pagination parameter
String sortType = "\"0\""; // String | 排序方式/Sort type
try {
ResponseModel result = apiInstance.fetchTopicPostListApiV1Lemon8AppFetchTopicPostListGet_0(category, categoryParameter, hashtagName, maxBehotTime, sortType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchTopicPostListApiV1Lemon8AppFetchTopicPostListGet_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 |
---|---|---|---|
category | String | 话题分类 ID/Topic category ID | |
categoryParameter | String | 分类参数/Category parameter | |
hashtagName | String | Hashtag名称/Hashtag name | |
maxBehotTime | String | 翻页参数/Pagination parameter | [optional] [default to ""] |
sortType | String | 排序方式/Sort type | [optional] [default to "0"] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowerListApiV1Lemon8AppFetchUserFollowerListGet(userId, cursor)
获取指定用户的粉丝列表/Get fans list of specified user
[中文] ### 用途: - 获取指定用户的粉丝列表 ### 参数: - user_id: 用户ID,可以从接口`/lemon8/app/get_user_id`获取 - cursor: 翻页参数,可以从上一次请求的返回结果中获取,第一次请求为空,后续请求使用上一次请求返回的cursor进行翻页。 ### 返回: - 粉丝列表 # [English] ### Purpose: - Get fans list of specified user ### Parameters: - user_id: User ID, can be obtained from the interface `/lemon8/app/get_user_id` - cursor: Pagination parameter, can be obtained from the return result of the last request. It is empty for the first request, and the cursor returned by the last request is used for subsequent requests. ### Return: - Fans list # [示例/Example] user_id = "7428056850216862763"
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
String userId = 7428056850216862763; // String | 用户ID/User ID
String cursor = "\"\""; // String | 翻页参数/Pagination parameter
try {
ResponseModel result = apiInstance.fetchUserFollowerListApiV1Lemon8AppFetchUserFollowerListGet(userId, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchUserFollowerListApiV1Lemon8AppFetchUserFollowerListGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userId | String | 用户ID/User ID | |
cursor | String | 翻页参数/Pagination parameter | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowerListApiV1Lemon8AppFetchUserFollowerListGet_0(userId, cursor)
获取指定用户的粉丝列表/Get fans list of specified user
[中文] ### 用途: - 获取指定用户的粉丝列表 ### 参数: - user_id: 用户ID,可以从接口`/lemon8/app/get_user_id`获取 - cursor: 翻页参数,可以从上一次请求的返回结果中获取,第一次请求为空,后续请求使用上一次请求返回的cursor进行翻页。 ### 返回: - 粉丝列表 # [English] ### Purpose: - Get fans list of specified user ### Parameters: - user_id: User ID, can be obtained from the interface `/lemon8/app/get_user_id` - cursor: Pagination parameter, can be obtained from the return result of the last request. It is empty for the first request, and the cursor returned by the last request is used for subsequent requests. ### Return: - Fans list # [示例/Example] user_id = "7428056850216862763"
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
String userId = 7428056850216862763; // String | 用户ID/User ID
String cursor = "\"\""; // String | 翻页参数/Pagination parameter
try {
ResponseModel result = apiInstance.fetchUserFollowerListApiV1Lemon8AppFetchUserFollowerListGet_0(userId, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchUserFollowerListApiV1Lemon8AppFetchUserFollowerListGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userId | String | 用户ID/User ID | |
cursor | String | 翻页参数/Pagination parameter | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowingListApiV1Lemon8AppFetchUserFollowingListGet(userId, cursor)
获取指定用户的关注列表/Get following list of specified user
[中文] ### 用途: - 获取指定用户的关注列表 ### 参数: - user_id: 用户ID,可以从接口`/lemon8/app/get_user_id`获取 - cursor: 翻页参数,可以从上一次请求的返回结果中获取,第一次请求为空,后续请求使用上一次请求返回的cursor进行翻页。 ### 返回: - 关注列表 # [English] ### Purpose: - Get following list of specified user ### Parameters: - user_id: User ID, can be obtained from the interface `/lemon8/app/get_user_id` - cursor: Pagination parameter, can be obtained from the return result of the last request. It is empty for the first request, and the cursor returned by the last request is used for subsequent requests. ### Return: - Following list # [示例/Example] user_id = "7428056850216862763"
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
String userId = 7428056850216862763; // String | 用户ID/User ID
String cursor = "\"\""; // String | 翻页参数/Pagination parameter
try {
ResponseModel result = apiInstance.fetchUserFollowingListApiV1Lemon8AppFetchUserFollowingListGet(userId, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchUserFollowingListApiV1Lemon8AppFetchUserFollowingListGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userId | String | 用户ID/User ID | |
cursor | String | 翻页参数/Pagination parameter | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel fetchUserFollowingListApiV1Lemon8AppFetchUserFollowingListGet_0(userId, cursor)
获取指定用户的关注列表/Get following list of specified user
[中文] ### 用途: - 获取指定用户的关注列表 ### 参数: - user_id: 用户ID,可以从接口`/lemon8/app/get_user_id`获取 - cursor: 翻页参数,可以从上一次请求的返回结果中获取,第一次请求为空,后续请求使用上一次请求返回的cursor进行翻页。 ### 返回: - 关注列表 # [English] ### Purpose: - Get following list of specified user ### Parameters: - user_id: User ID, can be obtained from the interface `/lemon8/app/get_user_id` - cursor: Pagination parameter, can be obtained from the return result of the last request. It is empty for the first request, and the cursor returned by the last request is used for subsequent requests. ### Return: - Following list # [示例/Example] user_id = "7428056850216862763"
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
String userId = 7428056850216862763; // String | 用户ID/User ID
String cursor = "\"\""; // String | 翻页参数/Pagination parameter
try {
ResponseModel result = apiInstance.fetchUserFollowingListApiV1Lemon8AppFetchUserFollowingListGet_0(userId, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#fetchUserFollowingListApiV1Lemon8AppFetchUserFollowingListGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userId | String | 用户ID/User ID | |
cursor | String | 翻页参数/Pagination parameter | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getItemIdApiV1Lemon8AppGetItemIdGet(shareText)
通过分享链接获取作品ID/Get post ID through sharing link
[中文] ### 用途: - 通过分享链接获取作品ID ### 参数: - share_text: 分享链接,支持长链接和短链接,可以从网页端以及APP中的分享按钮获取并复制。 ### 返回: - 作品ID # [English] ### Purpose: - Get post ID through sharing link ### Parameters: - share_text: Share link, supports long links and short links, can be obtained and copied from the share button on the web and APP. ### Return: - Post ID # [示例/Example] share_text = "https://www.lemon8-app.com/@deathlabs_/7445613324903006766\" share_text = "https://v.lemon8-app.com/al/OghwFTppx\"
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
String shareText = https://v.lemon8-app.com/al/OghwFTppx; // String | 分享链接/Share link
try {
ResponseModel result = apiInstance.getItemIdApiV1Lemon8AppGetItemIdGet(shareText);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#getItemIdApiV1Lemon8AppGetItemIdGet");
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 |
---|---|---|---|
shareText | String | 分享链接/Share link |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getItemIdApiV1Lemon8AppGetItemIdGet_0(shareText)
通过分享链接获取作品ID/Get post ID through sharing link
[中文] ### 用途: - 通过分享链接获取作品ID ### 参数: - share_text: 分享链接,支持长链接和短链接,可以从网页端以及APP中的分享按钮获取并复制。 ### 返回: - 作品ID # [English] ### Purpose: - Get post ID through sharing link ### Parameters: - share_text: Share link, supports long links and short links, can be obtained and copied from the share button on the web and APP. ### Return: - Post ID # [示例/Example] share_text = "https://www.lemon8-app.com/@deathlabs_/7445613324903006766\" share_text = "https://v.lemon8-app.com/al/OghwFTppx\"
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
String shareText = https://v.lemon8-app.com/al/OghwFTppx; // String | 分享链接/Share link
try {
ResponseModel result = apiInstance.getItemIdApiV1Lemon8AppGetItemIdGet_0(shareText);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#getItemIdApiV1Lemon8AppGetItemIdGet_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 |
---|---|---|---|
shareText | String | 分享链接/Share link |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getItemIdsApiV1Lemon8AppGetItemIdsPost(requestBody)
通过分享链接批量获取作品ID/Get post IDs in batch through sharing links
[中文] ### 用途: - 通过分享链接批量获取作品ID,一次最多获取10个 ### 参数: - share_texts: 分享链接列表,支持长链接和短链接,可以从网页端以及APP中的分享按钮获取并复制。 ### 返回: - 作品ID列表 # [English] ### Purpose: - Get post IDs in batch through sharing links, up to 10 at a time ### Parameters: - share_texts: Share links list, supports long links and short links, can be obtained and copied from the share button on the web and APP. ### Return: - Post IDs list # [示例/Example] share_texts = [ "https://www.lemon8-app.com/@deathlabs_/7445613324903006766", "https://v.lemon8-app.com/al/OghwFTppx" ]
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
List<String> requestBody = ["https://www.lemon8-app.com/@deathlabs_/7445613324903006766","https://v.lemon8-app.com/al/OghwFTppx"]; // List<String> |
try {
ResponseModel result = apiInstance.getItemIdsApiV1Lemon8AppGetItemIdsPost(requestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#getItemIdsApiV1Lemon8AppGetItemIdsPost");
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 |
---|---|---|---|
requestBody | List<String> | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getItemIdsApiV1Lemon8AppGetItemIdsPost_0(requestBody)
通过分享链接批量获取作品ID/Get post IDs in batch through sharing links
[中文] ### 用途: - 通过分享链接批量获取作品ID,一次最多获取10个 ### 参数: - share_texts: 分享链接列表,支持长链接和短链接,可以从网页端以及APP中的分享按钮获取并复制。 ### 返回: - 作品ID列表 # [English] ### Purpose: - Get post IDs in batch through sharing links, up to 10 at a time ### Parameters: - share_texts: Share links list, supports long links and short links, can be obtained and copied from the share button on the web and APP. ### Return: - Post IDs list # [示例/Example] share_texts = [ "https://www.lemon8-app.com/@deathlabs_/7445613324903006766", "https://v.lemon8-app.com/al/OghwFTppx" ]
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
List<String> requestBody = ["https://www.lemon8-app.com/@deathlabs_/7445613324903006766","https://v.lemon8-app.com/al/OghwFTppx"]; // List<String> |
try {
ResponseModel result = apiInstance.getItemIdsApiV1Lemon8AppGetItemIdsPost_0(requestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#getItemIdsApiV1Lemon8AppGetItemIdsPost_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 |
---|---|---|---|
requestBody | List<String> | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getUserIdApiV1Lemon8AppGetUserIdGet(shareText)
通过分享链接获取用户ID/Get user ID through sharing link
[中文] ### 用途: - 通过分享链接获取用户ID ### 参数: - share_text: 分享链接,支持长链接和短链接,可以从网页端以及APP中的分享按钮获取并复制。 ### 返回: - 用户ID # [English] ### Purpose: - Get user ID through sharing link ### Parameters: - share_text: Share link, supports long links and short links, can be obtained and copied from the share button on the web and APP. ### Return: - User ID # [示例/Example] share_text = "https://www.lemon8-app.com/lemon8cars?region=us\" share_text = "https://v.lemon8-app.com/al/OgZrsUppx\"
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
String shareText = https://v.lemon8-app.com/al/OgZrsUppx; // String | 分享链接/Share link
try {
ResponseModel result = apiInstance.getUserIdApiV1Lemon8AppGetUserIdGet(shareText);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#getUserIdApiV1Lemon8AppGetUserIdGet");
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 |
---|---|---|---|
shareText | String | 分享链接/Share link |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getUserIdApiV1Lemon8AppGetUserIdGet_0(shareText)
通过分享链接获取用户ID/Get user ID through sharing link
[中文] ### 用途: - 通过分享链接获取用户ID ### 参数: - share_text: 分享链接,支持长链接和短链接,可以从网页端以及APP中的分享按钮获取并复制。 ### 返回: - 用户ID # [English] ### Purpose: - Get user ID through sharing link ### Parameters: - share_text: Share link, supports long links and short links, can be obtained and copied from the share button on the web and APP. ### Return: - User ID # [示例/Example] share_text = "https://www.lemon8-app.com/lemon8cars?region=us\" share_text = "https://v.lemon8-app.com/al/OgZrsUppx\"
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
String shareText = https://v.lemon8-app.com/al/OgZrsUppx; // String | 分享链接/Share link
try {
ResponseModel result = apiInstance.getUserIdApiV1Lemon8AppGetUserIdGet_0(shareText);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#getUserIdApiV1Lemon8AppGetUserIdGet_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 |
---|---|---|---|
shareText | String | 分享链接/Share link |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getUserIdsApiV1Lemon8AppGetUserIdsPost(requestBody)
通过分享链接批量获取用户ID/Get user IDs in batch through sharing links
[中文] ### 用途: - 通过分享链接批量获取用户ID,一次最多获取10个 ### 参数: - share_texts: 分享链接列表,支持长链接和短链接,可以从网页端以及APP中的分享按钮获取并复制。 ### 返回: - 用户ID列表 # [English] ### Purpose: - Get user IDs in batch through sharing links, up to 10 at a time ### Parameters: - share_texts: Share links list, supports long links and short links, can be obtained and copied from the share button on the web and APP. ### Return: - User IDs list # [示例/Example] share_texts = [ "https://www.lemon8-app.com/lemon8cars?region=us", "https://v.lemon8-app.com/al/OgZrsUppx" ]
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
List<String> requestBody = ["https://www.lemon8-app.com/lemon8cars?region=us","https://v.lemon8-app.com/al/OgZrsUppx"]; // List<String> |
try {
ResponseModel result = apiInstance.getUserIdsApiV1Lemon8AppGetUserIdsPost(requestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#getUserIdsApiV1Lemon8AppGetUserIdsPost");
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 |
---|---|---|---|
requestBody | List<String> | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel getUserIdsApiV1Lemon8AppGetUserIdsPost_0(requestBody)
通过分享链接批量获取用户ID/Get user IDs in batch through sharing links
[中文] ### 用途: - 通过分享链接批量获取用户ID,一次最多获取10个 ### 参数: - share_texts: 分享链接列表,支持长链接和短链接,可以从网页端以及APP中的分享按钮获取并复制。 ### 返回: - 用户ID列表 # [English] ### Purpose: - Get user IDs in batch through sharing links, up to 10 at a time ### Parameters: - share_texts: Share links list, supports long links and short links, can be obtained and copied from the share button on the web and APP. ### Return: - User IDs list # [示例/Example] share_texts = [ "https://www.lemon8-app.com/lemon8cars?region=us", "https://v.lemon8-app.com/al/OgZrsUppx" ]
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
List<String> requestBody = ["https://www.lemon8-app.com/lemon8cars?region=us","https://v.lemon8-app.com/al/OgZrsUppx"]; // List<String> |
try {
ResponseModel result = apiInstance.getUserIdsApiV1Lemon8AppGetUserIdsPost_0(requestBody);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#getUserIdsApiV1Lemon8AppGetUserIdsPost_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 |
---|---|---|---|
requestBody | List<String> | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel handlerUserProfileApiV1Lemon8AppFetchUserProfileGet(userId)
获取指定用户的信息/Get information of specified user
[中文] ### 用途: - 获取指定用户的信息 ### 参数: - user_id: 用户ID,可以从接口`/lemon8/app/get_user_id`获取 ### 返回: - 用户信息 # [English] ### Purpose: - Get information of specified user ### Parameters: - user_id: User ID, can be obtained from the interface `/lemon8/app/get_user_id` ### Return: - User information # [示例/Example] user_id = "7217844966059656197
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
String userId = 7217844966059656197; // String | 用户ID/User ID
try {
ResponseModel result = apiInstance.handlerUserProfileApiV1Lemon8AppFetchUserProfileGet(userId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#handlerUserProfileApiV1Lemon8AppFetchUserProfileGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userId | String | 用户ID/User ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
ResponseModel handlerUserProfileApiV1Lemon8AppFetchUserProfileGet_0(userId)
获取指定用户的信息/Get information of specified user
[中文] ### 用途: - 获取指定用户的信息 ### 参数: - user_id: 用户ID,可以从接口`/lemon8/app/get_user_id`获取 ### 返回: - 用户信息 # [English] ### Purpose: - Get information of specified user ### Parameters: - user_id: User ID, can be obtained from the interface `/lemon8/app/get_user_id` ### Return: - User information # [示例/Example] user_id = "7217844966059656197
// 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.Lemon8AppApiApi;
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");
Lemon8AppApiApi apiInstance = new Lemon8AppApiApi(defaultClient);
String userId = 7217844966059656197; // String | 用户ID/User ID
try {
ResponseModel result = apiInstance.handlerUserProfileApiV1Lemon8AppFetchUserProfileGet_0(userId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling Lemon8AppApiApi#handlerUserProfileApiV1Lemon8AppFetchUserProfileGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
userId | String | 用户ID/User ID |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |