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 131 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 764 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 767 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 895 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 930 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 1147 days ago