I am trying to use the HTTP request cards to send a POST request to a web service and parse the output and store a variable. I’ve been looking for a solution on the net but can’t find anything.
My use case is to call a public transport real time web service using POST, giving it some details like the bus service/trip, and that service returns JSON that includes the current stop number. I want to store that current stop number into a Better Logic variable, then run a difference calculation on it using my home stop number and the stop number in the variable and then announce how many stops away on a smart speaker.
I’ve got all the ingredients working to do this, the only problem is that the HTTP request cards seemingly can only parse a GET command, not a POST command. The real time web service only accepts POST.
Am I missing something?