n8n-nodes-tiktok-bigboss 1.0.0 → 1.0.1
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.
|
@@ -4,47 +4,70 @@ exports.TikTokOAuth2Api = void 0;
|
|
|
4
4
|
class TikTokOAuth2Api {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.name = 'tiktokOAuth2Api';
|
|
7
|
+
this.extends = ['oAuth2Api'];
|
|
7
8
|
this.displayName = 'TikTok OAuth2 API';
|
|
8
|
-
this.documentationUrl = 'https://developers.tiktok.com/';
|
|
9
|
-
this.extends = [
|
|
10
|
-
'oAuth2Api',
|
|
11
|
-
];
|
|
9
|
+
this.documentationUrl = 'https://developers.tiktok.com/doc/oauth-user-access-token-management';
|
|
12
10
|
this.properties = [
|
|
13
|
-
{
|
|
14
|
-
displayName: 'Grant Type',
|
|
15
|
-
name: 'grantType',
|
|
16
|
-
type: 'hidden',
|
|
17
|
-
default: 'authorizationCode',
|
|
18
|
-
},
|
|
19
11
|
{
|
|
20
12
|
displayName: 'Authorization URL',
|
|
21
13
|
name: 'authUrl',
|
|
22
14
|
type: 'hidden',
|
|
23
15
|
default: 'https://www.tiktok.com/v2/auth/authorize/',
|
|
24
16
|
},
|
|
17
|
+
{
|
|
18
|
+
displayName: 'Authentication',
|
|
19
|
+
name: 'authentication',
|
|
20
|
+
type: 'hidden',
|
|
21
|
+
default: 'body',
|
|
22
|
+
},
|
|
25
23
|
{
|
|
26
24
|
displayName: 'Access Token URL',
|
|
27
25
|
name: 'accessTokenUrl',
|
|
28
26
|
type: 'hidden',
|
|
29
27
|
default: 'https://open.tiktokapis.com/v2/oauth/token/',
|
|
30
28
|
},
|
|
29
|
+
{
|
|
30
|
+
displayName: 'Grant Type',
|
|
31
|
+
name: 'grantType',
|
|
32
|
+
type: 'hidden',
|
|
33
|
+
default: 'authorizationCode',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Client Key',
|
|
37
|
+
name: 'clientId',
|
|
38
|
+
type: 'string',
|
|
39
|
+
typeOptions: { password: true },
|
|
40
|
+
required: true,
|
|
41
|
+
default: '',
|
|
42
|
+
description: 'TikTok Client Key (client_key).',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
displayName: 'Client Secret',
|
|
46
|
+
name: 'clientSecret',
|
|
47
|
+
type: 'string',
|
|
48
|
+
typeOptions: { password: true },
|
|
49
|
+
required: true,
|
|
50
|
+
default: '',
|
|
51
|
+
description: 'TikTok Client Secret.',
|
|
52
|
+
},
|
|
31
53
|
{
|
|
32
54
|
displayName: 'Scope',
|
|
33
55
|
name: 'scope',
|
|
34
|
-
type: '
|
|
35
|
-
default: 'user.info.basic,user.info.
|
|
56
|
+
type: 'string',
|
|
57
|
+
default: 'video.upload,video.publish,user.info.basic,user.info.profile,user.info.stats',
|
|
58
|
+
description: 'Comma-separated scopes.',
|
|
36
59
|
},
|
|
37
60
|
{
|
|
38
61
|
displayName: 'Auth URI Query Parameters',
|
|
39
62
|
name: 'authQueryParameters',
|
|
40
63
|
type: 'hidden',
|
|
41
|
-
default: '',
|
|
64
|
+
default: '={{"response_type=code&client_key="+encodeURIComponent($self["clientId"])}}',
|
|
42
65
|
},
|
|
43
66
|
{
|
|
44
|
-
displayName: '
|
|
45
|
-
name: '
|
|
67
|
+
displayName: 'Auth Body Extras',
|
|
68
|
+
name: 'additionalBodyProperties',
|
|
46
69
|
type: 'hidden',
|
|
47
|
-
default: '
|
|
70
|
+
default: '={{JSON.stringify({ client_key: $self["clientId"] })}}',
|
|
48
71
|
},
|
|
49
72
|
];
|
|
50
73
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-tiktok-bigboss",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "TikTok BigBoss node for n8n - Upload, Analytics, and Search",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
@@ -47,4 +47,4 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"n8n-core": "^1.75.0"
|
|
49
49
|
}
|
|
50
|
-
}
|
|
50
|
+
}
|