-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathtwitter_interaction_workflow.json
More file actions
75 lines (75 loc) · 1.89 KB
/
twitter_interaction_workflow.json
File metadata and controls
75 lines (75 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"name": "Twitter Interaction Workflow",
"description": "Search for a user, like and retweet their latest tweet",
"nodes": [
{
"id": "2",
"type": "automationStep",
"position": { "x": 250, "y": 200 },
"data": {
"step": {
"id": "2",
"type": "twitterSearchTweets",
"description": "Search for tweets from user",
"searchQuery": "from:elonmusk",
"apiKey": "YOUR_API_KEY",
"apiSecret": "YOUR_API_SECRET",
"accessToken": "YOUR_ACCESS_TOKEN",
"accessSecret": "YOUR_ACCESS_SECRET",
"maxResults": 1,
"storeKey": "latestTweet"
}
}
},
{
"id": "3",
"type": "automationStep",
"position": { "x": 250, "y": 350 },
"data": {
"step": {
"id": "3",
"type": "twitterLikeTweet",
"description": "Like the tweet",
"tweetId": "{{latestTweet[0].id}}",
"apiKey": "YOUR_API_KEY",
"apiSecret": "YOUR_API_SECRET",
"accessToken": "YOUR_ACCESS_TOKEN",
"accessSecret": "YOUR_ACCESS_SECRET",
"storeKey": "likeResult"
}
}
},
{
"id": "4",
"type": "automationStep",
"position": { "x": 250, "y": 500 },
"data": {
"step": {
"id": "4",
"type": "twitterRetweet",
"description": "Retweet the tweet",
"tweetId": "{{latestTweet[0].id}}",
"apiKey": "YOUR_API_KEY",
"apiSecret": "YOUR_API_SECRET",
"accessToken": "YOUR_ACCESS_TOKEN",
"accessSecret": "YOUR_ACCESS_SECRET",
"storeKey": "retweetResult"
}
}
}
],
"edges": [
{
"id": "e2-3",
"source": "2",
"target": "3",
"type": "smoothstep"
},
{
"id": "e2-4",
"source": "3",
"target": "4",
"type": "smoothstep"
}
]
}