Documentation ¶
Index ¶
- type HTTPClient
- func (client *HTTPClient) Delete(path string) (*http.Response, error)
- func (client *HTTPClient) Get(path string) (*http.Response, error)
- func (client *HTTPClient) Post(path string, body interface{}) (*http.Response, error)
- func (client *HTTPClient) Put(path string, body interface{}) (*http.Response, error)
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient struct {
// contains filtered or unexported fields
}
HTTPClient encapsulates an authenticate http client to issue theme requests to Shopify
func NewClient ¶
func NewClient(params Params) (*HTTPClient, error)
NewClient will create a new authenticated http client that will communicate with Shopify
func (*HTTPClient) Delete ¶
func (client *HTTPClient) Delete(path string) (*http.Response, error)
Delete will send a delete request to the path provided
func (*HTTPClient) Get ¶
func (client *HTTPClient) Get(path string) (*http.Response, error)
Get will send a get request to the path provided
Click to show internal directories.
Click to hide internal directories.