147 lines
2.9 KiB
JSON
Executable File
147 lines
2.9 KiB
JSON
Executable File
{
|
|
"id": 17,
|
|
"name": "contacts",
|
|
"active": false,
|
|
"nodes": [
|
|
{
|
|
"parameters": {},
|
|
"name": "Start",
|
|
"type": "n8n-nodes-base.start",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
260,
|
|
480
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "getAll",
|
|
"returnAll": true,
|
|
"fields": [
|
|
"names",
|
|
"birthdays",
|
|
"photos"
|
|
],
|
|
"options": {}
|
|
},
|
|
"name": "Google Contacts",
|
|
"type": "n8n-nodes-base.googleContacts",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
-100,
|
|
160
|
|
],
|
|
"credentials": {
|
|
"googleContactsOAuth2Api": {
|
|
"id": "7",
|
|
"name": "Google Contacts account"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "create",
|
|
"docId": "jsGnk7aGiD47orkU3q4UqG",
|
|
"tableId": "Google_contacts",
|
|
"fieldsToSend": {
|
|
"properties": [
|
|
{
|
|
"fieldId": "first_name",
|
|
"fieldValue": "={{$json[\"names\"][\"givenName\"]}}"
|
|
},
|
|
{
|
|
"fieldId": "second_name",
|
|
"fieldValue": "={{$json[\"names\"][\"familyName\"]}}"
|
|
},
|
|
{
|
|
"fieldId": "birthday",
|
|
"fieldValue": "={{$json[\"birthdays\"]}}"
|
|
},
|
|
{
|
|
"fieldId": "photo",
|
|
"fieldValue": "="
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"name": "Grist",
|
|
"type": "n8n-nodes-base.grist",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
740,
|
|
160
|
|
],
|
|
"credentials": {
|
|
"gristApi": {
|
|
"id": "21",
|
|
"name": "Grist account"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"options": {}
|
|
},
|
|
"name": "Move Binary Data",
|
|
"type": "n8n-nodes-base.moveBinaryData",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
480,
|
|
460
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "={{$json[\"photos\"][0]}}",
|
|
"responseFormat": "string",
|
|
"dataPropertyName": "contacts_photo",
|
|
"options": {}
|
|
},
|
|
"name": "HTTP Request",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
180,
|
|
0
|
|
]
|
|
}
|
|
],
|
|
"connections": {
|
|
"Google Contacts": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "HTTP Request",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Grist": {
|
|
"main": [
|
|
[]
|
|
]
|
|
},
|
|
"Move Binary Data": {
|
|
"main": [
|
|
[]
|
|
]
|
|
},
|
|
"HTTP Request": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Grist",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"createdAt": "2022-05-04T17:33:14.032Z",
|
|
"updatedAt": "2022-05-04T18:13:02.125Z",
|
|
"settings": {},
|
|
"staticData": null
|
|
} |