Difference between revisions of "Get Asset By Serial Number"

From MyMobileWorkers API
Jump to: navigation, search
(→‎Example response)
Line 6: Line 6:
 
|-
 
|-
 
! URL
 
! URL
−
| colspan="2" |  http://:base_url/:api_path/:version/asset
+
| colspan="2" |  http://:base_url/:api_path/:version/asset?api_key=YOUR_KEY&serial_number=SERIAL_NUMBER
 
|-
 
|-
 
! Type
 
! Type

Revision as of 15:40, 7 August 2013

Contents

Summary

Asset
URL http://:base_url/:api_path/:version/asset?api_key=YOUR_KEY&serial_number=SERIAL_NUMBER
Type GET
Params: api_key required
serial_number required
Response JSON


The Get Asset method returns the asset corresponding to the serial number specified.


Response Parameters

Example response

[
{
"location":"aPlace",
"status":{
	"external_id":null,
	"name":"test"
	},
"description":"describingwords",
"item":{
	"external_id":null,
	"category":"Test Numero 1",
	"name":"Woo
	"},
"serial_number":"serialNo123",
"created_at":1375786053000,
"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://live.mymobileworkers.com:8080/api/1/assets/asset/?api_key=darrenwebapi&serial_number=serialNo123"

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox