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_body"BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//comstruct//EN\nEND:VCALENDAR\n"{
"error": "Validation failed",
"message": "The provided data did not pass validation checks"
}{
"error": "Validation failed",
"message": "The provided data did not pass validation checks"
}Kalender
Kalender-Abonnement
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_body"BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//comstruct//EN\nEND:VCALENDAR\n"{
"error": "Validation failed",
"message": "The provided data did not pass validation checks"
}{
"error": "Validation failed",
"message": "The provided data did not pass validation checks"
}Ruft eine iCalendar-Datei (
.ics) für ein Abonnement ab.
Dieser Endpunkt liegt unter
https://api.comstruct.com/calendars/subscription ohne /v1-Präfix und verwendet Token-Authentifizierung (token Query-Parameter), keinen API-Schlüssel. Es gibt auch eine HEAD-Variante.Autorisierungen
Kalender-Authentifizierungs-Token für den Zugriff auf Kalender-Abonnement-Endpunkte. Dies ist ein separater Authentifizierungsmechanismus vom Standard-API-Schlüssel.
Antwort
Kalender-Abonnement erfolgreich abgerufen
iCalendar-Daten