How to parse GET request for car tracker


#1

1) Give a description of the problem
I have a car tracker that I can access through their website, but they state they have an API I can use. How would I pull the data into a piston? Here’s the example they give.

2) What is the expected behaviour?
(PUT YOUR INFO HERE)

3) What is happening/not happening?
I stole someone else’s piston to try it out, but really don’t know what I’m doing

4) Post a Green Snapshot of the pistonimage


#2

On first glance, responses in JSON format are typically automatically parsed by webCore into the $response variable. Line 32 is not required. Once removed, you should get the full response logged. To break down into individual components follow the format:

$response.atdatalatest.unit.gps.lat


#3

Is that for the GET request? Or for the Log Info?


#4

That’s for logging the info, just to see if you’re getting the expected output.