List Feeds
GET
/v1/calendar/feeds
const url = 'https://api.cloud.agentums.ru/v1/calendar/feeds';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.cloud.agentums.ru/v1/calendar/feeds \ --header 'Authorization: Bearer <token>'Выданные ICS-подписки на календарь.
enabled=false означает, что фича выключена на сервере, — это не то же самое, что
пустой список подписок, и показывать пользователю нужно разное.
Authorizations
Заголовок раздела «Authorizations»Responses
Заголовок раздела «Responses»Successful Response
Media typeapplication/json
FeedList
object
enabled
Enabled
boolean
items
required
Items
Array<object>
FeedOutExample
{ "enabled": false, "items": [ { "access_count": 0, "url": "", "webcal_url": "" } ]}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}