Fetches all dashboards.
curl --request GET \
--url https://api.homepal.se/v1/third-party/dashboards \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.homepal.se/v1/third-party/dashboards"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.homepal.se/v1/third-party/dashboards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.homepal.se/v1/third-party/dashboards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.homepal.se/v1/third-party/dashboards"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.homepal.se/v1/third-party/dashboards")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.homepal.se/v1/third-party/dashboards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"dashboards": [
{
"id": "01fe4ce4-3057-46eb-8355-5ebebbe8c263",
"folder": "Uthyrning",
"title": "Vakanser",
"tab": "Alla",
"url": "http://localhost:3000/api-access/dashboards/01fe4ce4-3057-46eb-8355-5ebebbe8c263?token=eyJh...Avs",
"preview_widgets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "Antal hyresavtal",
"url": "http://localhost:3000/api-access/widgets/166694b3-c31c-4fbf-89dd-d4ecb49a4a4d?token=eyJh...Avs",
"raw": {
"url": "http://localhost:3000/api-access/widgets/166694b3-c31c-4fbf-89dd-d4ecb49a",
"headers": {
"Authorization": "Bearer eyJh...Avs"
}
}
}
],
"custom_fields": [
{
"field_name": "section_title",
"value": "Hyresdata"
}
]
}
],
"links_expire_in": 3600,
"meta": {
"available_query_params": {
"filter": {
"type": "boolean",
"default": "false"
},
"export": {
"type": "boolean",
"default": "false"
},
"responsive_mode": {
"type": "enum",
"enum": [
"desktop",
"mobile"
],
"default": "desktop"
},
"mobile_breakpoint": {
"type": "number",
"default": "768"
},
"hide_footer": {
"type": false,
"default": false
},
"font_family": {
"type": "enum",
"enum": [
"Source Sans 3",
"UnitOTRB"
],
"default": "Source Sans 3"
},
"companies": {
"type": "enum",
"enum": [
"Company 1",
"Company 2"
],
"default": null
}
}
}
}
}API Reference
Fetches all dashboards.
GET
/
v1
/
third-party
/
dashboards
Fetches all dashboards.
curl --request GET \
--url https://api.homepal.se/v1/third-party/dashboards \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.homepal.se/v1/third-party/dashboards"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.homepal.se/v1/third-party/dashboards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.homepal.se/v1/third-party/dashboards",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.homepal.se/v1/third-party/dashboards"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.homepal.se/v1/third-party/dashboards")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.homepal.se/v1/third-party/dashboards")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"dashboards": [
{
"id": "01fe4ce4-3057-46eb-8355-5ebebbe8c263",
"folder": "Uthyrning",
"title": "Vakanser",
"tab": "Alla",
"url": "http://localhost:3000/api-access/dashboards/01fe4ce4-3057-46eb-8355-5ebebbe8c263?token=eyJh...Avs",
"preview_widgets": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "Antal hyresavtal",
"url": "http://localhost:3000/api-access/widgets/166694b3-c31c-4fbf-89dd-d4ecb49a4a4d?token=eyJh...Avs",
"raw": {
"url": "http://localhost:3000/api-access/widgets/166694b3-c31c-4fbf-89dd-d4ecb49a",
"headers": {
"Authorization": "Bearer eyJh...Avs"
}
}
}
],
"custom_fields": [
{
"field_name": "section_title",
"value": "Hyresdata"
}
]
}
],
"links_expire_in": 3600,
"meta": {
"available_query_params": {
"filter": {
"type": "boolean",
"default": "false"
},
"export": {
"type": "boolean",
"default": "false"
},
"responsive_mode": {
"type": "enum",
"enum": [
"desktop",
"mobile"
],
"default": "desktop"
},
"mobile_breakpoint": {
"type": "number",
"default": "768"
},
"hide_footer": {
"type": false,
"default": false
},
"font_family": {
"type": "enum",
"enum": [
"Source Sans 3",
"UnitOTRB"
],
"default": "Source Sans 3"
},
"companies": {
"type": "enum",
"enum": [
"Company 1",
"Company 2"
],
"default": null
}
}
}
}
}⌘I