TrakIT API‎ > ‎Pending API‎ > ‎

Get Asset List

The below API is used to get asset list in Asset Management.


Request: GET

Signature:
 /api/mobile/GetAssetList?Token={Login_Token}&TypeID={Asset_TypeId}&Search={Search_Keywords}&SkipCount={Skip_Count}



Sample: /api/mobile/GetAssetList?Token=VomYEMiECFFyAQ3==&TypeID=2&Search=John&SkipCount=0

Response: 

{
"Code": 1,
"Info": "",
"RowsAffected": 2,
"Scalar": null,
"Identity": 0,
"RetInfo": 
   [
        {
            "AssetId": 32,
            "AssetName": "John",
            "AssetSerial": "3461`"
        },
        {
            "AssetId": 33,
            "AssetName": "Manuel",
            "AssetSerial": "JOHN2"
        }
    ]
}


Things to know about this API:
  1. Login_Token - You can get the Login_Token using Login API

  2. TypeID

  3. Search - (You can search with Asset Name and Asset Serial)

  4. Skip_Count - It is an integer which decides the number of rows returned. For example: If you send 0, then it will display 0 to 20 rows. If you send 13, then it will display 13 to 33 rows.

  5. RowsAffected - Displays the total number of Assets in the TypeID
Comments