Back to Service

Method Details for GetProjectCategoriesShortList.

Gets a list of project categories

Parameters

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

Returns

A list of project category objects in XML format

Result Example

<?xml version="1.0" encoding="utf-8"?>
<tlp:ProjectCategories
	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/ProjectCategoriesShortList.xsd" >
  <tlp:ProjectCategory ID="3">
    <tlp:Name>Invoice layout</tlp:Name>
  </tlp:ProjectCategory>
  <tlp:ProjectCategory ID="2">
    <tlp:Name>Project</tlp:Name>
  </tlp:ProjectCategory>
</tlp:ProjectCategories>

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="ProjectCategories">
		<xsd:complexType>
			<xsd:sequence>
			<xsd:element name="ProjectCategory" type="tlp:ProjectCategoryShort_Type" minOccurs="0" maxOccurs="unbounded" />
		</xsd:sequence>
		</xsd:complexType>
			<xsd:key name="ProjectCategory_Key">
			<xsd:selector xpath=".//tlp:ProjectCategory" />
			<xsd:field xpath="@ID" />
		</xsd:key>
	</xsd:element>
  
	<xsd:complexType name="ProjectCategoryShort_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