GET /subscriptions - get list of podcast user subscriptions
| Parameter | Parameter Type | Data Type |
|---|---|---|
| api-key | header | string Required |
| Authorization | header | string Required |
| include | query | string available includes: podcast, podcast.lastepisode |
invalid HTTP_API_KEYNot authenticated200 - Success401 - Unauthorized actioncurl --request GET \
--url 'https://api-dev.radiozu.ro/v1/subscriptions?include=podcast' \
--header 'Authorization: Bearer AUTH_TOKEN' \
--header 'api-key: API_KEY'
Array of subscription objects containing a link between an user and a podcast. Optionally a podcast object is included.
id - id of subscription, to be used for deletion of subscriptionuser_id - user_id of subscriptionpodcast_id - id of the subscribed podcast{
"data": [
{
"id": 4,
"podcast_id": 1,
"user_id": 1
}
]
}
{
"data": [
{
"id": 4,
"podcast_id": 1,
"user_id": 1,
"podcast": {
"id": 1,
"name": "Fain & Simplu Podcast",
"active": 1,
"description": "Mihai Morar prezintă Fain & Simplu. Podcast pentru minte, trup și suflet.",
"feed_url": "https:\/\/feeds.buzzsprout.com\/659008.rss",
"image": "https:\/\/cms-podcasts.radiozu.ro\/storage\/7ApDED6PXbj0Gy2NLscTeWZHSmFyuM.jpg"
}
}
]
}