Use this call to get the data sent in a form-based message from a driver.
Request Data
Required Information | |
---|---|
Name | Description |
action | twentytwenty |
operation | getformdata |
sourcename | Name of form source type. |
extid | External ID of the form to be retrieved. |
startepoch | Epoch timestamp. Earliest time to get data from. |
endepoch | Epoch timestamp. Latest time to get data from. Must be no more than 7 days from startepoch. |
Example Request
https://omi.zonarsystems.net/interface.php?customer=zzo2544&username=zonar&password=secret.pw.2019&action=twentytwenty&operation=getformdata &sourcename=TestSource&extid=33:14&startepoch=1424885594&endepoch=1458758011
Data Returned
JSON list of JSON dictionaries containing the following keys:
- "mailbox_id"
- "ts"
- "driver_id"
- "form_data"
Example Reply (JSON)
[
{
"mailbox_id": 1234,
"ts": "2015-02-05 09:30:24-08",
"driver_id": 5,
"form_data": {"a_field": "a value", "cargo": "apples"}
}
]