Get available resources for a given service
curl --request GET \
--url https://b.anny.co/api/v1/services/{service_slug}/resourcesimport requests
url = "https://b.anny.co/api/v1/services/{service_slug}/resources"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://b.anny.co/api/v1/services/{service_slug}/resources', 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/services/{service_slug}/resources",
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/services/{service_slug}/resources"
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/services/{service_slug}/resources")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.anny.co/api/v1/services/{service_slug}/resources")
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": "resources",
"id": "21888",
"attributes": {
"slug": "c01",
"name": "C01 - London",
"description": "<p>Testbeschreibung C01</p>",
"plain_description": "Testbeschreibung C01",
"availabilityMode": null,
"continuous": true,
"color": null,
"auto_accept_bookings": true,
"timezone": "Europe/Berlin",
"quantity": 1,
"staggered_quantity": null,
"max_booking_quantity": 1,
"has_children": false,
"available_from": "2021-08-31T22:00:00+00:00",
"available_to": null
},
"links": {
"self": "https://b.anny.co/api/v1/resources/21888"
},
"meta": {
"is_available": null,
"booking_count": null,
"number_available": null,
"minimal_service": {
"name": "Basic",
"currency": "EUR",
"has_flexible_duration": true,
"uncharged_duration": 60,
"min_duration": 30,
"min_price_max_duration": 30,
"min_duration_total": 10,
"starting_fee": 10,
"calculation_interval": 30,
"price": 3
},
"service_list": "Basic, Premium",
"services_count": 2,
"settings": {
"showAvailabilityCalendar": true,
"showAvailabilityCount": true,
"checkout": {
"customerCanPickChildren": false,
"requiresLogin": false,
"requiresLoginReason": null,
"verifyGuestEmail": true
},
"checkIn": {
"isEnabled": false
},
"selfCheckIn": {
"isEnabled": false,
"disabledUntil": 15,
"geoCheckEnabled": true,
"geoCheckMaxDelta": 997,
"allowedOverrunTime": 60
}
},
"meta_settings": {
"showAvailabilityCalendar": true,
"showAvailabilityCount": true,
"checkout": {
"customerCanPickChildren": false,
"requiresLogin": false,
"requiresLoginReason": null,
"verifyGuestEmail": true
},
"checkIn": {
"isEnabled": false
},
"selfCheckIn": {
"isEnabled": false,
"disabledUntil": 15,
"geoCheckEnabled": true,
"geoCheckMaxDelta": 997,
"allowedOverrunTime": 60
}
},
"zoom": false
}
}
]
}Resources & Services
Get available resources for a given service
GET
/
api
/
v1
/
services
/
{service_slug}
/
resources
Get available resources for a given service
curl --request GET \
--url https://b.anny.co/api/v1/services/{service_slug}/resourcesimport requests
url = "https://b.anny.co/api/v1/services/{service_slug}/resources"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://b.anny.co/api/v1/services/{service_slug}/resources', 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/services/{service_slug}/resources",
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/services/{service_slug}/resources"
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/services/{service_slug}/resources")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.anny.co/api/v1/services/{service_slug}/resources")
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": "resources",
"id": "21888",
"attributes": {
"slug": "c01",
"name": "C01 - London",
"description": "<p>Testbeschreibung C01</p>",
"plain_description": "Testbeschreibung C01",
"availabilityMode": null,
"continuous": true,
"color": null,
"auto_accept_bookings": true,
"timezone": "Europe/Berlin",
"quantity": 1,
"staggered_quantity": null,
"max_booking_quantity": 1,
"has_children": false,
"available_from": "2021-08-31T22:00:00+00:00",
"available_to": null
},
"links": {
"self": "https://b.anny.co/api/v1/resources/21888"
},
"meta": {
"is_available": null,
"booking_count": null,
"number_available": null,
"minimal_service": {
"name": "Basic",
"currency": "EUR",
"has_flexible_duration": true,
"uncharged_duration": 60,
"min_duration": 30,
"min_price_max_duration": 30,
"min_duration_total": 10,
"starting_fee": 10,
"calculation_interval": 30,
"price": 3
},
"service_list": "Basic, Premium",
"services_count": 2,
"settings": {
"showAvailabilityCalendar": true,
"showAvailabilityCount": true,
"checkout": {
"customerCanPickChildren": false,
"requiresLogin": false,
"requiresLoginReason": null,
"verifyGuestEmail": true
},
"checkIn": {
"isEnabled": false
},
"selfCheckIn": {
"isEnabled": false,
"disabledUntil": 15,
"geoCheckEnabled": true,
"geoCheckMaxDelta": 997,
"allowedOverrunTime": 60
}
},
"meta_settings": {
"showAvailabilityCalendar": true,
"showAvailabilityCount": true,
"checkout": {
"customerCanPickChildren": false,
"requiresLogin": false,
"requiresLoginReason": null,
"verifyGuestEmail": true
},
"checkIn": {
"isEnabled": false
},
"selfCheckIn": {
"isEnabled": false,
"disabledUntil": 15,
"geoCheckEnabled": true,
"geoCheckMaxDelta": 997,
"allowedOverrunTime": 60
}
},
"zoom": false
}
}
]
}Pfadparameter
Abfrageparameter
Verfügbare Optionen:
parent, children, cover_image, gallery_images, organization, organization.address, organization.logo_image, group, category, settings, resource_properties.property, featured_properties.property, schedules, services, services.add_ons, services.cancellation_policy, services.service_sub_resources, services.service_sub_resources.resource, services.service_sub_resources.resource.cover_image, external_calendars, external_calendars.external_resource, custom_address, services.custom_forms, location Antwort
OK
Show child attributes
Show child attributes
⌘I