@ikenxuan/amagi 4.2.2 → 4.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,7 +7,7 @@ import { BilibiliDataOptions, BilibiliDataOptionsMap, DouyinDataOptions, DouyinD
|
|
|
7
7
|
* @returns 返回接口的原始数据
|
|
8
8
|
* @example
|
|
9
9
|
* ```ts
|
|
10
|
-
* const data = await
|
|
10
|
+
* const data = await getDouyinData('搜索数据', 'User Cookies', {
|
|
11
11
|
* query: '114514',
|
|
12
12
|
* number: 10
|
|
13
13
|
* })
|
|
@@ -22,7 +22,7 @@ export declare const getDouyinData: <T extends keyof DouyinDataOptionsMap>(type:
|
|
|
22
22
|
* @returns 返回接口的原始数据
|
|
23
23
|
* @example
|
|
24
24
|
* ```ts
|
|
25
|
-
* const data = await
|
|
25
|
+
* const data = await getBilibiliData('单个视频作品数据', 'User Cookies', {
|
|
26
26
|
* bvid: 'BV1fK4y1q79u'
|
|
27
27
|
* })
|
|
28
28
|
* ```
|
|
@@ -36,7 +36,7 @@ export declare function getBilibiliData<T extends keyof BilibiliDataOptionsMap>(
|
|
|
36
36
|
* @returns 返回接口的原始数据
|
|
37
37
|
* @example
|
|
38
38
|
* ```ts
|
|
39
|
-
* const data = await
|
|
39
|
+
* const data = await getKuaishouData('单个视频作品数据', 'User Cookies', {
|
|
40
40
|
* photoId: '3xdpv6sfi8yjsqy'
|
|
41
41
|
* })
|
|
42
42
|
* ```
|
|
@@ -7,7 +7,7 @@ import { BilibiliData, DouyinData, KuaishouData } from '../platform/index.js';
|
|
|
7
7
|
* @returns 返回接口的原始数据
|
|
8
8
|
* @example
|
|
9
9
|
* ```ts
|
|
10
|
-
* const data = await
|
|
10
|
+
* const data = await getDouyinData('搜索数据', 'User Cookies', {
|
|
11
11
|
* query: '114514',
|
|
12
12
|
* number: 10
|
|
13
13
|
* })
|
|
@@ -25,7 +25,7 @@ export const getDouyinData = async (type, cookie, options) => {
|
|
|
25
25
|
* @returns 返回接口的原始数据
|
|
26
26
|
* @example
|
|
27
27
|
* ```ts
|
|
28
|
-
* const data = await
|
|
28
|
+
* const data = await getBilibiliData('单个视频作品数据', 'User Cookies', {
|
|
29
29
|
* bvid: 'BV1fK4y1q79u'
|
|
30
30
|
* })
|
|
31
31
|
* ```
|
|
@@ -42,7 +42,7 @@ export async function getBilibiliData(methodType, cookie, options) {
|
|
|
42
42
|
* @returns 返回接口的原始数据
|
|
43
43
|
* @example
|
|
44
44
|
* ```ts
|
|
45
|
-
* const data = await
|
|
45
|
+
* const data = await getKuaishouData('单个视频作品数据', 'User Cookies', {
|
|
46
46
|
* photoId: '3xdpv6sfi8yjsqy'
|
|
47
47
|
* })
|
|
48
48
|
* ```
|
package/lib/server/client.d.ts
CHANGED
|
@@ -39,6 +39,11 @@ export declare class amagi {
|
|
|
39
39
|
* @returns 返回接口的原始数据
|
|
40
40
|
* @example
|
|
41
41
|
* ```ts
|
|
42
|
+
* import Client from '@ikenxuan/amagi'
|
|
43
|
+
*
|
|
44
|
+
* const amagi = new Client({
|
|
45
|
+
* douyin: '' // 有效的抖音ck
|
|
46
|
+
* })
|
|
42
47
|
* const data = await amagi.getDouyinData('搜索数据', {
|
|
43
48
|
* query: '114514',
|
|
44
49
|
* number: 10
|
|
@@ -53,8 +58,13 @@ export declare class amagi {
|
|
|
53
58
|
* @returns 返回接口的原始数据
|
|
54
59
|
* @example
|
|
55
60
|
* ```ts
|
|
61
|
+
* import Client from '@ikenxuan/amagi'
|
|
62
|
+
*
|
|
63
|
+
* const amagi = new Client({
|
|
64
|
+
* bilibili: '' // 有效的B站ck
|
|
65
|
+
* })
|
|
56
66
|
* const data = await amagi.getBilibiliData('单个视频作品数据', {
|
|
57
|
-
*
|
|
67
|
+
* bvid: 'BV1fK4y1q79u'
|
|
58
68
|
* })
|
|
59
69
|
* ```
|
|
60
70
|
*/
|
|
@@ -66,6 +76,11 @@ export declare class amagi {
|
|
|
66
76
|
* @returns 返回接口的原始数据
|
|
67
77
|
* @example
|
|
68
78
|
* ```ts
|
|
79
|
+
* import Client from '@ikenxuan/amagi'
|
|
80
|
+
*
|
|
81
|
+
* const amagi = new Client({
|
|
82
|
+
* kuaishou: '' // 有效的快手ck
|
|
83
|
+
* })
|
|
69
84
|
* const data = await amagi.getKuaishouData('单个视频作品数据', {
|
|
70
85
|
* photoId: '3xdpv6sfi8yjsqy'
|
|
71
86
|
* })
|
package/lib/server/client.js
CHANGED
|
@@ -57,6 +57,11 @@ export class amagi {
|
|
|
57
57
|
* @returns 返回接口的原始数据
|
|
58
58
|
* @example
|
|
59
59
|
* ```ts
|
|
60
|
+
* import Client from '@ikenxuan/amagi'
|
|
61
|
+
*
|
|
62
|
+
* const amagi = new Client({
|
|
63
|
+
* douyin: '' // 有效的抖音ck
|
|
64
|
+
* })
|
|
60
65
|
* const data = await amagi.getDouyinData('搜索数据', {
|
|
61
66
|
* query: '114514',
|
|
62
67
|
* number: 10
|
|
@@ -77,8 +82,13 @@ export class amagi {
|
|
|
77
82
|
* @returns 返回接口的原始数据
|
|
78
83
|
* @example
|
|
79
84
|
* ```ts
|
|
85
|
+
* import Client from '@ikenxuan/amagi'
|
|
86
|
+
*
|
|
87
|
+
* const amagi = new Client({
|
|
88
|
+
* bilibili: '' // 有效的B站ck
|
|
89
|
+
* })
|
|
80
90
|
* const data = await amagi.getBilibiliData('单个视频作品数据', {
|
|
81
|
-
*
|
|
91
|
+
* bvid: 'BV1fK4y1q79u'
|
|
82
92
|
* })
|
|
83
93
|
* ```
|
|
84
94
|
*/
|
|
@@ -96,6 +106,11 @@ export class amagi {
|
|
|
96
106
|
* @returns 返回接口的原始数据
|
|
97
107
|
* @example
|
|
98
108
|
* ```ts
|
|
109
|
+
* import Client from '@ikenxuan/amagi'
|
|
110
|
+
*
|
|
111
|
+
* const amagi = new Client({
|
|
112
|
+
* kuaishou: '' // 有效的快手ck
|
|
113
|
+
* })
|
|
99
114
|
* const data = await amagi.getKuaishouData('单个视频作品数据', {
|
|
100
115
|
* photoId: '3xdpv6sfi8yjsqy'
|
|
101
116
|
* })
|