0.2.0-0 • Published 6 months ago

retrosheet-ts v0.2.0-0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

RetroSheet-TS

Thanks to : Retrosheet by theApache64

Install

NPM

npm i retrosheet-ts

Usage ⌨️

Fetch Google Sheet Data.

Get Spreadsheet ID

Get Spreadsheet ID from spreadsheet url. get_spreadsheet_id.png

Get Data

import { fetchRetrosheetData } from 'retrosheet-ts';

const response = await fetchRetrosheetData("<Spreadsheet ID>", { sheetName: "notess", query: "select * limit 2" })
[
  {
    "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

Get Form ID

Get form id Form URL get-form-id.png

Write data

import { writeRetrosheetData } from 'retrosheet-ts';

const request = {
    'Title': "test title",
    'Description': 'test Description'
}
writeRetrosheetData("<FORM_ID>", request)

Note: Keys of request must be the same as Form Field name.

0.1.2-SNAPSHOT.1

7 months ago

0.2.0-0

6 months ago

0.1.3-0

6 months ago

0.1.2

8 months ago

0.1.1-testing.1

8 months ago

0.1.1

9 months ago

0.1.0

9 months ago