Get services of an organization
curl --request GET \
--url https://b.anny.co/api/v1/organizations/{organization_slug}/servicesimport requests
url = "https://b.anny.co/api/v1/organizations/{organization_slug}/services"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://b.anny.co/api/v1/organizations/{organization_slug}/services', 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/organizations/{organization_slug}/services",
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/organizations/{organization_slug}/services"
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/organizations/{organization_slug}/services")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.anny.co/api/v1/organizations/{organization_slug}/services")
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": "services",
"id": "2777",
"attributes": {
"name": "Basic",
"slug": "mvwps18k7e0lifyxl7icid4znqdcwq",
"description": null,
"hidden": false,
"is_rental_option": true,
"has_flexible_duration": true,
"auto_duration": false,
"allow_cross_schedule": false,
"requires_booking_description": false,
"requires_address": true,
"requires_mobile": true,
"allow_customer_notes": true,
"allow_more_bookings": true,
"charge_off_schedule": true,
"booking_interval": 15,
"calculation_interval": 30,
"min_duration": 30,
"max_duration": 480,
"uncharged_duration": 60,
"is_full_day": false,
"lead_time": 60,
"padding_before": 15,
"padding_after": 15,
"advance_booking_period": 31,
"price": 3,
"starting_fee": 10,
"currency": "EUR",
"tax_rate": 19,
"default_weight": 1,
"created_at": "2021-09-20T13:42:16+00:00",
"updated_at": "2021-09-21T09:33:50+00:00",
"access_code": null
},
"links": {
"self": "https://b.anny.co/api/v1/services/2777"
},
"meta": {
"resource_list": "C01 - London, M01 - Aachen, M02 - Köln",
"min_duration_total": 10
}
},
{
"type": "services",
"id": "2781",
"attributes": {
"name": "Basic",
"slug": "aseddqeendzgjukfzf0wwbjlczurlt",
"description": null,
"hidden": false,
"is_rental_option": true,
"has_flexible_duration": true,
"auto_duration": false,
"allow_cross_schedule": false,
"requires_booking_description": false,
"requires_address": true,
"requires_mobile": true,
"allow_customer_notes": true,
"allow_more_bookings": true,
"charge_off_schedule": true,
"booking_interval": 15,
"calculation_interval": 30,
"min_duration": 30,
"max_duration": 480,
"uncharged_duration": 0,
"is_full_day": false,
"lead_time": 60,
"padding_before": 15,
"padding_after": 15,
"advance_booking_period": 31,
"price": 0,
"starting_fee": 0,
"currency": "EUR",
"tax_rate": 19,
"default_weight": 1,
"created_at": "2021-09-21T08:51:26+00:00",
"updated_at": "2021-09-21T09:26:38+00:00",
"access_code": null
},
"links": {
"self": "https://b.anny.co/api/v1/services/2781"
},
"meta": {
"resource_list": "Conference Speaker Dongle",
"min_duration_total": 0
}
},
{
"type": "services",
"id": "2783",
"attributes": {
"name": "Coaching: Effective Communication & Collaboration",
"slug": "stjymkaryfeu3zpdrjkipxbracoe4x",
"description": "<p>Learn how to effectively communicate to enable and maximize collaboration. Our coach provides you with 3 simple guidelines to venture off into new dimensions of collaboration.</p>",
"hidden": false,
"is_rental_option": false,
"has_flexible_duration": false,
"auto_duration": false,
"allow_cross_schedule": false,
"requires_booking_description": false,
"requires_address": true,
"requires_mobile": true,
"allow_customer_notes": true,
"allow_more_bookings": true,
"charge_off_schedule": true,
"booking_interval": 15,
"calculation_interval": 180,
"min_duration": 180,
"max_duration": 180,
"uncharged_duration": 0,
"is_full_day": false,
"lead_time": 10080,
"padding_before": 15,
"padding_after": 15,
"advance_booking_period": 31,
"price": 199,
"starting_fee": 0,
"currency": "EUR",
"tax_rate": 19,
"default_weight": 1,
"created_at": "2021-09-21T09:53:34+00:00",
"updated_at": "2021-09-21T10:00:10+00:00",
"access_code": null
},
"links": {
"self": "https://b.anny.co/api/v1/services/2783"
},
"meta": {
"resource_list": "Certified Team Coach",
"min_duration_total": 199
}
}
]
}Resources & Services
Get services of an organization
GET
/
api
/
v1
/
organizations
/
{organization_slug}
/
services
Get services of an organization
curl --request GET \
--url https://b.anny.co/api/v1/organizations/{organization_slug}/servicesimport requests
url = "https://b.anny.co/api/v1/organizations/{organization_slug}/services"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://b.anny.co/api/v1/organizations/{organization_slug}/services', 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/organizations/{organization_slug}/services",
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/organizations/{organization_slug}/services"
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/organizations/{organization_slug}/services")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.anny.co/api/v1/organizations/{organization_slug}/services")
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": "services",
"id": "2777",
"attributes": {
"name": "Basic",
"slug": "mvwps18k7e0lifyxl7icid4znqdcwq",
"description": null,
"hidden": false,
"is_rental_option": true,
"has_flexible_duration": true,
"auto_duration": false,
"allow_cross_schedule": false,
"requires_booking_description": false,
"requires_address": true,
"requires_mobile": true,
"allow_customer_notes": true,
"allow_more_bookings": true,
"charge_off_schedule": true,
"booking_interval": 15,
"calculation_interval": 30,
"min_duration": 30,
"max_duration": 480,
"uncharged_duration": 60,
"is_full_day": false,
"lead_time": 60,
"padding_before": 15,
"padding_after": 15,
"advance_booking_period": 31,
"price": 3,
"starting_fee": 10,
"currency": "EUR",
"tax_rate": 19,
"default_weight": 1,
"created_at": "2021-09-20T13:42:16+00:00",
"updated_at": "2021-09-21T09:33:50+00:00",
"access_code": null
},
"links": {
"self": "https://b.anny.co/api/v1/services/2777"
},
"meta": {
"resource_list": "C01 - London, M01 - Aachen, M02 - Köln",
"min_duration_total": 10
}
},
{
"type": "services",
"id": "2781",
"attributes": {
"name": "Basic",
"slug": "aseddqeendzgjukfzf0wwbjlczurlt",
"description": null,
"hidden": false,
"is_rental_option": true,
"has_flexible_duration": true,
"auto_duration": false,
"allow_cross_schedule": false,
"requires_booking_description": false,
"requires_address": true,
"requires_mobile": true,
"allow_customer_notes": true,
"allow_more_bookings": true,
"charge_off_schedule": true,
"booking_interval": 15,
"calculation_interval": 30,
"min_duration": 30,
"max_duration": 480,
"uncharged_duration": 0,
"is_full_day": false,
"lead_time": 60,
"padding_before": 15,
"padding_after": 15,
"advance_booking_period": 31,
"price": 0,
"starting_fee": 0,
"currency": "EUR",
"tax_rate": 19,
"default_weight": 1,
"created_at": "2021-09-21T08:51:26+00:00",
"updated_at": "2021-09-21T09:26:38+00:00",
"access_code": null
},
"links": {
"self": "https://b.anny.co/api/v1/services/2781"
},
"meta": {
"resource_list": "Conference Speaker Dongle",
"min_duration_total": 0
}
},
{
"type": "services",
"id": "2783",
"attributes": {
"name": "Coaching: Effective Communication & Collaboration",
"slug": "stjymkaryfeu3zpdrjkipxbracoe4x",
"description": "<p>Learn how to effectively communicate to enable and maximize collaboration. Our coach provides you with 3 simple guidelines to venture off into new dimensions of collaboration.</p>",
"hidden": false,
"is_rental_option": false,
"has_flexible_duration": false,
"auto_duration": false,
"allow_cross_schedule": false,
"requires_booking_description": false,
"requires_address": true,
"requires_mobile": true,
"allow_customer_notes": true,
"allow_more_bookings": true,
"charge_off_schedule": true,
"booking_interval": 15,
"calculation_interval": 180,
"min_duration": 180,
"max_duration": 180,
"uncharged_duration": 0,
"is_full_day": false,
"lead_time": 10080,
"padding_before": 15,
"padding_after": 15,
"advance_booking_period": 31,
"price": 199,
"starting_fee": 0,
"currency": "EUR",
"tax_rate": 19,
"default_weight": 1,
"created_at": "2021-09-21T09:53:34+00:00",
"updated_at": "2021-09-21T10:00:10+00:00",
"access_code": null
},
"links": {
"self": "https://b.anny.co/api/v1/services/2783"
},
"meta": {
"resource_list": "Certified Team Coach",
"min_duration_total": 199
}
}
]
}Pfadparameter
Abfrageparameter
Include services relationships
Verfügbare Optionen:
resources, resources.cover_image, service_sub_resources, service_sub_resources.resource, service_sub_resources.resource.cover_image, sub_resources, sub_resources.cover_image, add_ons, cancellation_policy, custom_forms, custom_forms.custom_fields, tests Verfügbare Optionen:
name, created_at, updated_at, price Antwort
OK
Show child attributes
Show child attributes
⌘I