GET api/Tracking/getElements/{companyid}/{elementtype}/{timespan}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
companyid

integer

Required

elementtype

string

Required

timespan

integer

Default value is 30

Body Parameters

None.

Response Information

Resource Description

TrackingResults
NameDescriptionTypeAdditional information
ResultName

string

None.

UniqueItems

integer

None.

TotalItems

integer

None.

Trackingitems

Collection of TrackingItems

None.

Response Formats

application/json, text/json, text/html

Sample:
{
  "ResultName": "sample string 1",
  "UniqueItems": 2,
  "TotalItems": 3,
  "Trackingitems": [
    {
      "ItemName": "sample string 1",
      "ItemLink": "sample string 2",
      "ItemCount": 3
    },
    {
      "ItemName": "sample string 1",
      "ItemLink": "sample string 2",
      "ItemCount": 3
    }
  ]
}

application/xml, text/xml

Sample:
<TrackingResults xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NiceAPI.Managers">
  <ResultName>sample string 1</ResultName>
  <TotalItems>3</TotalItems>
  <Trackingitems>
    <TrackingItems>
      <ItemCount>3</ItemCount>
      <ItemLink>sample string 2</ItemLink>
      <ItemName>sample string 1</ItemName>
    </TrackingItems>
    <TrackingItems>
      <ItemCount>3</ItemCount>
      <ItemLink>sample string 2</ItemLink>
      <ItemName>sample string 1</ItemName>
    </TrackingItems>
  </Trackingitems>
  <UniqueItems>2</UniqueItems>
</TrackingResults>