Edits history of script submission #61 for ' Search Shared Drives (gdrive)'

  • deno
    type Gdrive = {
      token: string;
    };
    export async function main(gdrive_auth: Gdrive) {
      const q = "";
      const SEARCH_SHARED_DRIVE_URL = `https://www.googleapis.com/drive/v3/drives/?q=${q}`;
    
      const token = gdrive_auth["token"];
    
      const response = await fetch(SEARCH_SHARED_DRIVE_URL, {
        method: "GET",
        headers: {
          Authorization: "Bearer " + token,
          "Content-Type": "application/json",
        },
      });
    
      return await response.json();
    }
    

    Submitted by hugo697 396 days ago

  • deno
    type Gdrive = {
      token: string;
    };
    export async function main(gdrive_auth: Gdrive) {
      const q = "";
      const SEARCH_SHARED_DRIVE_URL = `https://www.googleapis.com/drive/v3/drives/?q=${q}`;
    
      const token = gdrive_auth["token"];
    
      const response = await fetch(SEARCH_SHARED_DRIVE_URL, {
        method: "GET",
        headers: {
          Authorization: "Bearer " + token,
          "Content-Type": "application/json",
        },
      });
    
      return await response.json();
    }
    

    Submitted by admin 1028 days ago

  • deno
    
    type Gdrive = {
      token: string;
    };
    export async function main(
        gdrive_auth: Gdrive,
    ) {
        const q = "";
        const SEARCH_SHARED_DRIVE_URL = `https://www.googleapis.com/drive/v3/drives/?q=${q}`;
    
        const token = gdrive_auth["token"];
    
        const response = await fetch(SEARCH_SHARED_DRIVE_URL, {
            method: "GET",
            headers: {
                Authorization: "Bearer " + token,
                "Content-Type": "application/json",
            },
        });
    
        return await response.json();
    }

    Submitted by admin 1032 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(
        gdrive_auth: wmill.Resource<"gdrive">,
    ) {
        const q = "";
        const SEARCH_SHARED_DRIVE_URL = `https://www.googleapis.com/drive/v3/drives/?q=${q}`;
    
        const token = gdrive_auth["token"];
    
        const response = await fetch(SEARCH_SHARED_DRIVE_URL, {
            method: "GET",
            headers: {
                Authorization: "Bearer " + token,
                "Content-Type": "application/json",
            },
        });
    
        return await response.json();
    }

    Submitted by adam186 1160 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(
        gdrive_auth: wmill.Resource<"gdrive">,
    ) {
        const q = "";
        const SEARCH_SHARED_DRIVE_URL = `https://www.googleapis.com/drive/v3/drives/?q=${q}`;
    
        const token = gdrive_auth["token"];
    
        const response = await fetch(SEARCH_SHARED_DRIVE_URL, {
            method: "GET",
            headers: {
                Authorization: "Bearer " + token,
                "Content-Type": "application/json",
            },
        });
    
        return await response.json();
    }

    Submitted by adam186 1195 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(
        gdrive_auth: wmill.Resource<"gdrive">,
    ) {
        const q = "";
        const SEARCH_SHARED_DRIVE_URL = `https://www.googleapis.com/drive/v3/drives/?q=${q}`;
    
        const token = gdrive_auth["token"];
    
        const response = await fetch(SEARCH_SHARED_DRIVE_URL, {
            method: "GET",
            headers: {
                Authorization: "Bearer " + token,
                "Content-Type": "application/json",
            },
        });
    
        return await response.json();
    }

    Submitted by admin 1392 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    
    export async function main(
        gdrive_auth: wmill.Resource<"gdrive">,
    ) {
        const q = "";
        const SEARCH_SHARED_DRIVE_URL = `https://www.googleapis.com/drive/v3/drives/?q=${q}`;
    
        const token = gdrive_auth["token"];
    
        const response = await fetch(SEARCH_SHARED_DRIVE_URL, {
            method: "GET",
            headers: {
                Authorization: "Bearer " + token,
                "Content-Type": "application/json",
            },
        });
    
        return await response.text();
    }

    Submitted by rossmccrann 1411 days ago