type Gcal = {
token: string;
};
export async function main(
gcal_auth: Gcal,
calendarId: string,
eventId: string,
) {
const sendUpdates = "all";
const DELETE_EVENT_URL = `https://www.googleapis.com/calendar/v3/calendars/${calendarId}/events/${eventId}/?sendUpdates=${sendUpdates}`;
const token = gcal_auth["token"];
const response = await fetch(DELETE_EVENT_URL, {
method: "DELETE",
headers: {
Authorization: "Bearer " + token,
"Content-Type": "application/json",
},
});
return response;
}
Submitted by admin 469 days ago
type Gcal = {
token: string;
};
export async function main(
gcal_auth: Gcal,
calendarId: string,
eventId: string,
) {
const sendUpdates = "all";
const DELETE_EVENT_URL =
`https://www.googleapis.com/calendar/v3/calendars/${calendarId}/events/${eventId}/?sendUpdates=${sendUpdates}`;
const token = gcal_auth["token"];
const response = await fetch(DELETE_EVENT_URL, {
method: "DELETE",
headers: {
Authorization: "Bearer " + token,
"Content-Type": "application/json",
},
});
return response;
}
Submitted by admin 472 days ago
import * as wmill from "https://deno.land/x/windmill@v1.85.0/mod.ts";
export async function main(
gcal_auth: wmill.Resource<"gcal">,
calendarId: string,
eventId: string,
) {
const sendUpdates = "all";
const DELETE_EVENT_URL =
`https://www.googleapis.com/calendar/v3/calendars/${calendarId}/events/${eventId}/?sendUpdates=${sendUpdates}`;
const token = gcal_auth["token"];
const response = await fetch(DELETE_EVENT_URL, {
method: "DELETE",
headers: {
Authorization: "Bearer " + token,
"Content-Type": "application/json",
},
});
return response;
}
Submitted by adam186 600 days ago
import * as wmill from "https://deno.land/x/windmill@v1.70.1/mod.ts";
export async function main(
gcal_auth: wmill.Resource<"gcal">,
calendarId: string,
eventId: string,
) {
const sendUpdates = "all";
const DELETE_EVENT_URL =
`https://www.googleapis.com/calendar/v3/calendars/${calendarId}/events/${eventId}/?sendUpdates=${sendUpdates}`;
const token = gcal_auth["token"];
const response = await fetch(DELETE_EVENT_URL, {
method: "DELETE",
headers: {
Authorization: "Bearer " + token,
"Content-Type": "application/json",
},
});
return response;
}
Submitted by adam186 635 days ago
import * as wmill from "https://deno.land/x/windmill@v1.23.0/mod.ts";
export async function main(
gcal_auth: wmill.Resource<"gcal">,
calendarId: string,
eventId: string,
) {
const sendUpdates = "all";
const DELETE_EVENT_URL =
`https://www.googleapis.com/calendar/v3/calendars/${calendarId}/events/${eventId}/?sendUpdates=${sendUpdates}`;
const token = gcal_auth["token"];
const response = await fetch(DELETE_EVENT_URL, {
method: "DELETE",
headers: {
Authorization: "Bearer " + token,
"Content-Type": "application/json",
},
});
return response;
}
Submitted by rossmccrann 852 days ago