Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yogeshpaliyal/retrosheet-ts
📃 Read write to Google Sheets without API for FREE (100%)
https://github.com/yogeshpaliyal/retrosheet-ts
google-form google-sheets googlesheets hacktoberfest retrosheet
Last synced: 3 months ago
JSON representation
📃 Read write to Google Sheets without API for FREE (100%)
- Host: GitHub
- URL: https://github.com/yogeshpaliyal/retrosheet-ts
- Owner: yogeshpaliyal
- Created: 2023-08-27T05:59:15.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-28T07:40:20.000Z (over 1 year ago)
- Last Synced: 2024-05-01T12:54:58.873Z (9 months ago)
- Topics: google-form, google-sheets, googlesheets, hacktoberfest, retrosheet
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/retrosheet-ts
- Size: 174 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RetroSheet-TS
Thanks to : [Retrosheet by theApache64](https://github.com/theapache64/retrosheet)
## Install
![NPM](https://img.shields.io/npm/v/retrosheet-ts)```shell
npm i retrosheet-ts
```## Usage ⌨️
### Fetch Google Sheet Data.
#### Get Spreadsheet ID
Get Spreadsheet ID from spreadsheet url.
![get_spreadsheet_id.png](images/get_spreadsheet_id.png)#### Get Data
```js
import { fetchRetrosheetData } from 'retrosheet-ts';const response = await fetchRetrosheetData("", { sheetName: "notess", query: "select * limit 2" })
```Output
```json
[
{
"created_at": "26/08/2023 17:37:06",
"title": "Hello",
"description": "Description"
},
{
"created_at": "26/08/2023 17:37:28",
"title": "Yogesh",
"description": "Description"
}
]
```### Write Data to Google Sheet.
Follow steps 1 - 4 from [here](https://github.com/theapache64/retrosheet)
#### Get Form ID
Get form id Form URL
![get-form-id.png](images/get-form-id.png)#### Write data
```js
import { writeRetrosheetData } from 'retrosheet-ts';const request = {
'Title': "test title",
'Description': 'test Description'
}
writeRetrosheetData("", request)
```
**_Note: Keys of request must be the same as Form Field name._**