feat: add folder support for workflows (fixes #70)
This commit is contained in:
80
workflows/Http/0952_HTTP_Medium_Automation_Webhook.json
Normal file
80
workflows/Http/0952_HTTP_Medium_Automation_Webhook.json
Normal file
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"name": "Medium",
|
||||
"type": "n8n-nodes-base.medium",
|
||||
"position": [
|
||||
650,
|
||||
450
|
||||
],
|
||||
"parameters": {
|
||||
"title": "={{$json[\"body\"][\"entry\"][\"Title\"]}}",
|
||||
"content": "={{$json[\"body\"][\"entry\"][\"PostContent\"]}}",
|
||||
"contentFormat": "markdown",
|
||||
"additionalFields": {}
|
||||
},
|
||||
"credentials": {
|
||||
"mediumApi": "Medium Credentials"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"name": "Webhook",
|
||||
"type": "n8n-nodes-base.webhook",
|
||||
"position": [
|
||||
450,
|
||||
300
|
||||
],
|
||||
"webhookId": "",
|
||||
"parameters": {
|
||||
"path": "",
|
||||
"options": {},
|
||||
"httpMethod": "POST",
|
||||
"authentication": "headerAuth"
|
||||
},
|
||||
"credentials": {
|
||||
"httpHeaderAuth": "Strapi Webhook Credentials"
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"name": "HTTP Request",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"position": [
|
||||
650,
|
||||
200
|
||||
],
|
||||
"parameters": {
|
||||
"url": "https://dev.to/api/articles",
|
||||
"options": {},
|
||||
"requestMethod": "POST",
|
||||
"authentication": "headerAuth",
|
||||
"jsonParameters": true,
|
||||
"bodyParametersJson": "={\n\t\"article\": {\n\t\t\"title\": \"{{$json[\"body\"][\"entry\"][\"Title\"]}}\",\n\t\t\"published\": true,\n\t\t\"body_markdown\": \"{{$json[\"body\"][\"entry\"][\"PostContent\"]}}\",\n\t\t\"tags\":[\"{{$json[\"body\"][\"entry\"][\"Tag\"]}}\"]\n\t}\n}",
|
||||
"headerParametersJson": "{\"Content-Type\": \"application/json\"}"
|
||||
},
|
||||
"credentials": {
|
||||
"httpHeaderAuth": "Dev.to Credentials"
|
||||
},
|
||||
"typeVersion": 1
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Webhook": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "HTTP Request",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Medium",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user