This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Spreadsheet = require('./spreadsheets').Spreadsheet; | |
const RAW = "RAW"; | |
var spreadsheet = new Spreadsheet(); | |
var authorizePromise = spreadsheet.authorize(); | |
authorizePromise.then(function(){ | |
//spreadsheetId should be replace with the actual spreadsheet id | |
//sheetname should be replaced with the actual sheetname | |
//this will read all the rows from D3 to F4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var readline = require('readline'); | |
var Promise = require('bluebird'); | |
var google = require('googleapis'); | |
//requires the keys to authenticate to google apis | |
var creds = require('./service-account.json'); | |
var OAuth2 = google.auth.OAuth2; | |
var SCOPES = ['https://www.googleapis.com/auth/drive']; | |
exports.Spreadsheet = class Spreadsheet { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this is an example of the Uber API | |
# as a demonstration of an API spec in YAML | |
swagger: '2.0' | |
info: | |
title: Woodpecker API | |
description: Woodpecker | |
version: "1.0.0" | |
# the domain of the service | |
host: api.woodpecker.co | |
# array of all schemes that your API supports |