Hi everyone,
Curious if there’s any way to make this work in Bubble. We use an external provider that can provide notifications when a router goes offline or has issues and so on, and it shows that via HTTP POST this is what a sample output would be:
**An HTTP/S POST call will be made to the specified URL for the above events. The POST data is an array of events in JSON format: **
[{
“ts”:“2016-07-07T03:12:54”,
“device_name”:“Test Device”,
“device_id”:0,
“client_name”:“Test Client Device”,
“client_mac”:“AA:BB:CC:DD:EE:FF”,
“event_type”:“WLAN”,
“detail”:“Event log notificiation test”,
“longitude”:0.1,
“latitude”:0.2,
“gps_timestamp”:“2016-07-07T03:12:54”,
“sn”:“0000-0000-0000”
},
{…}
]
For any errors (e.g. an HTTP response code greater than or equal to 300 received, network timeout, etc.), it will retry at most five times every one minute.
When I do API Workflow in Bubble though, I was picking “Detect request data” and click Include headers and then do a test request, it returns this:
So all of the data I actually would need is shown at the top in the body section, with all the fields coming back being more related to the IP and what not the call came from. I was hoping the things from the body like org_id, network_id, ts, device_name, device_id, ssid, etc would have been what comes back as the actual values, as right now I can’t do anything with the returned result as using Request Data in any workflow then looks like this:
Is there a way to make this work or something different I need to do? If it’s overly complicated then I’ll get our developers to do it instead of myself, but thought I’d check first in case it’s just a checkbox or something I’m missing!