Skip to content

A golang package to help service apps connect to Google APIs

License

Notifications You must be signed in to change notification settings

vonwenm/gogoogleclient

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoGoogleClient

A golang package to help with creating service accounts to google api services.

Environment

The authentication information needed to connect to a Google service account should be downloaded as a json file from the Google developer console.

The location of this file should then be stored in the environment variable GOOGLE_APPLICATION_CREDENTIALS.

Usage

The Client method returns an authenticated http client for the given API scope:

client := gogoogleclient.Client("https://www.googleapis.com/auth/analytics") 
data, error := client.Get(appropriate http request to API)

Dependencies

  • golang.org/x/oauth2
  • golang.org/x/oauth2/google
  • github.com/stretchr/testify/assert

About

A golang package to help service apps connect to Google APIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%