client

package
v0.0.0-...-e85216b Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	HTTPClient *http.Client
	APIKey     string
	APISecret  string
}

Client is a api client.

func New

func New(apiKey string, apiSecret string) *Client

New creates a new api client.

func (*Client) CertificationHeader

func (c *Client) CertificationHeader(path string) (http.Header, error)

CertificationHeader creates a header.

func (*Client) Do

func (c *Client) Do(req *http.Request) ([]byte, error)

Do sends an HTTP request and returns an HTTP response.

func (*Client) NewRequest

func (c *Client) NewRequest(method string, header http.Header, body []byte, url string) (*http.Request, error)

NewRequest returns a new Request given a method and url.

Jump to

Keyboard shortcuts

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