Others
This section covers methods not covered by the other sections.
Documentation
getConfig
Get spreadsheet config.
GET /api/:guid
delete
Delete spreadsheet.
DELETE /api/:guid
Examples
Get config
const baseUrl = 'http://localhost:8009/api';
const guid = '15eb1171-5a64-45bf-be96-f52b6125a045';
const token = 'eyJhbGciOiJIUzUxMiIsInR5cCJ9.eyJkb21haW4iOiJsb2NhbGhvc3Q6ODAPQSJ9.Xr2Ir2-zEc_tqV5y6i';
const headers = { 'Authorization': `Bearer ${token}` };
// Get the spreadsheet config
const config = await (await fetch(`${baseUrl}/${guid}`, { headers })).json();
console.log(config);
Delete spreadsheet
const baseUrl = 'http://localhost:8009/api';
const guid = '15eb1171-5a64-45bf-be96-f52b6125a045';
const token = 'eyJhbGciOiJIUzUxMiIsInR5cCJ9.eyJkb21haW4iOiJsb2NhbGhvc3Q6ODAPQSJ9.Xr2Ir2-zEc_tqV5y6i';
const headers = { 'Authorization': `Bearer ${token}` };
// Delete the spreadsheet document
await fetch(`${baseUrl}/${guid}`, {
method: 'DELETE',
headers,
});