Back to Service

Method Details for GetIndustriesShortList.

Gets a list of industries

Parameters

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

Returns

A list of industry objects in XML format

Result Example

<?xml version="1.0" encoding="utf-8"?>
<tlp:Industries 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/IndustriesShortList.xsd">
  <tlp:Industry ID="343">
    <tlp:Name>Architect</tlp:Name>
  </tlp:Industry>
  <tlp:Industry ID="340">
    <tlp:Name>Consultant</tlp:Name>
  </tlp:Industry>
  <tlp:Industry ID="338">
    <tlp:Name>IT</tlp:Name>
  </tlp:Industry>  
  <tlp:Industry ID="342">
    <tlp:Name>Public administration</tlp:Name>
  </tlp:Industry>
  <tlp:Industry ID="341">
    <tlp:Name>PR/Media</tlp:Name>
  </tlp:Industry>
  <tlp:Industry ID="339">
    <tlp:Name>Webbureau</tlp:Name>
  </tlp:Industry>
</tlp:Industries>

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="Industries">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="Industry" type="tlp:IndustryShort_Type" minOccurs="0" maxOccurs="unbounded" />
      </xsd:sequence>
    </xsd:complexType>
    <xsd:key name="Industry_Key">
      <xsd:selector xpath=".//tlp:Industry" />
      <xsd:field xpath="@ID" />
    </xsd:key>
  </xsd:element>

  <xsd:complexType name="IndustryShort_Type">
    <xsd:sequence>
      <xsd:element name="Name" type="xsd:string" />
      <xsd:element name="ParentID" type="xsd:positiveInteger" minOccurs="0" maxOccurs="1" />
    </xsd:sequence>
    <xsd:attribute name="ID" type="xsd:positiveInteger" use="required"></xsd:attribute>
  </xsd:complexType>

</xsd:schema>

Download the XSD