Edits history of script submission #43 for ' List Events (gcal)'

  • deno
    type Gcal = {
      token: string;
    };
    export async function main(gcal_auth: Gcal, calendarId: string) {
      const LIST_EVENTS_URL = `https://www.googleapis.com/calendar/v3/calendars/${calendarId}/events`;
    
      const token = gcal_auth["token"];
    
      const response = await fetch(LIST_EVENTS_URL, {
        method: "GET",
        headers: {
          Authorization: "Bearer " + token,
          "Content-Type": "application/json",
        },
      });
    
      const result = await response.json();
    
      return result;
    }
    

    Submitted by hugo697 399 days ago

  • deno
    type Gcal = {
      token: string;
    };
    export async function main(gcal_auth: Gcal, calendarId: string) {
      const LIST_EVENTS_URL = `https://www.googleapis.com/calendar/v3/calendars/${calendarId}/events`;
    
      const token = gcal_auth["token"];
    
      const response = await fetch(LIST_EVENTS_URL, {
        method: "GET",
        headers: {
          Authorization: "Bearer " + token,
          "Content-Type": "application/json",
        },
      });
    
      const result = await response.json();
    
      return result;
    }
    

    Submitted by admin 1031 days ago

  • deno
    
    type Gcal = {
      token: string;
    };
    export async function main(
      gcal_auth: Gcal,
      calendarId: string,
    ) {
      const LIST_EVENTS_URL =
        `https://www.googleapis.com/calendar/v3/calendars/${calendarId}/events`;
    
      const token = gcal_auth["token"];
    
      const response = await fetch(LIST_EVENTS_URL, {
        method: "GET",
        headers: {
          Authorization: "Bearer " + token,
          "Content-Type": "application/json",
        },
      });
    
      const result = await response.json();
    
      return result;
    }
    

    Submitted by admin 1035 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,
    ) {
      const LIST_EVENTS_URL =
        `https://www.googleapis.com/calendar/v3/calendars/${calendarId}/events`;
    
      const token = gcal_auth["token"];
    
      const response = await fetch(LIST_EVENTS_URL, {
        method: "GET",
        headers: {
          Authorization: "Bearer " + token,
          "Content-Type": "application/json",
        },
      });
    
      const result = await response.json();
    
      return result;
    }
    

    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,
    ) {
      const LIST_EVENTS_URL =
        `https://www.googleapis.com/calendar/v3/calendars/${calendarId}/events`;
    
      const token = gcal_auth["token"];
    
      const response = await fetch(LIST_EVENTS_URL, {
        method: "GET",
        headers: {
          Authorization: "Bearer " + token,
          "Content-Type": "application/json",
        },
      });
    
      const result = await response.json();
    
      return result;
    }
    

    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,
    ) {
      const LIST_EVENTS_URL =
        `https://www.googleapis.com/calendar/v3/calendars/${calendarId}/events`;
    
      const token = gcal_auth["token"];
    
      const response = await fetch(LIST_EVENTS_URL, {
        method: "GET",
        headers: {
          Authorization: "Bearer " + token,
          "Content-Type": "application/json",
        },
      });
    
      const result = await response.json();
    
      return result;
    }
    

    Submitted by rossmccrann 1414 days ago