Difference between revisions of "Get Assets Updated Since"
From MyMobileWorkers API
(Created page with "== Summary == {| border="1" class="wikitable" ! Jobs Update Since ! colspan="2" | |- ! URL | colspan="2" | http://:base_url/:api_path/:version/assets/asset/updated?api_key=...") |
|||
| Line 87: | Line 87: | ||
== Example curl request == | == Example curl request == | ||
| − | http://10.1.0. | + | curl "http://10.1.0.87:8080/api/1/assets/asset/updated/?api_key=darrenwebapi&since=2013-08-07%2012:50:44" |
| + | |||
| + | NOTE: the '%20' between the date and time is not part of the DATETIME but is needed. | ||
Revision as of 15:44, 7 August 2013
Summary
| Jobs Update Since | ||
|---|---|---|
| URL | http://:base_url/:api_path/:version/assets/asset/updated?api_key=YOUR_KEY&since=DATETIME | |
| Type | GET | |
| Params: | api_key | required |
| since | required | |
| Response | JSON | |
The Get Assets Updated method returns all assets that have been updated since the specified "since" parameter
Example response
{ "assets":[ { "location":"aPlace2", "status":{ "external_id":null, "name":"test" }, "description":"describingwords", "item":{ "external_id":null, "category":"Test Numero 1", "name":"Woo" }, "serial_number":"serialNo456", "created_at":1375888861000, "last_updated_by":null, "external_id":"sss32", "last_scanned_by":null, "custom_fields":null, "job":{ "job_ number":"123" }, "customer":{ "name":"john" } }, { "location":"aPlace2", "status":{ "external_id":null, "name":"test" }, "description":"describingwords", "item":{ "external_id":null, "category":"Test Numero 1", "name":"Woo" }, "serial_number":"serialNo123", "created_at":1375874083000, "last_updated_by":null, "external_id":"sss32", "last_scanned_by":null, "custom_fields":null, "job":{ "job_ number":"123" }, "customer":{ "name":"john" } } ] }
Example curl request
curl "http://10.1.0.87:8080/api/1/assets/asset/updated/?api_key=darrenwebapi&since=2013-08-07%2012:50:44"
NOTE: the '%20' between the date and time is not part of the DATETIME but is needed.