*getPersonList
Configuration Article | CA-20220907-TP-58 VDG Sense | API | Functions | Persons |
Note: This function requires an API license.
Obtains a list of all persons stored in the database.
Request
command=getPersonList |
Response
<result errorcode="0">
  <persons count="[number]">
    <person>
      <id>[uid]</id>
      <firstname>[string]</firstname>
      <lastname>[string]</lastname>
      <address>[string]</address>
      <postalcode>[string]</postalcode>
      <city>[string]</city>
      <phone>[string]</phone>
      <fax>[string]</fax>
      <mobile>[string]</mobile>
      <licenseplate>[string]</licenseplate>
      <lastnameprefix>[string]</lastnameprefix>
      <reference>[string]</reference>
      <notes>[string]</notes>
      <expirationdate>[string]</expirationdate>
      <enabledexpirationdate>[boolean]</enabledexpirationdate>
    </person>
  </persons>
</result> |
node | value | remarks |
---|---|---|
/result | ||
@errorcode | [number] | See error codes below |
/result/persons | ||
@count | [number] | number of persons |
/result/persons/person | ||
id | [UID] | unique person id |
firstname | [string] | firstname of the person |
lastname | [string] | firstname of the person |
address | [string] | address of the person |
postalcode | [string] | postal code of the person |
city | [string] | city of the person |
phone | [string] | phone number of the person |
fax | [string] | fax number of the person |
mobile | [string] | mobile number of the person |
licenseplate | [string] | license plate of the person |
notes |  [string] | notes added to the person |
expirationdate | [string] | Â the date the person will be removed from the database |
enabledexpirationdate | [boolean] | flag to indicate the person can be expired |
error code | description | remarks |
---|---|---|
0 | Ok | Ok, no error |
-18 | General error | An undefined error occured |
Â
Changelog
2.6.1 – added