List Favorites
curl --request GET \
--url https://api.thefaithapp.com/v1/favorites \
--header 'Authorization: Bearer <token>' \
--header 'X-API-Key: <api-key>'const options = {
method: 'GET',
headers: {'X-API-Key': '<api-key>', Authorization: 'Bearer <token>'}
};
fetch('https://api.thefaithapp.com/v1/favorites', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.thefaithapp.com/v1/favorites"
headers = {
"X-API-Key": "<api-key>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text){
"status": "Success",
"data": {
"favorites": [
{
"id": 1,
"title": "Spirit Song",
"source": "audios/example-audio.mp3",
"media_type": "0",
"pivot": {
"member_id": 1,
"media_id": 1
}
}
]
}
}Engagement
List Favorites
Lists the favorite media items saved by the authenticated member.
GET
/
v1
/
favorites
List Favorites
curl --request GET \
--url https://api.thefaithapp.com/v1/favorites \
--header 'Authorization: Bearer <token>' \
--header 'X-API-Key: <api-key>'const options = {
method: 'GET',
headers: {'X-API-Key': '<api-key>', Authorization: 'Bearer <token>'}
};
fetch('https://api.thefaithapp.com/v1/favorites', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.thefaithapp.com/v1/favorites"
headers = {
"X-API-Key": "<api-key>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text){
"status": "Success",
"data": {
"favorites": [
{
"id": 1,
"title": "Spirit Song",
"source": "audios/example-audio.mp3",
"media_type": "0",
"pivot": {
"member_id": 1,
"media_id": 1
}
}
]
}
}Was this page helpful?