GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — google-api-nodejs-client/samples at main · googleapis/google-api-nodejs-client

Expand file tree

/

samples

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

samples

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
analytics
analytics
 
 
analyticsReporting
analyticsReporting
 
 
blogger
blogger
 
 
compute
compute
 
 
customsearch
customsearch
 
 
directory_v1
directory_v1
 
 
docs
docs
 
 
drive
drive
 
 
gmail
gmail
 
 
jobs
jobs
 
 
mirror
mirror
 
 
people
people
 
 
sheets
sheets
 
 
storage
storage
 
 
test
test
 
 
typescript
typescript
 
 
webmasters
webmasters
 
 
youtube
youtube
 
 
.eslintrc.yml
.eslintrc.yml
 
 
README.md
README.md
 
 
accessTokenAuth.js
accessTokenAuth.js
 
 
defaultauth.js
defaultauth.js
 
 
jwt.js
jwt.js
 
 
mediaupload.js
mediaupload.js
 
 
multiple.js
multiple.js
 
 
oauth2.js
oauth2.js
 
 
package.json
package.json
 
 

README.md

Outline

Google Cloud Platform logo

Google APIs Node.js Client: Node.js Samples

Open in Cloud Shell

Table of Contents

  • Before you begin
  • Samples
    • Access Token Auth
    • Defaultauth
    • Jwt
    • Mediaupload
    • Multiple
    • Oauth2

Before you begin

Before running the samples, make sure you've followed the steps outlined in Using the client library.

cd samples

npm install

cd ..

Samples

Access Token Auth

View the source code.

Open in Cloud Shell

Usage:

node samples/accessTokenAuth.js


Defaultauth

View the source code.

Open in Cloud Shell

Usage:

node samples/defaultauth.js


Jwt

View the source code.

Open in Cloud Shell

Usage:

node samples/jwt.js


Mediaupload

View the source code.

Open in Cloud Shell

Usage:

node samples/mediaupload.js


Multiple

View the source code.

Open in Cloud Shell

Usage:

node samples/multiple.js


Oauth2

View the source code.

Open in Cloud Shell

Usage:

node samples/oauth2.js

[product-docs]:

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.