Materiallist
Parameter | Type | Description |
---|---|---|
[IN] Parameters described in Overview | ||
Company | String | [IN] The users default company number for the companies list |
Action | String | [IN] Identifier for the list requested |
Resource | String | [IN] Identifier for the resource context |
Resourcetype [OPTIONAL] | String | [IN] filter for the FM material resource type |
Response | XML/JSON | [OUT] An XML tree / JSON string containing resources the user has access to |
Description
Calling the timesheets API with an action of materiallist retrieves a list of resource codes and associated resource names.
Return Values
Response – List of material resources.
The structure of the response is:
<materials morepages="False" totalpages="1" totalrows="1">
<material resources_uuid="8EB24B0E80E046C680618EB8BABEF895">
<resources_resourcecode>1/A3CC</resources_resourcecode>
<resources_resourcename>A3 Colour Copies</resources_resourcename>
</material>
</Materials>
{
"errormessage": "",
"responsecode": 1,
"pagerows": 0,
"totalrows": 1,
"responsestatus": "OK",
"success": true,
"responsemessage": "",
"errorcode": 0,
"totalpages": 1,
"pagenumber": 1,
"data": [
{
"resources_resourcecode": "1/A3CC",
"resources_uuid": "8EB24B0E80E046C680618EB8BABEF895",
"resources_resourcename": "A3 Colour Copies"
}]
}