Read a listing's schedule
curl --request GET \
--url https://staging.housera.ro/api/v1/account/listings/{code}/viewing-schedule \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.housera.ro/api/v1/account/listings/{code}/viewing-schedule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://staging.housera.ro/api/v1/account/listings/{code}/viewing-schedule', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://staging.housera.ro/api/v1/account/listings/{code}/viewing-schedule"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"code": "<string>",
"mode": "<string>",
"timezone": "<string>",
"hours": {},
"duration_min": 123,
"notice_min": "<string>",
"available_from": "<string>",
"confirmation": "<string>",
"runner": {
"name": "<string>",
"email": "<string>"
},
"blocked_dates": [
{
"from": "<string>",
"to": "<string>"
}
],
"occupant": {
"notify": true,
"phone": "<string>"
},
"effective": {
"hours": {},
"duration_min": 123,
"buffer_min": 123,
"notice_min": 123,
"horizon_days": 123,
"confirmation": "<string>",
"blocked_dates": [
{
"from": "<string>",
"to": "<string>"
}
]
},
"base_saved": true,
"pending_requests": 123,
"confirmed_pending": {
"confirmed": 123,
"still_waiting": 123
}
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}Viewings
Read a listing's schedule
How the listing takes its hours (inherit, own or on_request), its own hours, its rules, who runs its viewings and, in effective, what generates its hours now.
GET
/
account
/
listings
/
{code}
/
viewing-schedule
Read a listing's schedule
curl --request GET \
--url https://staging.housera.ro/api/v1/account/listings/{code}/viewing-schedule \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.housera.ro/api/v1/account/listings/{code}/viewing-schedule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://staging.housera.ro/api/v1/account/listings/{code}/viewing-schedule', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://staging.housera.ro/api/v1/account/listings/{code}/viewing-schedule"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"code": "<string>",
"mode": "<string>",
"timezone": "<string>",
"hours": {},
"duration_min": 123,
"notice_min": "<string>",
"available_from": "<string>",
"confirmation": "<string>",
"runner": {
"name": "<string>",
"email": "<string>"
},
"blocked_dates": [
{
"from": "<string>",
"to": "<string>"
}
],
"occupant": {
"notify": true,
"phone": "<string>"
},
"effective": {
"hours": {},
"duration_min": 123,
"buffer_min": 123,
"notice_min": 123,
"horizon_days": 123,
"confirmation": "<string>",
"blocked_dates": [
{
"from": "<string>",
"to": "<string>"
}
]
},
"base_saved": true,
"pending_requests": 123,
"confirmed_pending": {
"confirmed": 123,
"still_waiting": 123
}
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}Path Parameters
Query Parameters
The response language, ro or en. It changes error messages (title, detail), labels and, when the listing has an approved translation in that language, its title and description. Codes are the same in every language. It takes precedence over Accept-Language and over the account's language.
Available options:
ro, en