Edits history of script submission #44 for ' Delete Event (gcal)'

  • deno
    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 hugo697 399 days ago

  • deno
    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 1031 days ago

  • deno
    
    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 1034 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/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 1163 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/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 1198 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/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 1414 days ago