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 479 days ago
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 482 days ago
import * as wmill from "https://deno.land/x/windmill@v1.85.0/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 610 days ago
import * as wmill from "https://deno.land/x/windmill@v1.70.1/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 645 days ago
import * as wmill from "https://deno.land/x/windmill@v1.22.0/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 862 days ago