Giter Site home page Giter Site logo

google-spreadsheet-api-access's Introduction

Google APIS example with Node.js

In this repository you might find two different examples using Node with Javascript:

  • GoogleForms.js
  • googleSpreadsheetWithServiceAccount.js

Using Oauth 2

The first example uses the Oauth 2 authentication to get access to the data of a Google Spreadsheet, and after generate your OAuth 2.0 Client ID in the Google cloud console credentials, you might be able to run it with

node GoogleForms.js

And remember to place your credentials in the root folder of this project, with the name of

credentials.json

Using a service account

In the second example, you might need to generate a new service account credentials

https://console.cloud.google.com/apis/credentials?project=your-project

And store it in this folder and then specify the name of the credentials, by default it will search for the file

service-account-apis-google.json

In this case I'm making a request to the smsforall.org api so you might also need to generate your API keys and set them before running the example, for instance:

export AUTHORIZATION_TOKEN='xxxxxxxxxxxxxxxxxxxxxxxxxxx'
export AUTHORIZATION_CLIENT='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
export SMS_MOBILE_HUB=c5fccd8c-xxxx-xxxx-xxxxx-e82xxxxxxx21c8
export SPREADSHEET_ID=1IB7vuCyZFcxxxxxxxxxxxxxxxxxxxxxxhPzZpIwPE
node googleSpreadsheetWithServiceAccount.js

google-spreadsheet-api-access's People

Contributors

heridev avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.