Edits history of script submission #36 for ' Create Spreadsheet (gsheets)'

  • deno
    type Gsheets = {
      token: string;
    };
    export async function main(gsheets_auth: Gsheets) {
      const CREATE_URL = `https://sheets.googleapis.com/v4/spreadsheets`;
    
      const token = gsheets_auth["token"];
    
      const response = await fetch(CREATE_URL, {
        method: "POST",
        headers: {
          Authorization: "Bearer " + token,
          "Content-Type": "application/json",
        },
      });
    
      const result = await response.json();
    
      return { result: result };
    }
    

    Submitted by hugo697 395 days ago

  • deno
    type Gsheets = {
      token: string;
    };
    export async function main(gsheets_auth: Gsheets) {
      const CREATE_URL = `https://sheets.googleapis.com/v4/spreadsheets`;
    
      const token = gsheets_auth["token"];
    
      const response = await fetch(CREATE_URL, {
        method: "POST",
        headers: {
          Authorization: "Bearer " + token,
          "Content-Type": "application/json",
        },
      });
    
      const result = await response.json();
    
      return { result: result };
    }
    

    Submitted by admin 1028 days ago

  • deno
    
    type Gsheets = {
      token: string;
    };
    export async function main(gsheets_auth: Gsheets) {
        
      const CREATE_URL = `https://sheets.googleapis.com/v4/spreadsheets`;
    
      const token = gsheets_auth["token"];
    
      const response = await fetch(CREATE_URL, {
        method: "POST",
        headers: {
          Authorization: "Bearer " + token,
          "Content-Type": "application/json",
        },
      });
    
      const result = await response.json();
    
      return { result: result };
    }
    

    Submitted by admin 1031 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(gsheets_auth: wmill.Resource<"gsheets">) {
        
      const CREATE_URL = `https://sheets.googleapis.com/v4/spreadsheets`;
    
      const token = gsheets_auth["token"];
    
      const response = await fetch(CREATE_URL, {
        method: "POST",
        headers: {
          Authorization: "Bearer " + token,
          "Content-Type": "application/json",
        },
      });
    
      const result = await response.json();
    
      return { result: result };
    }
    

    Submitted by adam186 1159 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(gsheets_auth: wmill.Resource<"gsheets">) {
        
      const CREATE_URL = `https://sheets.googleapis.com/v4/spreadsheets`;
    
      const token = gsheets_auth["token"];
    
      const response = await fetch(CREATE_URL, {
        method: "POST",
        headers: {
          Authorization: "Bearer " + token,
          "Content-Type": "application/json",
        },
      });
    
      const result = await response.json();
    
      return { result: result };
    }
    

    Submitted by adam186 1194 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(gsheets_auth: wmill.Resource<"gsheets">) {
        
      const CREATE_URL = `https://sheets.googleapis.com/v4/spreadsheets`;
    
      const token = gsheets_auth["token"];
    
      const response = await fetch(CREATE_URL, {
        method: "POST",
        headers: {
          Authorization: "Bearer " + token,
          "Content-Type": "application/json",
        },
      });
    
      const result = await response.json();
    
      return { result: result };
    }
    

    Submitted by rossmccrann 1411 days ago