2023-05-01 16:00:21 +00:00
|
|
|
{
|
2023-05-04 04:00:21 +00:00
|
|
|
"active": true,
|
2023-05-01 16:00:21 +00:00
|
|
|
"connections": {
|
|
|
|
"Email suchen": {
|
|
|
|
"main": [
|
|
|
|
[
|
|
|
|
{
|
2023-05-03 16:00:21 +00:00
|
|
|
"node": "Kontakt gefunden?",
|
2023-05-01 16:00:21 +00:00
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
2023-05-02 04:00:24 +00:00
|
|
|
"Webhook1": {
|
|
|
|
"main": [
|
2023-05-01 16:00:21 +00:00
|
|
|
[
|
|
|
|
{
|
2023-05-09 10:00:32 +00:00
|
|
|
"node": "Move Binary Data",
|
2023-05-01 16:00:21 +00:00
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
2023-05-02 04:00:24 +00:00
|
|
|
"Email vorhanden?": {
|
2023-05-01 16:00:21 +00:00
|
|
|
"main": [
|
|
|
|
[
|
|
|
|
{
|
2023-05-02 04:00:24 +00:00
|
|
|
"node": "Segment hinzufügen",
|
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"node": "Aus Segment entfernen",
|
2023-05-01 16:00:21 +00:00
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
2023-05-02 04:00:24 +00:00
|
|
|
"GraphQL": {
|
2023-05-01 16:00:21 +00:00
|
|
|
"main": [
|
|
|
|
[
|
|
|
|
{
|
2023-05-02 04:00:24 +00:00
|
|
|
"node": "IF1",
|
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"IF1": {
|
|
|
|
"main": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"node": "Abonniert",
|
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"node": "GraphQL2",
|
2023-05-01 16:00:21 +00:00
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
2023-05-03 16:00:21 +00:00
|
|
|
},
|
|
|
|
"Mautic": {
|
|
|
|
"main": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"node": "Email vorhanden?",
|
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"Kontakt gefunden?": {
|
|
|
|
"main": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"node": "Email vorhanden?",
|
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"node": "Marketing Einwilligung?",
|
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"Marketing Einwilligung?": {
|
|
|
|
"main": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"node": "Mautic",
|
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"node": "No Operation, do nothing",
|
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
2023-05-06 22:00:32 +00:00
|
|
|
},
|
|
|
|
"Shopify Trigger": {
|
|
|
|
"main": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"node": "Email suchen",
|
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
2023-05-09 10:00:32 +00:00
|
|
|
},
|
|
|
|
"Crypto": {
|
|
|
|
"main": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"node": "IF",
|
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"IF": {
|
|
|
|
"main": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"node": "GraphQL",
|
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"node": "No Operation, do nothing1",
|
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"Move Binary Data": {
|
|
|
|
"main": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"node": "Crypto",
|
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
2023-05-01 16:00:21 +00:00
|
|
|
}
|
|
|
|
},
|
2023-08-25 09:53:30 +00:00
|
|
|
"createdAt": "2023-08-25T09:30:15.825Z",
|
|
|
|
"id": "4",
|
2023-05-01 16:00:21 +00:00
|
|
|
"name": "Shopify <--> Mautic",
|
|
|
|
"nodes": [
|
|
|
|
{
|
|
|
|
"parameters": {
|
|
|
|
"authentication": "oAuth2",
|
|
|
|
"operation": "getAll",
|
|
|
|
"limit": 1,
|
|
|
|
"options": {
|
2023-05-08 10:00:29 +00:00
|
|
|
"search": "={{ $json.email }}"
|
2023-05-01 16:00:21 +00:00
|
|
|
}
|
|
|
|
},
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "2ab62e7d-70aa-444e-a4a3-d5b6f4db23e4",
|
2023-05-01 16:00:21 +00:00
|
|
|
"name": "Email suchen",
|
|
|
|
"type": "n8n-nodes-base.mautic",
|
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-08-25 09:53:30 +00:00
|
|
|
-360,
|
|
|
|
300
|
2023-05-01 16:00:21 +00:00
|
|
|
],
|
2023-05-03 16:00:21 +00:00
|
|
|
"alwaysOutputData": true,
|
2023-05-01 16:00:21 +00:00
|
|
|
"credentials": {
|
|
|
|
"mauticOAuth2Api": {
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "6",
|
2023-05-01 16:00:21 +00:00
|
|
|
"name": "Mautic account"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"parameters": {
|
|
|
|
"authentication": "oAuth2",
|
|
|
|
"resource": "contactSegment",
|
|
|
|
"operation": "remove",
|
|
|
|
"contactId": "={{ $json.id }}",
|
|
|
|
"segmentId": 1
|
|
|
|
},
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "830fd450-d149-47b1-afd0-5999ecdcdf54",
|
2023-05-01 16:00:21 +00:00
|
|
|
"name": "Aus Segment entfernen",
|
|
|
|
"type": "n8n-nodes-base.mautic",
|
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-08-25 09:53:30 +00:00
|
|
|
780,
|
|
|
|
400
|
2023-05-01 16:00:21 +00:00
|
|
|
],
|
|
|
|
"credentials": {
|
|
|
|
"mauticOAuth2Api": {
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "6",
|
2023-05-01 16:00:21 +00:00
|
|
|
"name": "Mautic account"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"parameters": {
|
|
|
|
"authentication": "oAuth2",
|
|
|
|
"resource": "contactSegment",
|
|
|
|
"contactId": "={{ $json.id }}",
|
|
|
|
"segmentId": 1
|
|
|
|
},
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "a1f319db-2e89-42d7-a018-a5f008e918dc",
|
2023-05-01 16:00:21 +00:00
|
|
|
"name": "Segment hinzufügen",
|
|
|
|
"type": "n8n-nodes-base.mautic",
|
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-08-25 09:53:30 +00:00
|
|
|
780,
|
|
|
|
160
|
2023-05-01 16:00:21 +00:00
|
|
|
],
|
|
|
|
"credentials": {
|
|
|
|
"mauticOAuth2Api": {
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "6",
|
2023-05-01 16:00:21 +00:00
|
|
|
"name": "Mautic account"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"parameters": {
|
|
|
|
"httpMethod": "POST",
|
|
|
|
"path": "c83eb6ce-40dd-418c-952a-ed62a051a00b",
|
2023-05-09 10:00:32 +00:00
|
|
|
"options": {
|
|
|
|
"rawBody": true
|
|
|
|
}
|
2023-05-01 16:00:21 +00:00
|
|
|
},
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "98653876-b909-4416-a8ee-aa5857078b48",
|
2023-05-01 16:00:21 +00:00
|
|
|
"name": "Webhook1",
|
|
|
|
"type": "n8n-nodes-base.webhook",
|
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-08-25 09:53:30 +00:00
|
|
|
-560,
|
|
|
|
1140
|
2023-05-01 16:00:21 +00:00
|
|
|
],
|
|
|
|
"webhookId": "c83eb6ce-40dd-418c-952a-ed62a051a00b"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"parameters": {
|
|
|
|
"authentication": "headerAuth",
|
2023-07-03 22:00:07 +00:00
|
|
|
"endpoint": "https://lana-kk.myshopify.com/admin/api/2023-04/graphql.json",
|
2023-05-09 10:00:32 +00:00
|
|
|
"query": "={\n customers(first: 1, query: \"email:'{{ $json[\"body\"][\"mautic.lead_channel_subscription_changed\"][0][\"contact\"][\"fields\"][\"core\"][\"email\"][\"value\"] }}'\" ) {\n edges {\n node {\n id\n email\n marketingOptInLevel\n }\n }\n }\n}"
|
2023-05-01 16:00:21 +00:00
|
|
|
},
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "08ea065c-cc8d-4020-89c0-0aa35d99a373",
|
2023-05-01 16:00:21 +00:00
|
|
|
"name": "GraphQL",
|
|
|
|
"type": "n8n-nodes-base.graphql",
|
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-08-25 09:53:30 +00:00
|
|
|
340,
|
|
|
|
1000
|
2023-05-01 16:00:21 +00:00
|
|
|
],
|
|
|
|
"credentials": {
|
|
|
|
"httpHeaderAuth": {
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "5",
|
2023-07-03 22:00:07 +00:00
|
|
|
"name": "lanakk.com - Shopify"
|
2023-05-01 16:00:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"parameters": {
|
|
|
|
"conditions": {
|
2023-05-09 10:00:32 +00:00
|
|
|
"string": [
|
2023-05-01 16:00:21 +00:00
|
|
|
{
|
2023-05-10 10:00:30 +00:00
|
|
|
"value1": "= {{ $node.Webhook1.json.body[\"mautic.lead_channel_subscription_changed\"][0].new_status }}",
|
|
|
|
"operation": "regex",
|
|
|
|
"value2": "=contactable"
|
2023-05-01 16:00:21 +00:00
|
|
|
}
|
|
|
|
]
|
2023-05-10 10:00:30 +00:00
|
|
|
},
|
|
|
|
"combineOperation": "any"
|
2023-05-01 16:00:21 +00:00
|
|
|
},
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "107bae94-57b1-4991-a8eb-41e85e5f85af",
|
2023-05-01 16:00:21 +00:00
|
|
|
"name": "IF1",
|
|
|
|
"type": "n8n-nodes-base.if",
|
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-08-25 09:53:30 +00:00
|
|
|
580,
|
|
|
|
1000
|
2023-05-01 16:00:21 +00:00
|
|
|
]
|
|
|
|
},
|
2023-05-02 04:00:24 +00:00
|
|
|
{
|
|
|
|
"parameters": {
|
|
|
|
"conditions": {
|
|
|
|
"boolean": [
|
|
|
|
{
|
2023-05-06 22:00:32 +00:00
|
|
|
"value1": "={{ $node[\"Shopify Trigger\"].json[\"accepts_marketing\"] }}",
|
2023-05-02 04:00:24 +00:00
|
|
|
"value2": "={{ true }}"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "b83cfae2-25dc-4ed6-8133-73ee7bb94b29",
|
2023-05-02 04:00:24 +00:00
|
|
|
"name": "Email vorhanden?",
|
|
|
|
"type": "n8n-nodes-base.if",
|
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-08-25 09:53:30 +00:00
|
|
|
540,
|
|
|
|
280
|
2023-05-02 04:00:24 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"parameters": {
|
|
|
|
"authentication": "headerAuth",
|
|
|
|
"endpoint": "https://lana-kk.myshopify.com/admin/api/2023-04/graphql.json",
|
|
|
|
"requestFormat": "json",
|
|
|
|
"query": "=mutation customerEmailMarketingConsentUpdate($input: CustomerEmailMarketingConsentUpdateInput!) {\n customerEmailMarketingConsentUpdate(input: $input) {\n customer {\n id\n }\n userErrors {\n field\n message\n }\n }\n}",
|
2023-05-15 10:00:30 +00:00
|
|
|
"variables": "={ \"input\": { \"customerId\": \"{{ $node[\"GraphQL\"].json[\"data\"][\"customers\"][\"edges\"][0][\"node\"][\"id\"] }}\", \"emailMarketingConsent\": { \"consentUpdatedAt\": \"{{ $now }}\", \"marketingOptInLevel\": \"SINGLE_OPT_IN\", \"marketingState\": \"UNSUBSCRIBED\" } }}"
|
2023-05-02 04:00:24 +00:00
|
|
|
},
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "4815d1b0-2455-4bb0-8dd3-717b216e60a1",
|
2023-05-02 04:00:24 +00:00
|
|
|
"name": "GraphQL2",
|
|
|
|
"type": "n8n-nodes-base.graphql",
|
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-08-25 09:53:30 +00:00
|
|
|
820,
|
|
|
|
1140
|
2023-05-02 04:00:24 +00:00
|
|
|
],
|
|
|
|
"credentials": {
|
|
|
|
"httpHeaderAuth": {
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "5",
|
2023-07-03 22:00:07 +00:00
|
|
|
"name": "lanakk.com - Shopify"
|
2023-05-02 04:00:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"parameters": {
|
|
|
|
"authentication": "headerAuth",
|
|
|
|
"endpoint": "https://lana-kk.myshopify.com/admin/api/2023-04/graphql.json",
|
|
|
|
"requestFormat": "json",
|
|
|
|
"query": "=mutation customerEmailMarketingConsentUpdate($input: CustomerEmailMarketingConsentUpdateInput!) {\n customerEmailMarketingConsentUpdate(input: $input) {\n customer {\n id\n }\n userErrors {\n field\n message\n }\n }\n}",
|
2023-05-15 10:00:30 +00:00
|
|
|
"variables": "={ \"input\": { \"customerId\": \"{{ $node[\"GraphQL\"].json[\"data\"][\"customers\"][\"edges\"][0][\"node\"][\"id\"] }}\", \"emailMarketingConsent\": { \"consentUpdatedAt\": \"{{ $now }}\", \"marketingOptInLevel\": \"SINGLE_OPT_IN\", \"marketingState\": \"SUBSCRIBED\" } }}"
|
2023-05-02 04:00:24 +00:00
|
|
|
},
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "52d46a11-f459-449c-b93e-2890a94b1e65",
|
2023-05-02 04:00:24 +00:00
|
|
|
"name": "Abonniert",
|
|
|
|
"type": "n8n-nodes-base.graphql",
|
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-08-25 09:53:30 +00:00
|
|
|
820,
|
|
|
|
860
|
2023-05-02 04:00:24 +00:00
|
|
|
],
|
|
|
|
"credentials": {
|
|
|
|
"httpHeaderAuth": {
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "5",
|
2023-07-03 22:00:07 +00:00
|
|
|
"name": "lanakk.com - Shopify"
|
2023-05-02 04:00:24 +00:00
|
|
|
}
|
|
|
|
}
|
2023-05-03 16:00:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"parameters": {
|
|
|
|
"authentication": "oAuth2",
|
2023-05-04 04:00:21 +00:00
|
|
|
"email": "={{ $node[\"Webhook\"].json[\"body\"][\"email\"] }}",
|
2023-05-03 16:00:21 +00:00
|
|
|
"firstName": "={{ $node[\"Webhook\"].json[\"body\"][\"first_name\"] }}",
|
|
|
|
"lastName": "={{ $node[\"Webhook\"].json[\"body\"][\"last_name\"] }}",
|
2023-05-04 04:00:21 +00:00
|
|
|
"company": "=",
|
2023-05-03 16:00:21 +00:00
|
|
|
"additionalFields": {},
|
|
|
|
"options": {}
|
|
|
|
},
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "cb999a33-6849-4e36-8141-b5e80c19b175",
|
2023-05-03 16:00:21 +00:00
|
|
|
"name": "Mautic",
|
|
|
|
"type": "n8n-nodes-base.mautic",
|
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-08-25 09:53:30 +00:00
|
|
|
340,
|
|
|
|
440
|
2023-05-03 16:00:21 +00:00
|
|
|
],
|
|
|
|
"credentials": {
|
|
|
|
"mauticOAuth2Api": {
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "6",
|
2023-05-03 16:00:21 +00:00
|
|
|
"name": "Mautic account"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"parameters": {},
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "614139b6-28fa-4983-9732-9cfaad82067a",
|
2023-05-03 16:00:21 +00:00
|
|
|
"name": "No Operation, do nothing",
|
|
|
|
"type": "n8n-nodes-base.noOp",
|
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-08-25 09:53:30 +00:00
|
|
|
340,
|
|
|
|
640
|
2023-05-03 16:00:21 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"parameters": {
|
|
|
|
"conditions": {
|
|
|
|
"string": [
|
|
|
|
{
|
|
|
|
"value1": "={{ $json.id }}",
|
|
|
|
"operation": "isNotEmpty"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "2e6cebc8-94ce-473c-9248-f5cc359ee300",
|
2023-05-03 16:00:21 +00:00
|
|
|
"name": "Kontakt gefunden?",
|
|
|
|
"type": "n8n-nodes-base.if",
|
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-08-25 09:53:30 +00:00
|
|
|
-140,
|
|
|
|
300
|
2023-05-03 16:00:21 +00:00
|
|
|
],
|
|
|
|
"alwaysOutputData": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"parameters": {
|
|
|
|
"conditions": {
|
|
|
|
"boolean": [
|
|
|
|
{
|
|
|
|
"value1": "={{ $node.Webhook.json.body.accepts_marketing }}",
|
|
|
|
"value2": "={{ true }}"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "f6faee14-d93d-4b85-b8fa-9f4d8c127594",
|
2023-05-03 16:00:21 +00:00
|
|
|
"name": "Marketing Einwilligung?",
|
|
|
|
"type": "n8n-nodes-base.if",
|
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-08-25 09:53:30 +00:00
|
|
|
60,
|
|
|
|
460
|
2023-05-03 16:00:21 +00:00
|
|
|
]
|
2023-05-06 22:00:32 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"parameters": {
|
2023-05-29 22:00:24 +00:00
|
|
|
"authentication": "accessToken",
|
2023-05-06 22:00:32 +00:00
|
|
|
"topic": "customers/update"
|
|
|
|
},
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "b20ef5e3-b002-4d29-bacf-cb731237803b",
|
2023-05-06 22:00:32 +00:00
|
|
|
"name": "Shopify Trigger",
|
|
|
|
"type": "n8n-nodes-base.shopifyTrigger",
|
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-08-25 09:53:30 +00:00
|
|
|
-560,
|
|
|
|
300
|
2023-05-06 22:00:32 +00:00
|
|
|
],
|
|
|
|
"webhookId": "ebce58fc-45cf-4c1c-8427-3ffbaccdb440",
|
|
|
|
"credentials": {
|
2023-05-29 22:00:24 +00:00
|
|
|
"shopifyAccessTokenApi": {
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "11",
|
2023-05-29 22:00:24 +00:00
|
|
|
"name": "Shopify Access Token account"
|
2023-05-06 22:00:32 +00:00
|
|
|
}
|
|
|
|
}
|
2023-05-09 10:00:32 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"parameters": {
|
|
|
|
"action": "hmac",
|
|
|
|
"type": "SHA256",
|
|
|
|
"value": "={{ $json.data }}",
|
|
|
|
"dataPropertyName": "=key",
|
|
|
|
"secret": "0a9dcfe4f362625efc5a38bc709598c61869552fcfc1aceb8fc08edad8dd3825",
|
|
|
|
"encoding": "base64"
|
|
|
|
},
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "2c64dae7-5409-4767-92ab-43239bb038f0",
|
2023-05-09 10:00:32 +00:00
|
|
|
"name": "Crypto",
|
|
|
|
"type": "n8n-nodes-base.crypto",
|
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-08-25 09:53:30 +00:00
|
|
|
-140,
|
|
|
|
1140
|
2023-05-09 10:00:32 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"parameters": {
|
|
|
|
"conditions": {
|
|
|
|
"string": [
|
|
|
|
{
|
|
|
|
"value1": "={{ $json[\"headers\"][\"webhook-signature\"] }}",
|
|
|
|
"value2": "={{ $json.key }}"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "d16fae8c-6b13-42cb-831b-437c41919b1b",
|
2023-05-09 10:00:32 +00:00
|
|
|
"name": "IF",
|
|
|
|
"type": "n8n-nodes-base.if",
|
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-08-25 09:53:30 +00:00
|
|
|
80,
|
|
|
|
1140
|
2023-05-09 10:00:32 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"parameters": {
|
|
|
|
"setAllData": false,
|
|
|
|
"options": {}
|
|
|
|
},
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "2677101f-c550-4748-afef-e41fe1af0604",
|
2023-05-09 10:00:32 +00:00
|
|
|
"name": "Move Binary Data",
|
|
|
|
"type": "n8n-nodes-base.moveBinaryData",
|
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-08-25 09:53:30 +00:00
|
|
|
-360,
|
|
|
|
1140
|
2023-05-09 10:00:32 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"parameters": {},
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "6cb7bd1f-939d-43af-966e-171a1ba3d7da",
|
2023-05-09 10:00:32 +00:00
|
|
|
"name": "No Operation, do nothing1",
|
|
|
|
"type": "n8n-nodes-base.noOp",
|
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-08-25 09:53:30 +00:00
|
|
|
340,
|
|
|
|
1300
|
2023-05-09 10:00:32 +00:00
|
|
|
]
|
2023-07-03 22:00:07 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"parameters": {
|
|
|
|
"endpoint": "https://swapi-graphql.netlify.app/.netlify/functions/index",
|
|
|
|
"query": "query Query { allFilms { films { title director releaseDate speciesConnection { species { name classification homeworld { name } } } } } }"
|
|
|
|
},
|
2023-08-25 09:53:30 +00:00
|
|
|
"id": "49c0a40f-d1a2-453a-ac5b-37230206772f",
|
2023-07-03 22:00:07 +00:00
|
|
|
"name": "GraphQL1",
|
|
|
|
"type": "n8n-nodes-base.graphql",
|
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-08-25 09:53:30 +00:00
|
|
|
180,
|
|
|
|
160
|
2023-07-03 22:00:07 +00:00
|
|
|
]
|
2023-05-01 16:00:21 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"pinData": {},
|
|
|
|
"settings": {},
|
2023-05-06 22:00:32 +00:00
|
|
|
"staticData": {
|
|
|
|
"node:Shopify Trigger": {
|
2023-08-25 09:53:30 +00:00
|
|
|
"webhookId": 1289446981897
|
2023-05-06 22:00:32 +00:00
|
|
|
}
|
|
|
|
},
|
2023-05-01 16:00:21 +00:00
|
|
|
"tags": [],
|
2023-05-04 04:00:21 +00:00
|
|
|
"triggerCount": 2,
|
2023-08-25 09:53:30 +00:00
|
|
|
"updatedAt": "2023-08-25T09:48:56.000Z",
|
|
|
|
"versionId": "bd1863bc-07f6-4715-b7de-a081c5ac6cc8"
|
2023-05-01 16:00:21 +00:00
|
|
|
}
|