Get end times for start date times for a resource
curl --request GET \
--url https://b.anny.co/api/v1/intervals/endimport requests
url = "https://b.anny.co/api/v1/intervals/end"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://b.anny.co/api/v1/intervals/end', 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/intervals/end",
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/intervals/end"
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/intervals/end")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.anny.co/api/v1/intervals/end")
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[
{
"date_time": "2021-10-05T08:00:00+00:00",
"local_date_time": "2021-10-05T10:00:00+02:00",
"available": false,
"number_available": 0,
"remaining_number_available": 0,
"quota": 3,
"unavailability_type": "under_min_duration"
},
{
"date_time": "2021-10-05T09:00:00+00:00",
"local_date_time": "2021-10-05T11:00:00+02:00",
"available": false,
"number_available": 0,
"remaining_number_available": 0,
"quota": 3,
"unavailability_type": "under_min_duration"
},
{
"date_time": "2021-10-05T10:00:00+00:00",
"local_date_time": "2021-10-05T12:00:00+02:00",
"available": false,
"number_available": 0,
"remaining_number_available": 0,
"quota": 3,
"unavailability_type": "under_min_duration"
},
{
"date_time": "2021-10-05T11:00:00+00:00",
"local_date_time": "2021-10-05T13:00:00+02:00",
"available": false,
"number_available": 0,
"remaining_number_available": 0,
"quota": 3,
"unavailability_type": "under_min_duration"
},
{
"date_time": "2021-10-05T12:00:00+00:00",
"local_date_time": "2021-10-05T14:00:00+02:00",
"available": false,
"number_available": 0,
"remaining_number_available": 0,
"quota": 3,
"unavailability_type": "under_min_duration"
},
{
"date_time": "2021-10-05T13:00:00+00:00",
"local_date_time": "2021-10-05T15:00:00+02:00",
"available": false,
"number_available": 0,
"remaining_number_available": 0,
"quota": 3,
"unavailability_type": "under_min_duration"
},
{
"date_time": "2021-10-05T14:00:00+00:00",
"local_date_time": "2021-10-05T16:00:00+02:00",
"available": true,
"number_available": 3,
"remaining_number_available": 1,
"quota": 3,
"unavailability_type": "none"
},
{
"date_time": "2021-10-05T15:00:00+00:00",
"local_date_time": "2021-10-05T17:00:00+02:00",
"available": true,
"number_available": 3,
"remaining_number_available": 1,
"quota": 3,
"unavailability_type": "none"
},
{
"date_time": "2021-10-05T16:00:00+00:00",
"local_date_time": "2021-10-05T18:00:00+02:00",
"available": true,
"number_available": 3,
"remaining_number_available": 1,
"quota": 3,
"unavailability_type": "none"
}
]Availability & Search
Get end times for start date times for a resource
Get all interval end dates for a start datetime.
GET
/
api
/
v1
/
intervals
/
end
Get end times for start date times for a resource
curl --request GET \
--url https://b.anny.co/api/v1/intervals/endimport requests
url = "https://b.anny.co/api/v1/intervals/end"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://b.anny.co/api/v1/intervals/end', 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/intervals/end",
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/intervals/end"
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/intervals/end")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.anny.co/api/v1/intervals/end")
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[
{
"date_time": "2021-10-05T08:00:00+00:00",
"local_date_time": "2021-10-05T10:00:00+02:00",
"available": false,
"number_available": 0,
"remaining_number_available": 0,
"quota": 3,
"unavailability_type": "under_min_duration"
},
{
"date_time": "2021-10-05T09:00:00+00:00",
"local_date_time": "2021-10-05T11:00:00+02:00",
"available": false,
"number_available": 0,
"remaining_number_available": 0,
"quota": 3,
"unavailability_type": "under_min_duration"
},
{
"date_time": "2021-10-05T10:00:00+00:00",
"local_date_time": "2021-10-05T12:00:00+02:00",
"available": false,
"number_available": 0,
"remaining_number_available": 0,
"quota": 3,
"unavailability_type": "under_min_duration"
},
{
"date_time": "2021-10-05T11:00:00+00:00",
"local_date_time": "2021-10-05T13:00:00+02:00",
"available": false,
"number_available": 0,
"remaining_number_available": 0,
"quota": 3,
"unavailability_type": "under_min_duration"
},
{
"date_time": "2021-10-05T12:00:00+00:00",
"local_date_time": "2021-10-05T14:00:00+02:00",
"available": false,
"number_available": 0,
"remaining_number_available": 0,
"quota": 3,
"unavailability_type": "under_min_duration"
},
{
"date_time": "2021-10-05T13:00:00+00:00",
"local_date_time": "2021-10-05T15:00:00+02:00",
"available": false,
"number_available": 0,
"remaining_number_available": 0,
"quota": 3,
"unavailability_type": "under_min_duration"
},
{
"date_time": "2021-10-05T14:00:00+00:00",
"local_date_time": "2021-10-05T16:00:00+02:00",
"available": true,
"number_available": 3,
"remaining_number_available": 1,
"quota": 3,
"unavailability_type": "none"
},
{
"date_time": "2021-10-05T15:00:00+00:00",
"local_date_time": "2021-10-05T17:00:00+02:00",
"available": true,
"number_available": 3,
"remaining_number_available": 1,
"quota": 3,
"unavailability_type": "none"
},
{
"date_time": "2021-10-05T16:00:00+00:00",
"local_date_time": "2021-10-05T18:00:00+02:00",
"available": true,
"number_available": 3,
"remaining_number_available": 1,
"quota": 3,
"unavailability_type": "none"
}
]Abfrageparameter
Requested date
Requested service
Requested resource
Antwort
200 - application/vnd.api+json
OK
Indicate whether datetime is available for selection.
Start or end datetime of an interval depending on the request.
Indicate how many booking are available for this interval
Readon why the interval is not available
Verfügbare Optionen:
booking, schedule, past, lead_time, under_min, over_max, none, intermediate_blocking ⌘I