GET api/viewsstatistics/{sessionID}/{periodType}/{period}

Get view statistics for specified time periods

Request Information

URI Parameters

NameDescriptionTypeAdditional information
sessionID

ID сессии (получается при логине)

string

Required

periodType

Тип периода (days, weeks, months)

string

Required

period

Кол-во возвращаемых периодов

integer

Required

Body Parameters

None.

Response Information

Resource Description

ViewsStatisticsResponse
NameDescriptionTypeAdditional information
retval

Return code (0 - ok, otherwise - error)

integer

None.

desc

Text description of the return code (error description)

string

None.

statistics

Statistics

Collection of ViewsStatistic

None.

Response Formats

application/json, text/json

Sample:
{
  "retval": 1,
  "desc": "sample string 2",
  "statistics": [
    {
      "Period": "sample string 1",
      "Count": 2
    },
    {
      "Period": "sample string 1",
      "Count": 2
    }
  ]
}

application/xml, text/xml

Sample:
<viewsstatistics.response>
  <retval>1</retval>
  <desc>sample string 2</desc>
  <statistics>
    <period>sample string 1</period>
    <count>2</count>
  </statistics>
  <statistics>
    <period>sample string 1</period>
    <count>2</count>
  </statistics>
</viewsstatistics.response>