Coder Social home page Coder Social logo

browser-samples's Introduction

Google Workspace Browser Samples Build Status

Browser samples for Google Workspace APIs docs.

APIs

Setup

  1. Clone this repository.
  2. Follow the README instructions in the API folder to run and test samples.

Troubleshooting

Here are some tips for troubleshooting errors when running these samples:

  • Be sure to create a local HTTP server to server the HTML page in the quickstart example. Otherwise the gapi client may encounter errors.
  • Check your browser console for errors. In Chrome, this is under View > Developer > JavaScript Console

Below are some possible errors you may encounter:

Error: origin_mismatch

This error will occur during the authorization flow if the host and port used to serve the web page doesn't match an allowed JavaScript origin on your Google Developers Console project. Make sure to correctly specify Authorized JavaScript origins in the quickstart steps.

idpiframe_initialization_failed: Failed to read the 'localStorage' property from 'Window'

The Google Sign-in library requires that 3rd party cookies and data storage is enabled in the web browser. For users that run into this error, prompt them to enable the feature or add an exception for accounts.google.com.

idpiframe_initialization_failed: Not a valid origin for the client

The Google Sign-in library requires that the domain registered in the Google Developers Console matches the domain being used to host the web page. Make sure to correctly specify Authorized JavaScript origins in the quickstart steps.

Linting

This project uses htmllint.

Install & run:

sudo npm install -g htmllint-cli
htmllint

Configure options in the .htmllintrc.

Client Library

Google Workspace APIs use the Google API Javascript client library.

Contributing

Contributions welcome! See the Contributing Guide.

browser-samples's People

Contributors

asrivas avatar grant avatar jmdobry avatar jonutah avatar jsmeredith avatar sqrrrl avatar trevorade avatar youzi 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.