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 222 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 854 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 857 days ago
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 986 days ago
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 1021 days ago
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 1238 days ago