8.0 Get Mechanics

Returns a list of users who can perform repairs for use with the addrepair action.

8.1 Request Data

Required Information
Name Description
action extgetrepairusers
Optional Information
location Location to filter with. Text. If provided only users assigned to that location will be returned. If location is not supplied or an empty location is specified, users from all locations will be returned.
logvers This parameter will determine the format of the output.
  • 2 Will add a new element id that provides the dbid for the mechanic.

8.2 Data Returned

Returned information:
A list of users.
DTD:
<!ELEMENT repairuserlist (user*)>
<!ATTLIST repairuserlist ver CDATA #REQUIRED>
<!ELEMENT user (logname, fname, lname, active, location)>
<!ELEMENT logname (#PCDATA)>
<!ELEMENT fname (#PCDATA)>
<!ELEMENT lname (#PCDATA)>
<!ELEMENT active (#PCDATA)>
<!ELEMENT location (#PCDATA)>

logvers=2 DTD:
<!ELEMENT repairuserlist (user*)>
<!ATTLIST repairuserlist ver CDATA #REQUIRED>
<!ELEMENT user (id, logname, fname, lname, active, location)>
<!ELEMENT id (#PCDATA)>
<!ELEMENT logname (#PCDATA)>
<!ELEMENT fname (#PCDATA)>
<!ELEMENT lname (#PCDATA)>
<!ELEMENT active (#PCDATA)>
<!ELEMENT location (#PCDATA)>

Example Request:

http://development.zonarsystems.net/interface.php?action=extgetrepairusers

Example request using logvers=2 :

http://development.zonarsystems.net/interface.php?action=extgetrepairusers&logvers=2

Example Success Reply

Example logvers 2 Success Reply