Documentation
¶
Overview ¶
Package gettokenbyserviceaccount (gettokenbyserviceaccount.go) : This is a Golang library to retrieve access token from Service Account of Google without using Google's OAuth2 package.
# Install You can get this by $ go get -u github.com/tanaikech/go-gettokenbyserviceaccount
More information is https://github.com/tanaikech/go-gettokenbyserviceaccount
---------------------------------------------------------------
Package gettokenbyserviceaccount (gettokenbyserviceaccount.go) : This is a Golang library to retrieve access token from Service Account of Google without using Google's OAuth2 package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken struct {
AccessToken string `json:"access_token"`
ExpiresIn int64 `json:"expires_in"`
TokenType string `json:"token_type"`
Start int64 `json:"start_time"`
End int64 `json:"end_time"`
}
AccessToken :
func Do ¶
func Do(privateKey, clientEmail, impersonateEmail, scopes string) (*AccessToken, error)
Do : Retrieve access token from Google Service Account