Files
n8n/flows/61.json

590 lines
13 KiB
JSON

{
"id": 61,
"name": "planka",
"active": false,
"nodes": [
{
"parameters": {},
"id": "5ab4b9d7-8793-4bc0-b5cb-33c90a0b9636",
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
-600,
0
]
},
{
"parameters": {
"requestMethod": "POST",
"url": "https://vikunja.cynic.club/api/v1/login",
"jsonParameters": true,
"options": {
"bodyContentType": "json"
},
"bodyParametersJson": "{\n \"long_token\": true,\n \"password\": \"nfgxtyrb\",\n \"username\": \"nia\"\n}"
},
"id": "61c72e9d-9951-4b51-b652-ca8ca8ccad02",
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
260,
440
]
},
{
"parameters": {
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"url": "https://vikunja.cynic.club/api/v1/tasks/all",
"jsonParameters": true,
"options": {}
},
"id": "c52b7143-60a0-4f91-bfb6-27d051b25eb3",
"name": "HTTP Request1",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
680,
460
],
"credentials": {
"httpHeaderAuth": {
"id": "41",
"name": "vikunja"
}
}
},
{
"parameters": {
"fieldToSplitOut": "id",
"options": {}
},
"id": "c59d88d4-6378-4f39-9d12-4d56e4094f54",
"name": "Item Lists",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
920,
460
]
},
{
"parameters": {
"requestMethod": "POST",
"url": "http://10.100.10.10:3010/api/access-tokens",
"options": {},
"queryParametersUi": {
"parameter": [
{
"name": "emailOrUsername",
"value": "nia"
},
{
"name": "password",
"value": "Nfgxtyrb2007"
}
]
}
},
"id": "bd226b6c-18ba-4194-80ae-918dc352de35",
"name": "HTTP Request2",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
580,
260
]
},
{
"parameters": {
"url": "http://10.100.10.10:3010/api/projects",
"options": {},
"headerParametersUi": {
"parameter": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "=Bearer {{$json[\"item\"]}}"
}
]
},
"queryParametersUi": {
"parameter": [
{}
]
}
},
"id": "3c11883e-0424-43e2-9a65-dca6b0cf5bf3",
"name": "HTTP Request3",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
740,
60
]
},
{
"parameters": {
"url": "http://10.100.10.10:3010/api/notifications",
"options": {},
"headerParametersUi": {
"parameter": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "=Bearer {{$json[\"item\"]}}"
}
]
},
"queryParametersUi": {
"parameter": [
{}
]
}
},
"id": "bdc0217a-cefa-4828-bd1e-599b5e6122bd",
"name": "HTTP Request4",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
740,
200
]
},
{
"parameters": {
"url": "http://10.100.10.10:3010/api/boards/798529250595439764/cards",
"options": {},
"headerParametersUi": {
"parameter": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "=Bearer {{$json[\"item\"]}}"
}
]
},
"queryParametersUi": {
"parameter": [
{}
]
}
},
"id": "d887bebf-a98c-47ec-b34f-cc8ddc6980f1",
"name": "HTTP Request6",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
940,
-100
]
},
{
"parameters": {
"requestMethod": "POST",
"url": "http://10.100.10.10:3010/api/boards/794681555959153694/cards",
"options": {},
"bodyParametersUi": {
"parameter": [
{
"name": "name",
"value": "sdfsdf"
},
{
"name": "listId",
"value": "794681723362214945"
},
{
"name": "position",
"value": "0"
},
{
"name": "description",
"value": "erterterterterterterte"
},
{
"name": "dueDate",
"value": "2022-09-05T11:19:25.000Z"
},
{
"name": "timer.total",
"value": "600"
}
]
},
"headerParametersUi": {
"parameter": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "=Bearer {{$json[\"item\"]}}"
}
]
},
"queryParametersUi": {
"parameter": [
{}
]
}
},
"id": "323480f1-c545-4a5a-ab3e-d31fa9563d1e",
"name": "HTTP Request7",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
940,
-260
]
},
{
"parameters": {
"resource": "message",
"operation": "getAll",
"returnAll": true,
"additionalFields": {
"q": "from:a.plaunov@pet-eu.com !label:Полимаш"
}
},
"id": "664e18ae-5505-44bc-be41-ccaa7669acdd",
"name": "Gmail",
"type": "n8n-nodes-base.gmail",
"typeVersion": 1,
"position": [
-320,
-20
],
"credentials": {
"gmailOAuth2": {
"id": "23",
"name": "Gmail account"
}
}
},
{
"parameters": {
"resource": "messageLabel",
"messageId": "={{ $node[\"Gmail\"].json[\"id\"] }}",
"labelIds": [
"Label_6338182724204393138"
]
},
"id": "f5995624-4a30-4e8a-8ffa-0c6be8135f88",
"name": "Gmail1",
"type": "n8n-nodes-base.gmail",
"typeVersion": 1,
"position": [
520,
-160
],
"credentials": {
"gmailOAuth2": {
"id": "23",
"name": "Gmail account"
}
}
},
{
"parameters": {
"chatId": "-320861541",
"text": "=🍺 <b>Новое задание</b> 🍺\n{{$json[\"subject\"]}}",
"additionalFields": {
"disable_web_page_preview": false,
"parse_mode": "HTML"
}
},
"id": "f4f4c61d-bf39-4da5-886b-30584ec13797",
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1,
"position": [
-80,
240
],
"credentials": {
"telegramApi": {
"id": "45",
"name": "pet"
}
}
},
{
"parameters": {
"requestMethod": "POST",
"url": "http://10.100.10.10:3010/api/access-tokens",
"options": {},
"queryParametersUi": {
"parameter": [
{
"name": "emailOrUsername",
"value": "nia"
},
{
"name": "password",
"value": "Nfgxtyrb2007"
}
]
}
},
"id": "886e4c6b-9f43-4140-8d97-85a9ffe04bfd",
"name": "HTTP Request5",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
-20,
-20
]
},
{
"parameters": {
"requestMethod": "POST",
"url": "http://10.100.10.10:3010/api/boards/794681555959153694/cards",
"options": {},
"bodyParametersUi": {
"parameter": [
{
"name": "name",
"value": "={{$node[\"Gmail\"].json[\"subject\"]}}"
},
{
"name": "listId",
"value": "794681723362214945"
},
{
"name": "position",
"value": "0"
},
{
"name": "description",
"value": "={{$node[\"Gmail\"].json[\"text\"]}}"
},
{
"name": "dueDate",
"value": "={{$now}}"
}
]
},
"headerParametersUi": {
"parameter": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "=Bearer {{$json[\"item\"]}}"
}
]
},
"queryParametersUi": {
"parameter": [
{}
]
}
},
"id": "016920ab-8519-498c-88e2-b23183eaddeb",
"name": "HTTP Request8",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
260,
80
],
"disabled": true
},
{
"parameters": {
"requestMethod": "POST",
"url": "http://10.100.10.10:3010/api/boards/798529250595439764/cards",
"options": {},
"bodyParametersUi": {
"parameter": [
{
"name": "name",
"value": "={{$node[\"Gmail\"].json[\"subject\"]}}"
},
{
"name": "listId",
"value": "798529350260491414"
},
{
"name": "position",
"value": "0"
},
{
"name": "description",
"value": "={{$node[\"Gmail\"].json[\"text\"]}}"
},
{
"name": "dueDate",
"value": "={{$now}}"
}
]
},
"headerParametersUi": {
"parameter": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Authorization",
"value": "=Bearer {{$json[\"item\"]}}"
}
]
},
"queryParametersUi": {
"parameter": [
{}
]
}
},
"id": "028151a5-6611-4c1d-915e-d35fc34bf13e",
"name": "HTTP Request9",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
240,
-160
]
},
{
"parameters": {
"requestMethod": "POST",
"url": "https://vikunja.cynic.club/api/v1/login",
"options": {},
"queryParametersUi": {
"parameter": [
{
"name": "long_token",
"value": "true"
},
{
"name": "password",
"value": "nfgxtyrb"
},
{
"name": "username",
"value": "nia"
}
]
}
},
"id": "deb7c07f-fbcc-4640-96a4-1e16195daf7d",
"name": "HTTP Request10",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
-340,
520
]
}
],
"connections": {
"Start": {
"main": [
[
{
"node": "Gmail",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "HTTP Request1",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request2": {
"main": [
[
{
"node": "HTTP Request3",
"type": "main",
"index": 0
},
{
"node": "HTTP Request4",
"type": "main",
"index": 0
},
{
"node": "HTTP Request6",
"type": "main",
"index": 0
},
{
"node": "HTTP Request7",
"type": "main",
"index": 0
}
]
]
},
"Gmail": {
"main": [
[
{
"node": "HTTP Request5",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request5": {
"main": [
[
{
"node": "HTTP Request8",
"type": "main",
"index": 0
},
{
"node": "HTTP Request9",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request9": {
"main": [
[
{
"node": "Gmail1",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-08-24T17:54:11.748Z",
"updatedAt": "2022-09-06T08:58:38.847Z",
"settings": {},
"staticData": null,
"pinData": {},
"tags": []
}