Documentation ¶
Index ¶
- Constants
- func CreateMockClient(summeries ...ResponseSummery) *http.Client
- func NewMockClient(fn RoundTripFunc) *http.Client
- func NewReadClient(ctx context.Context, clientCredentialsJson string) (*http.Client, error)
- func NewReadWriteClient(ctx context.Context, clientCredentialsJson string) (*http.Client, error)
- func NewServiceAccountClient(ctx context.Context, clientCredentials []byte, scopes string) (*http.Client, error)
- type ResponseSummery
- type RoundTripFunc
Constants ¶
View Source
const ReadOnlyScopes = "https://www.googleapis.com/auth/spreadsheets.readonly"
View Source
const ReadWriteScopes = "https://www.googleapis.com/auth/spreadsheets"
Variables ¶
This section is empty.
Functions ¶
func CreateMockClient ¶
func CreateMockClient(summeries ...ResponseSummery) *http.Client
func NewMockClient ¶
func NewMockClient(fn RoundTripFunc) *http.Client
NewMockClient returns *http.Client with Transport replaced to avoid making real calls
func NewReadClient ¶
NewReadClient creates a http client to access non-public spreedsheets. Account will only have read access
func NewReadWriteClient ¶
Types ¶
type ResponseSummery ¶
Click to show internal directories.
Click to hide internal directories.