woocommerce

package
v0.0.0-...-68f3372 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version       = "1.0.0"
	UserAgent     = "WooCommerce API Client-PHP/" + Version
	HashAlgorithm = "HMAC-SHA256"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(store, ck, cs string, option *Options) (*Client, error)

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, endpoint string, params url.Values) (io.ReadCloser, error)

func (*Client) Get

func (c *Client) Get(ctx context.Context, endpoint string, params url.Values) (io.ReadCloser, error)

func (*Client) Options

func (c *Client) Options(ctx context.Context, endpoint string) (io.ReadCloser, error)

func (*Client) Post

func (c *Client) Post(ctx context.Context, endpoint string, data interface{}) (io.ReadCloser, error)

func (*Client) PostWithParams

func (c *Client) PostWithParams(ctx context.Context, endpoint string, params url.Values, data interface{}) (io.ReadCloser, error)

func (*Client) Put

func (c *Client) Put(ctx context.Context, endpoint string, data interface{}) (io.ReadCloser, error)

type Options

type Options struct {
	API             bool
	APIPrefix       string
	Version         string
	Timeout         time.Duration
	VerifySSL       bool
	QueryStringAuth string
	OauthTimestamp  time.Time
	HTTPClient      *http.Client
}

Jump to

Keyboard shortcuts

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