Get Asset History By Serial Number

From MyMobileWorkers API
Revision as of 13:36, 8 August 2013 by Darren.atherton (Talk | contribs)

Jump to: navigation, search

Contents

Summary

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

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

Response Parameters

Example response

[ { "asset" : { "external_id" : "sss32",
        "serial_number" : "serialNo123"
      },
    "created_at" : 1375874083000,
    "custom_fields" : null,
    "customer" : { "name" : "john" },
    "description" : "describingwords",
    "external_id" : "sss32",
    "item" : { "category" : "Test Numero 1",
        "external_id" : null,
        "name" : "Woo"
      },
    "job" : { "job_ number" : "123" },
    "last_scanned_by" : null,
    "last_updated_by" : null,
    "location" : "aPlace2",
    "photos" : [ { "file_name" : "www.testFileName.com/test" },
        { "file_name" : "www.testFileName.com/test" }
      ],
    "serial_number" : "serialNo123",
    "status" : { "external_id" : null,
        "name" : "test"
      }
  },
  { "asset" : { "external_id" : "sss32",
        "serial_number" : "serialNo123"
      },
    "created_at" : 1375874146000,
    "custom_fields" : null,
    "customer" : { "name" : "john" },
    "description" : "describingwords",
    "external_id" : "sss32",
    "item" : { "category" : "Test Numero 1",
        "external_id" : null,
        "name" : "Woo"
      },
    "job" : { "job_ number" : "123" },
    "last_scanned_by" : null,
    "last_updated_by" : null,
    "location" : "aPlace2",
    "photos" : [ { "file_name" : "www.testFileName.com/test" } ],
    "serial_number" : "serialNo123",
    "status" : { "external_id" : null,
        "name" : "test"
      }
  }
]

Example curl request

curl "http://live.mymobileworkers.com:8080/api/1/assets/asset/history/?api_key=darrenwebapi&serial_number=serialNo123"

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox