You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These are auto-generated Go libraries from the Google Discovery Service's JSON description files.
Due to the auto-generated nature of this collection of libraries they may contain breaking changes from one release to
the next. The generator itself and the code it produces are considered beta for this reason.
These client libraries are officially supported by Google. However, the libraries are considered complete and are in
maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.
If you're working with Google Cloud Platform APIs such as Datastore or Pub/Sub, please use the
Cloud Client Libraries for Go instead. These are the new and idiomatic
Go libraries targeted specifically at Google Cloud Platform Services.
Authorization
By default, each API will use Google Application Default Credentials
for authorization credentials used in calling the API endpoints. This will allow your application to run in many
environments without requiring explicit configuration.
You can exert more control over authorization by using the golang.org/x/oauth2
package to create an oauth2.TokenSource. Then pass option.WithTokenSource
to the NewService function: