Back to Service

Method Details for GetBarriersShortlist.

Gets a list of barriers

Parameters

  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password
  • status Integer 0 for inactive barriers; 1 for active barriers; -1 for all barriers

Returns

A list of barrier objects in XML format

Result Example

<?xml version="1.0" encoding="utf-8"?>
<tlp:Barriers 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/BarriersShortlist.xsd">
  <tlp:Barrier ID="14">
    <BarrierGUID>656de119-8b4d-4091-a73b-a5dfc104d9c4</BarrierGUID>
    <BarrierName>Price</BarrierName>
    <IsActive>1</IsActive>
   </tlp:Barrier>
</tlp:Barriers>

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="Barriers" >
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="Barrier" type="tlp:BarriersRaw_Type" minOccurs="0" maxOccurs="unbounded" />
      </xsd:sequence>
    </xsd:complexType>
    <xsd:key name="Barrier_Key">
      <xsd:selector xpath=".//tlp:Barrier" />
      <xsd:field xpath="@ID" />
    </xsd:key>
  </xsd:element>

  <xsd:complexType name="BarriersRaw_Type">
    <xsd:sequence>
      <xsd:element name="BarrierGUID" type="xsd:string" />
      <xsd:element name="BarrierName" type="xsd:string" />
      <xsd:element name="IsActive" type="xsd:boolean" />
    </xsd:sequence>
    <xsd:attribute name="ID" type="xsd:positiveInteger" use="required" />
  </xsd:complexType>

</xsd:schema>

Download the XSD