Kalender-Abonnement abrufen
curl --request GET \
--url 'https://api.comstruct.com/calendars/subscription?token='import requests
url = "https://api.comstruct.com/calendars/subscription?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.comstruct.com/calendars/subscription?token=', 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.comstruct.com/calendars/subscription?token=",
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://api.comstruct.com/calendars/subscription?token="
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://api.comstruct.com/calendars/subscription?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.comstruct.com/calendars/subscription?token=")
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_bodyBEGIN:VCALENDAR
VERSION:2.0
PRODID:-//comstruct//EN
END:VCALENDAR
{
"error": "Validation failed",
"message": "The provided data did not pass validation checks"
}{
"error": "Validation failed",
"message": "The provided data did not pass validation checks"
}Calendar
Calendar subscription
Authentifizierung: Kalender-Token (Query-Parameter token), kein API-Schlüssel
Ruft eine iCalendar-Datei (.ics) mit Kalenderereignissen für ein Abonnement ab.
Dieser Endpunkt liegt unter https://api.comstruct.com/calendars/subscription ohne /v1-Präfix.
Verwendet Kalender-Authentifizierungs-Middleware anstelle der Standard-API-Schlüssel-Authentifizierung.
GET
/
calendars
/
subscription
Kalender-Abonnement abrufen
curl --request GET \
--url 'https://api.comstruct.com/calendars/subscription?token='import requests
url = "https://api.comstruct.com/calendars/subscription?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.comstruct.com/calendars/subscription?token=', 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.comstruct.com/calendars/subscription?token=",
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://api.comstruct.com/calendars/subscription?token="
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://api.comstruct.com/calendars/subscription?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.comstruct.com/calendars/subscription?token=")
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_bodyBEGIN:VCALENDAR
VERSION:2.0
PRODID:-//comstruct//EN
END:VCALENDAR
{
"error": "Validation failed",
"message": "The provided data did not pass validation checks"
}{
"error": "Validation failed",
"message": "The provided data did not pass validation checks"
}Returns an iCalendar (
.ics) file for a subscription.
This endpoint is served at
https://api.comstruct.com/calendars/subscription without the /v1 prefix and uses token authentication (token query parameter), not an API key. A HEAD variant is also available.Authorizations
Kalender-Authentifizierungs-Token für den Zugriff auf Kalender-Abonnement-Endpunkte. Dies ist ein separater Authentifizierungsmechanismus vom Standard-API-Schlüssel.
Response
Kalender-Abonnement erfolgreich abgerufen
iCalendar-Daten