Documentation ¶
Index ¶
- Constants
- type Advanced
- type Basic
- func (o *Basic) DisableSslVerification()
- func (o *Basic) FollowRedirects() bool
- func (o *Basic) OAuthTimestamp() string
- func (o *Basic) QueryStringAuth() bool
- func (o *Basic) Timeout() int
- func (o *Basic) UserAgent() string
- func (o *Basic) VerifySsl() bool
- func (o *Basic) Version() string
- func (o *Basic) WPAPI() bool
- func (o *Basic) WPAPIPrefix() string
Constants ¶
View Source
const DefaultAPIPrefix = "/wc-api/"
DefaultAPIPrefix ...
View Source
const DefaultUserAgent string = "WooCommerce API Client-Go"
DefaultUserAgent ... No version number.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced struct { WPAPI bool // Allow make requests to the new WP REST API integration WPAPIPrefix string // Custom WP REST API URL prefix Version string // API version, default is v3 Timeout int // Request timeout, default is 15 FollowRedirects bool // Allow the API call to follow redirects VerifySsl bool // Verify SSL when connect QueryStringAuth bool // Force Basic Authentication OAuthTimestamp string // Custom oAuth timestamp UserAgent string // Custom user-agent // contains filtered or unexported fields }
Advanced options of WooCommerce API Client
type Basic ¶
type Basic struct { URL string // Store URL Key string // API Consumer Key Secret string // API Consumer Secret Options Advanced // Advanced Options (see below) }
Basic options of WooCommerce API Client
func (*Basic) DisableSslVerification ¶
func (o *Basic) DisableSslVerification()
DisableSslVerification in case of debug
func (*Basic) FollowRedirects ¶
FollowRedirects during requests
func (*Basic) OAuthTimestamp ¶
OAuthTimestamp return OAuth specific timestamp
func (*Basic) QueryStringAuth ¶
QueryStringAuth returns true when credentials will pass through query string
func (*Basic) WPAPIPrefix ¶
WPAPIPrefix is a prefix for WordPress API requests
Click to show internal directories.
Click to hide internal directories.