npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

rows-api

v1.0.1

Published

rows-api - Unofficial rows.com API for NodeJS.

Downloads

4

Readme

Rows.com API for Javascript

The unofficial Rows.com API for NodeJS provides developers with the ability to integrate with rows.com spreadsheets easily within their applications.

Currently, v1.0 only supports GET requests from the rows.com API.

Further information about Rows.com API can be found at https://developers.rows.com/.

To-do

  1. Implement POST requests
  2. Enhance error handling

How to use

Installation

From commandline, install using the node package manager:

npm install rows-api

Constructor

There are three permissible parameters passed to the constructor:

  • API_KEY - required for the bearer authentication
  • API_URL - optional is the default API URI for rows.com but can be overridden
  • API_VERSION - optional is the default API version for rows.com but can be overriden
constructor(API_KEY, API_URL='https://api.rows.com/', API_VERSION='v1')

Usage

const rowsapi = require('rows-api')
const myrows_app = new rowsapi(API_KEY=secret_key)

Retrieve workspaces:

myrows_app.workspace().then(
    res => {
        console.log('Workspaces in my Rows.com account')
        console.log(res)
    }
)

Output:

Workspace in my Rows.com account
{
  id: '{... guid ...}',
  name: 'ACME Company',
  slug: 'acmecompany',
  created_at: '2022-11-05T10:43:13.714Z'
}

Other functions that follow the same usage:

  • folders()
  • spreadsheets(folder_id=null, offset=null, limit=null)
  • spreadsheet(spreadsheet_id)
  • spreadsheet_rows(spreadsheet_id, table_id, range, cells=false)

Retrieving spreadsheet rows

The values in cells or the cells, formulas etc, can be retrieved using the same function but setting the cells boolean parameter.

spreadsheet_rows(spreadsheet_id, table_id, range, cells=false)

Get values from a range

This will return the values in the cells.

const rowsapi = require('rows-api')
const myrows_app = new rowsapi(API_KEY=secret_key)

myrows_app.spreadsheet_rows(spreadsheet_id='... id ...', '... table_id ...', '... range e.g. A1:A3 ...').then(
    res => {
        console.log('Spreadsheet with table values range')
        console.log(res)
    }
)

Output:

Spreadsheet with table values range
{
  items: [ [ 'Value 1' ], [ 'Value 2' ], [ 'Value 3' ] ]
}

Get cells from a range

This will return the cell itself, such as formulas etc.

const rowsapi = require('rows-api')
const myrows_app = new rowsapi(API_KEY=secret_key)

myrows_app.spreadsheet_rows(spreadsheet_id='... id ...', '... table_id ...', '... range e.g. A1:A3 ...', true).then(
    res => {
        console.log('Spreadsheet with table cells from range')
        console.log(res)
    }
)

Output:

Spreadsheet with table cells from range
{ items: [ [ [Object] ], [ [Object] ], [ [Object] ] ] }