As well as OAuth2 authentication, you can authenticate without user interaction via Service accounts. This involves downloading a secret JSON key with the authentication details.
To use, go to your Project in the https://console.developers.google.com/apis/credentials/serviceaccountkey
and select JSON Key type. Save the file
to your computer and call it via supplying
the file path to the
Navigate to it via: Google Dev Console > Credentials > New credentials > Service account Key > Select service account > Key type = JSON
the JSON file downloaded from Google Developer Console
Scope of the JSON file auth if needed
(Invisible) Sets authentication token
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.