92 lines
2 KiB
JSON
92 lines
2 KiB
JSON
|
|
{
|
||
|
|
"name": "Jimi GPS Push",
|
||
|
|
"nodes": [
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"httpMethod": "POST",
|
||
|
|
"path": "pushgps",
|
||
|
|
"responseMode": "responseNode",
|
||
|
|
"options": {}
|
||
|
|
},
|
||
|
|
"id": "webhook-pushgps",
|
||
|
|
"name": "Webhook",
|
||
|
|
"type": "n8n-nodes-base.webhook",
|
||
|
|
"typeVersion": 2,
|
||
|
|
"position": [260, 300],
|
||
|
|
"webhookId": "pushgps"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"respondWith": "json",
|
||
|
|
"responseBody": "={{ JSON.stringify({\"code\": 0, \"msg\": \"success\"}) }}",
|
||
|
|
"options": {}
|
||
|
|
},
|
||
|
|
"id": "respond-pushgps",
|
||
|
|
"name": "Respond to Jimi",
|
||
|
|
"type": "n8n-nodes-base.respondToWebhook",
|
||
|
|
"typeVersion": 1.1,
|
||
|
|
"position": [480, 300]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"parameters": {
|
||
|
|
"method": "POST",
|
||
|
|
"url": "https://tshook.rahamafresh.com/pushgps",
|
||
|
|
"sendBody": true,
|
||
|
|
"contentType": "form-urlencoded",
|
||
|
|
"bodyParameters": {
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "token",
|
||
|
|
"value": "={{ $('Webhook').item.json.body.token }}"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "data_list",
|
||
|
|
"value": "={{ $('Webhook').item.json.body.data_list }}"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"options": {
|
||
|
|
"timeout": 30000
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"id": "http-pushgps",
|
||
|
|
"name": "Forward to Webhook Receiver",
|
||
|
|
"type": "n8n-nodes-base.httpRequest",
|
||
|
|
"typeVersion": 4.2,
|
||
|
|
"position": [700, 300]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"connections": {
|
||
|
|
"Webhook": {
|
||
|
|
"main": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"node": "Respond to Jimi",
|
||
|
|
"type": "main",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"Respond to Jimi": {
|
||
|
|
"main": [
|
||
|
|
[
|
||
|
|
{
|
||
|
|
"node": "Forward to Webhook Receiver",
|
||
|
|
"type": "main",
|
||
|
|
"index": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"settings": {
|
||
|
|
"executionOrder": "v1"
|
||
|
|
},
|
||
|
|
"tags": [
|
||
|
|
{
|
||
|
|
"name": "Jimi Tracksolid"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|