Back to Service

Method Details for GetProjectTypesShortList.

Gets a list of project types

Parameters

  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password

Returns

A list of project type objects in XML format

Result Example

<?xml version="1.0" encoding="utf-8"?>
<tlp:ProjectTypes  
	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/ProjectTypesShortList.xsd">
  <tlp:ProjectType ID="10">
    <tlp:Name>External - Training/consultant</tlp:Name>
  </tlp:ProjectType>
  <tlp:ProjectType ID="5">
    <tlp:Name>Extarnal - Development</tlp:Name>
  </tlp:ProjectType>
  <tlp:ProjectType ID="4">
    <tlp:Name>Internal - Administration</tlp:Name>
  </tlp:ProjectType>
  <tlp:ProjectType ID="13">
    <tlp:Name>Internal - Marketing</tlp:Name>
  </tlp:ProjectType>
  <tlp:ProjectType ID="17">
    <tlp:Name>Internal - QA</tlp:Name>
  </tlp:ProjectType>
  <tlp:ProjectType ID="12">
    <tlp:Name>Internal - Sales</tlp:Name>
  </tlp:ProjectType>
  <tlp:ProjectType ID="16">
    <tlp:Name>Internal - Support</tlp:Name>
  </tlp:ProjectType>
  <tlp:ProjectType ID="1">
    <tlp:Name>Internal - Development</tlp:Name>
  </tlp:ProjectType>
</tlp:ProjectTypes>

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="ProjectTypes">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="ProjectType" type="tlp:ProjectTypeShort_Type"  minOccurs="0" maxOccurs="unbounded" />
      </xsd:sequence>
    </xsd:complexType>
    <xsd:key name="ProjectType_Key">
      <xsd:selector xpath=".//tlp:ProjectType" />
      <xsd:field xpath="@ID" />
    </xsd:key>
  </xsd:element>

  <xsd:complexType name="ProjectTypeShort_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>

Download the XSD