POST Other/GetWebshopAdminStats

Gets webshop admin stats

Request Information

URI Parameters

None.

Body Parameters

RequestWebshopAdminStats
NameDescriptionTypeAdditional information
StartYear

integer

None.

StartMonth

integer

None.

StartDay

integer

None.

MonthsOrDays

If StartDay > 0 days are used, otherwise months

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "StartYear": 1,
  "StartMonth": 2,
  "StartDay": 3,
  "MonthsOrDays": 4
}

text/html

Sample:
{"StartYear":1,"StartMonth":2,"StartDay":3,"MonthsOrDays":4}

application/xml, text/xml

Sample:
<RequestWebshopAdminStats xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2">
  <MonthsOrDays>4</MonthsOrDays>
  <StartDay>3</StartDay>
  <StartMonth>2</StartMonth>
  <StartYear>1</StartYear>
</RequestWebshopAdminStats>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RequestWebshopAdminStats'.

Response Information

Resource Description

WebshopAdminStats
NameDescriptionTypeAdditional information
Titles

Collection of string

None.

listWebshopAdminStatLabels

Collection of WebshopAdminStatLabels

None.

Temp

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Titles": [
    "sample string 1",
    "sample string 2"
  ],
  "listWebshopAdminStatLabels": [
    {
      "LabelName": "sample string 1",
      "LabelBackgroundColor": "sample string 2",
      "LabelBorderColor": "sample string 3",
      "LabelData": "sample string 4",
      "LabelPrice": 5
    },
    {
      "LabelName": "sample string 1",
      "LabelBackgroundColor": "sample string 2",
      "LabelBorderColor": "sample string 3",
      "LabelData": "sample string 4",
      "LabelPrice": 5
    }
  ],
  "Temp": "sample string 1"
}

text/html

Sample:
{"Titles":["sample string 1","sample string 2"],"listWebshopAdminStatLabels":[{"LabelName":"sample string 1","LabelBackgroundColor":"sample string 2","LabelBorderColor":"sample string 3","LabelData":"sample string 4","LabelPrice":5},{"LabelName":"sample string 1","LabelBackgroundColor":"sample string 2","LabelBorderColor":"sample string 3","LabelData":"sample string 4","LabelPrice":5}],"Temp":"sample string 1"}

application/xml, text/xml

Sample:
<WebshopAdminStats xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2">
  <Temp>sample string 1</Temp>
  <Titles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Titles>
  <listWebshopAdminStatLabels>
    <WebshopAdminStatLabels>
      <LabelBackgroundColor>sample string 2</LabelBackgroundColor>
      <LabelBorderColor>sample string 3</LabelBorderColor>
      <LabelData>sample string 4</LabelData>
      <LabelName>sample string 1</LabelName>
      <LabelPrice>5</LabelPrice>
    </WebshopAdminStatLabels>
    <WebshopAdminStatLabels>
      <LabelBackgroundColor>sample string 2</LabelBackgroundColor>
      <LabelBorderColor>sample string 3</LabelBorderColor>
      <LabelData>sample string 4</LabelData>
      <LabelName>sample string 1</LabelName>
      <LabelPrice>5</LabelPrice>
    </WebshopAdminStatLabels>
  </listWebshopAdminStatLabels>
</WebshopAdminStats>