Download calendar feed
curl --request GET \
--url https://api.contractorscloud.com/api/v1/appointments/icsimport requests
url = "https://api.contractorscloud.com/api/v1/appointments/ics"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.contractorscloud.com/api/v1/appointments/ics', 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.contractorscloud.com/api/v1/appointments/ics",
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.contractorscloud.com/api/v1/appointments/ics"
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.contractorscloud.com/api/v1/appointments/ics")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contractorscloud.com/api/v1/appointments/ics")
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{
"message": "This action is unauthorized."
}{
"message": "An iCal id is required.",
"errors": {
"id": [
"An iCal id is required."
]
}
}Appointments
Download calendar feed
Returns an iCalendar (.ics) rendering of the appointments matching the address returned by Get calendar feed address, suitable for subscribing to from calendar apps. This endpoint does not require a bearer token — it authenticates using the opaque id token instead. Treat the token as a secret; anyone with it can read the calendar feed it describes.
GET
/
appointments
/
ics
Download calendar feed
curl --request GET \
--url https://api.contractorscloud.com/api/v1/appointments/icsimport requests
url = "https://api.contractorscloud.com/api/v1/appointments/ics"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.contractorscloud.com/api/v1/appointments/ics', 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.contractorscloud.com/api/v1/appointments/ics",
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.contractorscloud.com/api/v1/appointments/ics"
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.contractorscloud.com/api/v1/appointments/ics")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contractorscloud.com/api/v1/appointments/ics")
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{
"message": "This action is unauthorized."
}{
"message": "An iCal id is required.",
"errors": {
"id": [
"An iCal id is required."
]
}
}Query Parameters
The feed address returned by Get calendar feed address.
Response
An iCalendar (.ics) document. The response is served with a text/calendar content type rather than JSON.