8000 GitHub - ellyish/fadi
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

ellyish/fadi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fadi

Fadi is a simple API to read from your public Google Spreadsheet files. You can:

  • Get all rows from a file
  • Get a specific row.
  • Get a range of rows.

Installation

You can install it using npm

$ npm install --save fadi

Usage

If you've checked out the source code repository from GitHub, you may ensure everything works fine before proceeding forward by running the following:

$ node tests

To use Fadi, first you have to import the module and make an instance of Fadi.

var Fadi = require('fadi');
var fadi = new Fadi(api_key, spreadsheet_id);

To retrevive all rows:

fadi.fetch_alaa_rows((result) => console.log(result))

To get a row at a specific place:

fadi.fetch_specific_row(row_num, (result) => console.log(result))

To get a range of rows:

fadi.fetch_specific_range(range, (result) => console.log(result))

Also you can convert two dimensional array to JSON arrays, dealing with the first row as a header.

Fadi.arr2json(...)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0