curl --request GET \
--url https://staging.housera.ro/api/v1/account/viewings \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.housera.ro/api/v1/account/viewings",
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/viewings', 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/viewings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": 123,
"kind": "viewing",
"starts_at": "<string>",
"ends_at": "<string>",
"status": "completed",
"request_expires_at": "<string>",
"visitor": {
"name": "<string>",
"email": null,
"phone": "<string>",
"account": true
},
"source": "schedule",
"duration_min": 123,
"held": true,
"bookable": "<string>",
"booked_at": "<string>",
"proposed_starts_at": "<string>",
"attendance_confirmed_at": "<string>",
"reminded_day_at": "<string>",
"reminded_soon_at": "<string>",
"outcome": "offer",
"outcome_at": "<string>",
"agent": {
"name": "<string>",
"email": "<string>"
},
"place": "office",
"place_rooms": 123,
"seat": 123
}
],
"links": {
"first": "<string>",
"last": "<string>",
"prev": "<string>",
"next": "<string>"
},
"meta": {
"path": "<string>",
"per_page": 1,
"next_cursor": "<string>",
"prev_cursor": "<string>",
"pending_requests": 1,
"next_at": "<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,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"detail": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}Citește agenda peste anunțuri
Vizionările, cererile și zilele de vizită liberă de pe toate anunțurile din agenda contului, ca în pagina „Agenda” din portal: anunțurile tale, cele ale căror vizionări ți-au fost date, ale echipei pentru un manager și proiectele unui consultant (doar clienții lui). Implicit, de azi pe 14 zile, cel mult 93 de zile într-o cerere, câte o pagină. O vizionare a cărei oră a trecut are starea completed imediat. Datele clienților și nota de la „Cum a fost?” vin doar pentru o cheie cu dreptul leads:read.
curl --request GET \
--url https://staging.housera.ro/api/v1/account/viewings \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.housera.ro/api/v1/account/viewings",
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/viewings', 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/viewings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": 123,
"kind": "viewing",
"starts_at": "<string>",
"ends_at": "<string>",
"status": "completed",
"request_expires_at": "<string>",
"visitor": {
"name": "<string>",
"email": null,
"phone": "<string>",
"account": true
},
"source": "schedule",
"duration_min": 123,
"held": true,
"bookable": "<string>",
"booked_at": "<string>",
"proposed_starts_at": "<string>",
"attendance_confirmed_at": "<string>",
"reminded_day_at": "<string>",
"reminded_soon_at": "<string>",
"outcome": "offer",
"outcome_at": "<string>",
"agent": {
"name": "<string>",
"email": "<string>"
},
"place": "office",
"place_rooms": 123,
"seat": 123
}
],
"links": {
"first": "<string>",
"last": "<string>",
"prev": "<string>",
"next": "<string>"
},
"meta": {
"path": "<string>",
"per_page": 1,
"next_cursor": "<string>",
"prev_cursor": "<string>",
"pending_requests": 1,
"next_at": "<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,
"errors": [
{
"pointer": "<string>",
"code": "<string>",
"detail": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"detail": "<string>",
"existing": {
"code": "<string>",
"external_ref": "<string>"
}
}Parametri interogare
Limba răspunsului, ro sau en. Schimbă mesajele erorilor (title, detail), etichetele și, când anunțul are o traducere aprobată în limba cerută, titlul și descrierea lui. Codurile sunt aceleași în orice limbă. Are întâietate față de Accept-Language și de limba contului.
ro, en