Method Details for GetContactsShortList.
Gets a list of contacts with key information only
Parameters
- siteCode String Unique identification for your TimeLog account
- apiID String The API ID
- apiPassword String The API password
- customerID Integer ID of specific customer. Set to 0 to get all contacts
Returns
A list of contact objects in XML format
Result Example
<?xml version="1.0" encoding="utf-8"?>
<tlp:Contacts xmlns:tlp="http://www.timelog.com/XML/Schema/tlp/v4_4"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.timelog.com/XML/Schema/tlp/v4_4 http://www.timelog.com/api/xsd/ContactsShortList.xsd">
<tlp:Contact ID="4957">
<tlp:FullName>John Doe</tlp:FullName>
</tlp:Contact>
<tlp:Contact ID="2102">
<tlp:FullName>Hans Mustermann</tlp:FullName>
</tlp:Contact>
</tlp:Contacts>
Result Schema
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tlp="http://www.timelog.com/XML/Schema/tlp/v4_4"
targetNamespace="http://www.timelog.com/XML/Schema/tlp/v4_4"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:element name="Contacts">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Contact" type="tlp:ContactShort_Type" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
<xsd:key name="Contact_Key">
<xsd:selector xpath=".//tlp:Contact" />
<xsd:field xpath="@ID" />
</xsd:key>
</xsd:element>
<xsd:complexType name="ContactShort_Type">
<xsd:sequence>
<xsd:element name="FullName" type="xsd:string" />
</xsd:sequence>
<xsd:attribute name="ID" type="xsd:positiveInteger" use="required"></xsd:attribute>
</xsd:complexType>
</xsd:schema>