-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMcd79TwitterSearchCollabTalk.json
99 lines (99 loc) · 3.95 KB
/
Mcd79TwitterSearchCollabTalk.json
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"For_each": {
"actions": {
"HTTP": {
"inputs": {
"authentication": {
"audience": "https://graph.microsoft.com",
"clientId": "",
"secret": "",
"tenant": "",
"type": "ActiveDirectoryOAuth"
},
"body": {
"acl": [
{
"accessType": "grant",
"identitySource": "azureActiveDirectory",
"type": "everyone",
"value": ""
}
],
"content": {
"type": "text",
"value": "@{items('For_each')['TweetText']}"
},
"properties": {
"TweetByFullName": "@{items('For_each')?['UserDetails']?['FullName']}",
"TweetId": "@{items('For_each')?['TweetId']}",
"TweetText": "@{items('For_each')['TweetText']}",
"TweetedByUserName": "@{items('For_each')?['UserDetails']?['FullName']}"
},
"type": "microsoft.graph.externalItem"
},
"method": "PUT",
"uri": "https://graph.microsoft.com/beta/external/connections/Mcd79TwitterSearchConnector/items/@{items('For_each')?['TweetId']}"
},
"runAfter": {},
"type": "Http"
}
},
"foreach": "@body('Search_tweets')",
"runAfter": {
"Search_tweets": [
"Succeeded"
]
},
"type": "Foreach"
},
"Search_tweets": {
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['twitter']['connectionId']"
}
},
"method": "get",
"path": "/searchtweets",
"queries": {
"maxResults": 99,
"searchQuery": "#CollabTalk"
}
},
"runAfter": {},
"type": "ApiConnection"
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
}
},
"triggers": {
"manual": {
"inputs": {
"schema": {}
},
"kind": "Http",
"type": "Request"
}
}
},
"parameters": {
"$connections": {
"value": {
"twitter": {
"connectionId": "/subscriptions/6951ada6-6409-48d7-8199-f09893b21c48/resourceGroups/Mcd79TwitterSearchConnector/providers/Microsoft.Web/connections/twitter",
"connectionName": "twitter",
"id": "/subscriptions/6951ada6-6409-48d7-8199-f09893b21c48/providers/Microsoft.Web/locations/uksouth/managedApis/twitter"
}
}
}
}
}