Speed up development with full-stack environments for every branch.

Learn More

Create a new doc with Google Drive API

695 Runs 3123 Views 607 Copies
Saved

Saved

sundip 66

sundip
published 4 years ago


  
  

Create a new Google Doc

A code example written in node.js that creates a new document on your Google Drive, while making use of the following:

  • express - a web framework module used to serve up static content and handle routes

  • request - a HTTP request client module used to make calls to Twitter's API

  • qs - a querystring parser used to encode JSON to querystring parameters

Project contents

  • server.js - contains the node.js code used to call the Google Drive API to create a new file

  • oauth.js - contains the functions used to complete OAuth flow for authenticating and authorizing access to Google Drive

  • index.html - initial html page loaded that displays the Google login button

  • package.json - holds various metadata relevant to the project such as identifying dependencies

Please login/signup to get access to the terminal.

Your session has timed out.

Dismiss (the page may not function properly).