New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

gsheet-api-helper

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gsheet-api-helper

Google Spreadsheet API Helper is a Node.js package that provides a helper for simplifies the process of accessing, retrieving and updating data from Gsheet using the Gsheet API.

latest
npmnpm
Version
0.2.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Google Spreadsheet API Helper

Google Spreadsheet API Helper is a Node.js package that provides a helper for simplifies the process of accessing, retrieving and updating data from Gsheet using the Gsheet API.

Prerequesite

  • Create OAuth 2.0 Google click here
  • Invite iam account to the spreadsheet you want to access

Installation

To install the package, you can use npm:

npm install gsheet-api-helper

The Basic

import GoogleSheetHelper from 'GoogleSheetHelper';

const gsheet = new GoogleSheetHelper(<googleApisIss>, <googleApisPrivateKey>);

Get Data

const response = gsheet.get(<sheetId>, <sheetName>, <range>);

console.log(response) // <-- see the response

console.log(response.values) // <-- get the values

Example Response:

{
  range: '<sheetName>!<range>',
  majorDimension: 'ROWS',
  values: [<data>]
}

Batch Update

const response = gsheet.batchUpdate(<sheetId>, <sheetName>, <range>, <values>);

console.log(response) // <-- see the response

console.log(response.values) // <-- get the values

Append

const response = gsheet.append(<sheetId>, <sheetName>, <values>);

console.log(response) // <-- see the response

console.log(response.values) // <-- get the values

FAQs

Package last updated on 10 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts