These features interact with the user's favourites.
If the site allows registered users to create their own API keys then normal registered users can use the API too, allowing them to interact with the site via the API, including modifying their favourites.
Favourites Get and Set
GET https://yourdomain.com/bookyflow/api/favourites
Status: OK (200)
{
"data": {
"ids": [
1,
2,
3,
9,
10,
13
]
},
"meta": {
"code": 200
}
}
POST https://yourdomain.com/bookyflow/api/favourites/{{property_id}}
Add a property id to the user's favourite properties record.
If the property is already in the favourites list, it will respond with a success message.
| Parameter | Description |
|---|---|
{{property_id}} |
(Required parameter) |
Status: OK (200)
{
"data": {
"id": "1"
},
"meta": {
"code": 200
}
}
DELETE https://yourdomain.com/bookyflow/api/favourites/{{property_id}}
Removes a property id from the user's favourites record
| Parameter | Description |
|---|---|
{{property_id}} |
(Required parameter) |
Status: OK (200)
{
"data": {
"id": "1"
},
"meta": {
"code": 200
}
}