{"id":19096276,"url":"https://github.com/cobular/apps-script-api","last_synced_at":"2026-05-26T16:30:19.878Z","repository":{"id":181731054,"uuid":"667128716","full_name":"Cobular/apps-script-api","owner":"Cobular","description":"Easily get a basic HTTP api behind your google sheet! Adds basic insert, update, and get capabilities. ","archived":false,"fork":false,"pushed_at":"2023-07-17T02:21:04.000Z","size":187,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-03T00:17:23.968Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cobular.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-16T18:22:40.000Z","updated_at":"2023-07-16T18:23:10.000Z","dependencies_parsed_at":"2023-07-17T03:37:51.422Z","dependency_job_id":null,"html_url":"https://github.com/Cobular/apps-script-api","commit_stats":null,"previous_names":["cobular/apps-script-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cobular%2Fapps-script-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cobular%2Fapps-script-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cobular%2Fapps-script-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cobular%2Fapps-script-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cobular","download_url":"https://codeload.github.com/Cobular/apps-script-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240149612,"owners_count":19755731,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T03:36:18.495Z","updated_at":"2026-05-26T16:30:19.814Z","avatar_url":"https://github.com/Cobular.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Sheets Database Thing\n\nWowza! This is slick - it allows for using a google sheet as the backing store simple CRUD API. For free!!\n\n## Setup\n\n1. Make a new sheet\n2. Go to `Extensions`, click on `Apps Script` to start that up\n3. Update the `scriptId` in the `.clasp.json` to the id in the google apps script doc (for a url like `https://script.google.com/u/2/home/projects/1yteNy5xoEGLJCZmgJ78Z31MdAMmEbDtRnEdsfG9qOKiT6FrjRP154axS/edit`, it's the `1yteNy5xoEGLJCZmgJ78Z31MdAMmEbDtRnEdsfG9qOKiT6FrjRP154axS` part!)\n3. Sign into clasp - `npx clasp login`\n    1. Choose the account that owns the sheet, go through the oauth thing\n4. Enable the Apps Script API for the account - `https://script.google.com/home/usersettings`, flip that to `on` \n5. `npm run deploy` to push the code to the apps script server\n6. Go back to the apps script document. Reload and ensure the code is present\n7. Hit the blue `Deploy` button in the top right:\n    1. Ensure `Web App` is the mode\n    2. Give it a description\n    3. Hit `Deploy`\n    4. Copy the web app URL on the next page, that's what you need to use!!!\n\n\n## Docs\n\nThere is only 1 url endpoint available, it's at the URL google apps gives you. It accepts POST or GET requets. The requested functionality is controled by the `endpoint` query parameter\n\n---\n\n### GET\n\n`GET` requests are handled by `Code.ts::doGet()`\n\n#### Endpoints:\n(`endpoint` parameter controls which logical endpoint we hit)\n1. `getOneStatus` - get the status of one field by ID  \n1. `getManyStatus` - get the status of many fields by a list of IDs\n1. `getAllStatus` - return all data from the databse\n\n#### `getOneStatus`\nGets the status of one row by it's ID  \n**Params**:\n* `userId` (one required) - the user ID we want to request\n\n#### `getManyStatus` \nGet the status of many fields by multiple IDs\n**Params**:\n* `userId` (one or many required) - the user ID (or IDs) we want to request\n\n#### `getAllStatus`\nGets the status of all rows from the databse\n\nNo params, always returns all rows\n\n---\n\n### POST\n\n`POST` requests are handled by `Code.ts::doPost()`\n\n#### Endpoints:\n(`endpoint` parameter controls which logical endpoint we hit)\n1. `upsertOneStatus` - Update or insert a new row based on user id\n1. `insertOne` - Insert a new row based on user ID\n\n#### `upsertOneStatus`\nUpdate or insert a new row based on user ID and the elements on the first row of the database\n**Params**\n* `userId` - the userID of the row we're inserting or updating\n* `[heading name]` - provide header names as query parameters\n\n\n#### `insertOne`\nInsert a new row based on user ID and the elements on the first row of the database\n**Params**\n* `userId` - the userID of the row we're inserting\n* `[heading name]` - provide header names as query parameters","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcobular%2Fapps-script-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcobular%2Fapps-script-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcobular%2Fapps-script-api/lists"}