GET v2.0/subscription/{token}

Возвращает информацию о подписке пользователя.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

Токен подписки.

string

Required

Body Parameters

None.

Response Information

Resource Description

Информацию о подписке пользователя, или ошибку с кодом 404 если подписка не найдена.

Korus.Eds.Api.Subscription
NameDescriptionTypeAdditional information
Token

string

None.

Created

date

None.

UserId

integer

None.

Login

string

None.

IsRestricted

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "created": "2025-04-29T16:54:57.8631486+03:00",
  "userId": 3,
  "login": "sample string 4",
  "isRestricted": true
}

application/xml, text/xml

Sample:
<Subscription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Korus.Eds.Api">
  <Created>2025-04-29T16:54:57.8631486+03:00</Created>
  <IsRestricted>true</IsRestricted>
  <Login>sample string 4</Login>
  <Token>sample string 1</Token>
  <UserId>3</UserId>
</Subscription>