Resource List

Resourcelist

ParameterTypeDescription
[IN] Parameters described in Overview
CompanyString[IN] The company context
ActionString[IN] Identifier for the list requested
UseridString[IN] allactive/allinactive
ResponseXML/JSON[OUT] An XML tree / JSON string containing resources the user has access to

Description

Calling the timesheets API with an action of resourcelist retrieves a list of resource codes and associated resource names.

Return Values

Response – List of resources.

The structure of the response is:

<resources morepages="False" totalpages="1" totalrows="1">
<resource resources_uuid="9E8542973175495794B762821B4BEDC1">
<resources_resourcecode>1/JB</resources_resourcecode>
<resources_resourcename>Jo Bloggs</resources_resourcename>
</resource>
</resources>
{
"errormessage": "",
   	 "responsecode": 1,
    	"pagerows": 0,
    	"totalrows": 1,
   	 "responsestatus": "OK",
    	"success": true,
    	"responsemessage": "",
    	"errorcode": 0,
    	"totalpages": 1,
    	"pagenumber": 1,
    	"data": [
        	{
           	 "resources_uuid": "9E854297-3175-4957-94B7-62821B4BEDC1",
            	"resources_resourcecode": "1/JB",
            	"resources_resourcename": "Jo Bloggs"       
        	 }
    	]
}