Method Details for GetTaskTypesShortList.
Gets a list of task types
Parameters
- siteCode String Unique identification for your TimeLog account
- apiID String The API ID
- apiPassword String The API password
Returns
A list of task type object in XML format
Result Example
<?xml version="1.0" encoding="utf-8"?> <tlp:TaskTypes 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/TaskTypesShortList.xsd"> <tlp:TaskType ID="12"> <tlp:Name>Administration</tlp:Name> </tlp:TaskType> <tlp:TaskType ID="4"> <tlp:Name>Architekture</tlp:Name> </tlp:TaskType> <tlp:TaskType ID="9"> <tlp:Name>Bugfixing</tlp:Name> </tlp:TaskType> <tlp:TaskType ID="19"> <tlp:Name>CRM Admin</tlp:Name> </tlp:TaskType> <tlp:TaskType ID="5"> <tlp:Name>Documentation</tlp:Name> </tlp:TaskType> <tlp:TaskType ID="21"> <tlp:Name>GTM</tlp:Name> </tlp:TaskType> <tlp:TaskType ID="7"> <tlp:Name>Consultant</tlp:Name> </tlp:TaskType> <tlp:TaskType ID="16"> <tlp:Name>Training</tlp:Name> </tlp:TaskType> <tlp:TaskType ID="18"> <tlp:Name>Marketing</tlp:Name> </tlp:TaskType> <tlp:TaskType ID="17"> <tlp:Name>Employee education</tlp:Name> </tlp:TaskType> <tlp:TaskType ID="10"> <tlp:Name>Meetings</tlp:Name> </tlp:TaskType> <tlp:TaskType ID="3"> <tlp:Name>Programming</tlp:Name> </tlp:TaskType> <tlp:TaskType ID="11"> <tlp:Name>Project management</tlp:Name> </tlp:TaskType> <tlp:TaskType ID="1"> <tlp:Name>Sales</tlp:Name> </tlp:TaskType> <tlp:TaskType ID="22"> <tlp:Name>Support</tlp:Name> </tlp:TaskType> <tlp:TaskType ID="20"> <tlp:Name>Cold call</tlp:Name> </tlp:TaskType> <tlp:TaskType ID="8"> <tlp:Name>Test</tlp:Name> </tlp:TaskType> </tlp:TaskTypes>
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="TaskTypes"> <xsd:complexType> <xsd:sequence> <xsd:element name="TaskType" type="tlp:TaskTypeShort_Type" minOccurs="0" maxOccurs="unbounded" /> </xsd:sequence> </xsd:complexType> <xsd:key name="TaskType_Key"> <xsd:selector xpath=".//tlp:TaskType" /> <xsd:field xpath="@ID" /> </xsd:key> </xsd:element> <xsd:complexType name="TaskTypeShort_Type"> <xsd:sequence> <xsd:element name="Name" type="xsd:string" /> </xsd:sequence> <xsd:attribute name="ID" type="xsd:positiveInteger" use="required"></xsd:attribute> </xsd:complexType> </xsd:schema>