Get the nr of pages we can return all users on

getUsersPageNr(p_companyID)

 

You can use this endpoint to retrieve the number of pages we can return all users on.

Parameters

Name Type Required Description
p_companyID string Yes The security code you have been provided with, string (32)

Return values

An integer that can be anything between 1 - N, depending on the number of users the company has. We can retrieve 1000 users in a single getUsers(p_companyID, p_page) call if p_page is provided, so this value is the up-rounded result of users_nr / 1000. In case a company has max 1000 users we return 1, between 1001 and 2000 we return 2, between 2001 and 3000 we return 3 and so on. The returned value will tell the 3rd party on how many pages we can return all the users from the database.

Sample

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:uen="uen:esws">
<soapenv:Header/>
<soapenv:Body>
<uen:Esws.getLogsById soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<p_companyID xsi:type="xsd:string">^4p;tU0Q+#dEIhTWkuj5FnLD^aOLqVu0</p_companyID>
</uen:Esws.getLogsById>
</soapenv:Body>
</soapenv:Envelope>

Response

<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:Esws.getUsersPageNrResponse xmlns:ns1="uen:esws">
<return xsi:type="xsd:string">1</return>
</ns1:Esws.getUsersPageNrResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>