-
-
Save DanSnow/ca2a791c4ff844d899e7df6e76705fe9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Import RSS", | |
"nodes": [ | |
{ | |
"parameters": { | |
"path": "4d882417-d618-4559-9635-e557dc681222", | |
"formTitle": "RSS", | |
"formFields": { | |
"values": [ | |
{ | |
"fieldLabel": "URL", | |
"requiredField": true | |
} | |
] | |
}, | |
"options": {} | |
}, | |
"id": "c8b9a3f6-da38-4810-835b-07613a885eed", | |
"name": "n8n Form Trigger", | |
"type": "n8n-nodes-base.formTrigger", | |
"typeVersion": 2, | |
"position": [ | |
1120, | |
560 | |
], | |
"webhookId": "4d882417-d618-4559-9635-e557dc681222" | |
}, | |
{ | |
"parameters": { | |
"url": "={{ $json.URL }}", | |
"options": {} | |
}, | |
"id": "219553e3-d6cc-463a-8917-a0beda402e87", | |
"name": "RSS Read", | |
"type": "n8n-nodes-base.rssFeedRead", | |
"typeVersion": 1, | |
"position": [ | |
1340, | |
560 | |
] | |
}, | |
{ | |
"parameters": { | |
"operation": "toFile", | |
"fileFormat": "csv", | |
"options": {} | |
}, | |
"id": "a45043f6-5fd4-42ad-ade3-313b006dbaef", | |
"name": "Spreadsheet File", | |
"type": "n8n-nodes-base.spreadsheetFile", | |
"typeVersion": 2, | |
"position": [ | |
1760, | |
560 | |
] | |
}, | |
{ | |
"parameters": { | |
"fields": { | |
"values": [ | |
{ | |
"name": "url", | |
"stringValue": "={{ $json.link }}" | |
}, | |
{ | |
"name": "state" | |
}, | |
{ | |
"name": "labels", | |
"stringValue": "[RSS]" | |
}, | |
{ | |
"name": "saved_at" | |
}, | |
{ | |
"name": "published_at" | |
} | |
] | |
}, | |
"include": "selected", | |
"options": {} | |
}, | |
"id": "df6dee36-14fb-440b-89ae-7a37b2126ebf", | |
"name": "Edit Fields", | |
"type": "n8n-nodes-base.set", | |
"typeVersion": 3.2, | |
"position": [ | |
1560, | |
560 | |
] | |
}, | |
{ | |
"parameters": { | |
"authentication": "headerAuth", | |
"endpoint": "https://api-prod.omnivore.app/api/graphql", | |
"requestFormat": "json", | |
"query": "mutation UploadImportFile( $type: UploadImportFileType! $contentType: String! ) { uploadImportFile(type: $type, contentType: $contentType) { ... on UploadImportFileError { errorCodes } ... on UploadImportFileSuccess { uploadSignedUrl } } }", | |
"variables": "={{ ({type: \"URL_LIST\", contentType: \"text/csv\"}) }}", | |
"operationName": "UploadImportFile" | |
}, | |
"id": "07667184-f92d-4e8d-8ff2-2a5efe9db21e", | |
"name": "GraphQL", | |
"type": "n8n-nodes-base.graphql", | |
"typeVersion": 1, | |
"position": [ | |
1980, | |
440 | |
], | |
"credentials": { | |
"httpHeaderAuth": { | |
"id": "gv31mx2R6PiQJ2Z4", | |
"name": "Omnivore API token" | |
} | |
} | |
}, | |
{ | |
"parameters": { | |
"mode": "combine", | |
"combinationMode": "multiplex", | |
"options": { | |
"clashHandling": { | |
"values": { | |
"resolveClash": "addSuffix" | |
} | |
} | |
} | |
}, | |
"id": "bcb64fe7-ea95-46fc-bd1e-f1d618c087b5", | |
"name": "Merge", | |
"type": "n8n-nodes-base.merge", | |
"typeVersion": 2.1, | |
"position": [ | |
2180, | |
540 | |
] | |
}, | |
{ | |
"parameters": { | |
"method": "PUT", | |
"url": "= {{ $json.data_1.uploadImportFile.uploadSignedUrl }}", | |
"sendHeaders": true, | |
"headerParameters": { | |
"parameters": [ | |
{ | |
"name": "content-type", | |
"value": "text/csv" | |
} | |
] | |
}, | |
"sendBody": true, | |
"contentType": "binaryData", | |
"inputDataFieldName": "data", | |
"options": {} | |
}, | |
"id": "bd8abdc7-3bff-4a3c-b98d-ba3425b0c933", | |
"name": "HTTP Request", | |
"type": "n8n-nodes-base.httpRequest", | |
"typeVersion": 4.1, | |
"position": [ | |
2460, | |
540 | |
] | |
} | |
], | |
"pinData": {}, | |
"connections": { | |
"n8n Form Trigger": { | |
"main": [ | |
[ | |
{ | |
"node": "RSS Read", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"RSS Read": { | |
"main": [ | |
[ | |
{ | |
"node": "Edit Fields", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Edit Fields": { | |
"main": [ | |
[ | |
{ | |
"node": "Spreadsheet File", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Spreadsheet File": { | |
"main": [ | |
[ | |
{ | |
"node": "GraphQL", | |
"type": "main", | |
"index": 0 | |
}, | |
{ | |
"node": "Merge", | |
"type": "main", | |
"index": 1 | |
} | |
] | |
] | |
}, | |
"GraphQL": { | |
"main": [ | |
[ | |
{ | |
"node": "Merge", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
}, | |
"Merge": { | |
"main": [ | |
[ | |
{ | |
"node": "HTTP Request", | |
"type": "main", | |
"index": 0 | |
} | |
] | |
] | |
} | |
}, | |
"active": true, | |
"settings": { | |
"executionOrder": "v1" | |
}, | |
"versionId": "1c853c90-e056-498e-9b5b-c4dbd3c5cf77", | |
"id": "cjXSGZCMFEIvxtKt", | |
"meta": { | |
"instanceId": "8fe3a7e032dd214d81a3a219c9e4c96146e1b43e4782f567ee8a0c93f69900c9" | |
}, | |
"tags": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment