GetPeopleListCount
Description
Returns array of Persons filtered by input parameters. When any of the parameters is missed, then the default value is used.
Input Parameters
Parameter | Description |
---|---|
| To use the Q4 API, you need to have an application key. We use this to track API usage. Currently, the use of the API is allowed only with prior permission. Requests for API keys are reviewed by staff. Please get in touch with support to get the API Key. |
| Specifies the language for which financial reports should be returned. The default value is 1 (English). |
| When paging is used, specify the page number to return. It is 0-based. |
| Specifies the id of the department by which persons need to be filtered, the default value is "00000000-0000-0000-000000000000". |
Sample URL
https://www.domain.com/feed/People.svc/GetPeopleListCount?apiKey=BC0F9D590DE14126A1C8C175F91CFE59&languageId=1&pageNumber=0&pageSize=5&departmentId=c8244d44-ab48-4532-86fe-0c2e2c898740
Sample Request
var data = {
apiKey: apiKey,
languageId: 1,
pageNumber: 0,
pageSize: 10,
departmentId: departmentId
}
$.ajax({
type: "GET",
url: "http://www.domain.com/feed/People.svc/GetPeopleListCount",
data: data,
dataType: "jsonp",
success: OnLoadPeopleSuccess,
error: OnLoadError
});
Sample Response
{
"GetPeopleListCountResult": 1
}