graphqlclient

package
v7.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(shopName string, opts ...Option) *graphql.Client

NewClient creates a new client (in fact, just a simple wrapper for a graphql.Client).

Types

type Option

type Option func(t *transport)

Option is used to configure options.

func WithPrivateAppAuth

func WithPrivateAppAuth(apiKey string, accessToken string) Option

WithPrivateAppAuth optionally sets private app credentials (API key and access token).

func WithToken

func WithToken(token string) Option

WithToken optionally sets access token.

func WithVersion

func WithVersion(apiVersion string) Option

WithVersion optionally sets the API version if the passed string is valid.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL