You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Creates a new draft in Typefully. [See the documentation](https://support.typefully.com/en/articles/8718287-typefully-api#h_df59629cbf)",
7
+
version: "0.0.1",
8
+
type: "action",
9
+
props: {
10
+
typefully,
11
+
content: {
12
+
propDefinition: [
13
+
typefully,
14
+
"content",
15
+
],
16
+
},
17
+
threadify: {
18
+
propDefinition: [
19
+
typefully,
20
+
"threadify",
21
+
],
22
+
optional: true,
23
+
},
24
+
share: {
25
+
propDefinition: [
26
+
typefully,
27
+
"share",
28
+
],
29
+
optional: true,
30
+
},
31
+
autoRetweetEnabled: {
32
+
propDefinition: [
33
+
typefully,
34
+
"autoRetweetEnabled",
35
+
],
36
+
optional: true,
37
+
},
38
+
autoPlugEnabled: {
39
+
propDefinition: [
40
+
typefully,
41
+
"autoPlugEnabled",
42
+
],
43
+
optional: true,
44
+
},
45
+
},
46
+
asyncrun({ $ }){
47
+
constresponse=awaitthis.typefully.createDraft({
48
+
$,
49
+
data: {
50
+
content: this.content,
51
+
threadify: this.threadify,
52
+
share: this.share,
53
+
auto_retweet_enabled: this.autoRetweetEnabled,
54
+
auto_plug_enabled: this.autoPlugEnabled,
55
+
},
56
+
});
57
+
58
+
$.export("$summary",`Created draft with ID: ${response.id}.`);
description: "Schedules an existing draft for publication in the next available time slot. [See the documentation](https://support.typefully.com/en/articles/8718287-typefully-api#h_df59629cbf)",
7
+
version: "0.0.1",
8
+
type: "action",
9
+
props: {
10
+
typefully,
11
+
content: {
12
+
propDefinition: [
13
+
typefully,
14
+
"content",
15
+
],
16
+
},
17
+
threadify: {
18
+
propDefinition: [
19
+
typefully,
20
+
"threadify",
21
+
],
22
+
optional: true,
23
+
},
24
+
share: {
25
+
propDefinition: [
26
+
typefully,
27
+
"share",
28
+
],
29
+
optional: true,
30
+
},
31
+
autoRetweetEnabled: {
32
+
propDefinition: [
33
+
typefully,
34
+
"autoRetweetEnabled",
35
+
],
36
+
optional: true,
37
+
},
38
+
autoPlugEnabled: {
39
+
propDefinition: [
40
+
typefully,
41
+
"autoPlugEnabled",
42
+
],
43
+
optional: true,
44
+
},
45
+
},
46
+
asyncrun({ $ }){
47
+
constresponse=awaitthis.typefully.createDraft({
48
+
$,
49
+
data: {
50
+
"content": this.content,
51
+
"threadify": this.threadify,
52
+
"share": this.share,
53
+
"schedule-date": "next-free-slot",
54
+
"auto_retweet_enabled": this.autoRetweetEnabled,
55
+
"auto_plug_enabled": this.autoPlugEnabled,
56
+
},
57
+
});
58
+
59
+
$.export("$summary",`Draft scheduled successfully with ID: ${response.id}.`);
description: "Schedules a draft for publication at a specific date and time. [See the documentation](https://support.typefully.com/en/articles/8718287-typefully-api#h_df59629cbf)",
7
+
version: "0.0.1",
8
+
type: "action",
9
+
props: {
10
+
typefully,
11
+
content: {
12
+
propDefinition: [
13
+
typefully,
14
+
"content",
15
+
],
16
+
},
17
+
threadify: {
18
+
propDefinition: [
19
+
typefully,
20
+
"threadify",
21
+
],
22
+
optional: true,
23
+
},
24
+
share: {
25
+
propDefinition: [
26
+
typefully,
27
+
"share",
28
+
],
29
+
optional: true,
30
+
},
31
+
scheduleDate: {
32
+
propDefinition: [
33
+
typefully,
34
+
"scheduleDate",
35
+
],
36
+
},
37
+
autoRetweetEnabled: {
38
+
propDefinition: [
39
+
typefully,
40
+
"autoRetweetEnabled",
41
+
],
42
+
optional: true,
43
+
},
44
+
autoPlugEnabled: {
45
+
propDefinition: [
46
+
typefully,
47
+
"autoPlugEnabled",
48
+
],
49
+
optional: true,
50
+
},
51
+
},
52
+
asyncrun({ $ }){
53
+
constresponse=awaitthis.typefully.createDraft({
54
+
$,
55
+
data: {
56
+
"content": this.content,
57
+
"threadify": this.threadify,
58
+
"share": this.share,
59
+
"schedule-date": this.scheduleDate,
60
+
"auto_retweet_enabled": this.autoRetweetEnabled,
61
+
"auto_plug_enabled": this.autoPlugEnabled,
62
+
},
63
+
});
64
+
65
+
$.export("$summary",`Draft scheduled successfully with ID: ${response.id}.`);
0 commit comments