Get a property
curl --request GET \
--url https://b.anny.co/api/v1/properties/{property_id}import requests
url = "https://b.anny.co/api/v1/properties/{property_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://b.anny.co/api/v1/properties/{property_id}', 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://b.anny.co/api/v1/properties/{property_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://b.anny.co/api/v1/properties/{property_id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://b.anny.co/api/v1/properties/{property_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.anny.co/api/v1/properties/{property_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"type": "properties",
"id": "23",
"attributes": {
"label": "Capacity",
"icon": "users",
"value_type": "number",
"filterable": true,
"private": false
},
"links": {
"self": "https://b.anny.co/api/v1/properties/23"
},
"meta": {
"values": [
"10",
"6",
"12",
"4",
"1",
"15",
"2",
"100",
"30",
"7",
"5",
"8",
"20",
"76",
null,
"13",
"50",
"11",
"18",
"3",
"22",
"167",
"98",
"195",
"94",
"180",
"150",
"120",
"99",
"270",
"44",
"55",
"24",
"32",
"36",
"40",
"16",
"48",
"34",
"21",
"14",
"0",
"17",
"26",
"63",
"148",
"60",
"250",
"700",
"45"
]
}
}
}Resources & Services
Get a property
GET
/
api
/
v1
/
properties
/
{property_id}
Get a property
curl --request GET \
--url https://b.anny.co/api/v1/properties/{property_id}import requests
url = "https://b.anny.co/api/v1/properties/{property_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://b.anny.co/api/v1/properties/{property_id}', 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://b.anny.co/api/v1/properties/{property_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://b.anny.co/api/v1/properties/{property_id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://b.anny.co/api/v1/properties/{property_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.anny.co/api/v1/properties/{property_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"type": "properties",
"id": "23",
"attributes": {
"label": "Capacity",
"icon": "users",
"value_type": "number",
"filterable": true,
"private": false
},
"links": {
"self": "https://b.anny.co/api/v1/properties/23"
},
"meta": {
"values": [
"10",
"6",
"12",
"4",
"1",
"15",
"2",
"100",
"30",
"7",
"5",
"8",
"20",
"76",
null,
"13",
"50",
"11",
"18",
"3",
"22",
"167",
"98",
"195",
"94",
"180",
"150",
"120",
"99",
"270",
"44",
"55",
"24",
"32",
"36",
"40",
"16",
"48",
"34",
"21",
"14",
"0",
"17",
"26",
"63",
"148",
"60",
"250",
"700",
"45"
]
}
}
}Pfadparameter
Abfrageparameter
Verfügbare Optionen:
resource_properties Verfügbare Optionen:
label Antwort
OK
A reusable property definition that can be assigned to resources with specific values.
Show child attributes
Show child attributes
⌘I