xiaohongshuApiUrls: {
"首页推荐数据"(
data?: Omit<
{
methodType: "首页推荐数据";
cursor_score?: string;
num?: number;
refresh_type?: number;
note_index?: number;
category?: string;
search_key?: string;
},
"methodType",
>,
): {
apiPath: string;
Url: string;
Body: {
cursor_score: string;
num: number;
refresh_type: number;
note_index: number;
category: string;
search_key: string;
image_formats: string[];
};
};
"单个笔记数据"(
data: Omit<
{ methodType: "单个笔记数据"; note_id: string; xsec_token: string },
"methodType",
>,
): {
apiPath: string;
Url: string;
Body: {
source_note_id: string;
image_formats: string[];
extra: { need_body_topic: string };
xsec_source: string;
xsec_token: string;
};
};
"评论数据"(
data: Omit<
{
methodType: "评论数据";
note_id: string;
cursor?: string;
xsec_token: string;
},
"methodType",
>,
): { apiPath: string; Url: string };
"用户数据"(
data: Omit<{ methodType: "用户数据"; user_id: string }, "methodType">,
): { apiPath: string; Url: string };
"用户笔记数据"(
data: Omit<
{
methodType: "用户笔记数据";
user_id: string;
cursor?: string;
num?: number;
},
"methodType",
>,
): { apiPath: string; Url: string };
"表情列表"(
data: Omit<{ methodType: "表情列表" }, "methodType">,
): { apiPath: string; Url: string };
"搜索笔记"(
data: Omit<
{
methodType: "搜索笔记";
keyword: string;
page?: number;
page_size?: number;
sort?: SearchSortType;
note_type?: SearchNoteType;
},
"methodType",
>,
): {
apiPath: string;
Body: {
keyword: string;
page: number;
page_size: number;
sort: SearchSortType;
note_type: SearchNoteType;
search_id: string;
image_formats: string[];
};
Url: string;
};
} = ...
类型声明
首页推荐数据: function
"首页推荐数据"( data?: Omit< { methodType: "首页推荐数据"; cursor_score?: string; num?: number; refresh_type?: number; note_index?: number; category?: string; search_key?: string; }, "methodType", >,): { apiPath: string; Url: string; Body: { cursor_score: string; num: number; refresh_type: number; note_index: number; category: string; search_key: string; image_formats: string[]; };} 参数
- data: Omit<
{
methodType: "首页推荐数据";
cursor_score?: string;
num?: number;
refresh_type?: number;
note_index?: number;
category?: string;
search_key?: string;
},
"methodType",
> = {}
返回 {
apiPath: string;
Url: string;
Body: {
cursor_score: string;
num: number;
refresh_type: number;
note_index: number;
category: string;
search_key: string;
image_formats: string[];
};
}
完整的接口URL
单个笔记数据: function
"单个笔记数据"( data: Omit< { methodType: "单个笔记数据"; note_id: string; xsec_token: string }, "methodType", >,): { apiPath: string; Url: string; Body: { source_note_id: string; image_formats: string[]; extra: { need_body_topic: string }; xsec_source: string; xsec_token: string; };} 参数
- data: Omit<
{ methodType: "单个笔记数据"; note_id: string; xsec_token: string },
"methodType",
>
返回 {
apiPath: string;
Url: string;
Body: {
source_note_id: string;
image_formats: string[];
extra: { need_body_topic: string };
xsec_source: string;
xsec_token: string;
};
}
完整的接口URL
评论数据: function
"评论数据"( data: Omit< { methodType: "评论数据"; note_id: string; cursor?: string; xsec_token: string; }, "methodType", >,): { apiPath: string; Url: string } 参数
- data: Omit<
{
methodType: "评论数据";
note_id: string;
cursor?: string;
xsec_token: string;
},
"methodType",
>
返回 { apiPath: string; Url: string }
完整的接口URL
用户数据: function
"用户数据"( data: Omit<{ methodType: "用户数据"; user_id: string }, "methodType">,): { apiPath: string; Url: string } 参数
- data: Omit<{ methodType: "用户数据"; user_id: string }, "methodType">
返回 { apiPath: string; Url: string }
完整的接口URL
用户笔记数据: function
"用户笔记数据"( data: Omit< { methodType: "用户笔记数据"; user_id: string; cursor?: string; num?: number; }, "methodType", >,): { apiPath: string; Url: string } 参数
- data: Omit<
{ methodType: "用户笔记数据"; user_id: string; cursor?: string; num?: number },
"methodType",
>
返回 { apiPath: string; Url: string }
完整的接口URL
表情列表: function
"表情列表"( data: Omit<{ methodType: "表情列表" }, "methodType">,): { apiPath: string; Url: string } 参数
- data: Omit<{ methodType: "表情列表" }, "methodType">
返回 { apiPath: string; Url: string }
完整的接口URL
搜索笔记: function
"搜索笔记"( data: Omit< { methodType: "搜索笔记"; keyword: string; page?: number; page_size?: number; sort?: SearchSortType; note_type?: SearchNoteType; }, "methodType", >,): { apiPath: string; Body: { keyword: string; page: number; page_size: number; sort: SearchSortType; note_type: SearchNoteType; search_id: string; image_formats: string[]; }; Url: string;} 参数
- data: Omit<
{
methodType: "搜索笔记";
keyword: string;
page?: number;
page_size?: number;
sort?: SearchSortType;
note_type?: SearchNoteType;
},
"methodType",
>
返回 {
apiPath: string;
Body: {
keyword: string;
page: number;
page_size: number;
sort: SearchSortType;
note_type: SearchNoteType;
search_id: string;
image_formats: string[];
};
Url: string;
}
完整的接口URL
小红书API地址配置