api

package
v0.0.0-...-2cc5390 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const URL string = "https://secure.shippingapis.com/ShippingAPI.dll?API="

URL is The base endpoint for all API calls

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is the main Client Interface

func New

func New() *Client

New function creates a new API cClient

func (*Client) Call

func (c *Client) Call(request request, response response) error

func (*Client) SetHTTPClient

func (c *Client) SetHTTPClient(client *http.Client)

SetHTTPClient function sets the httpClient for the client

func (*Client) SetUser

func (c *Client) SetUser(USERID string)

SetsUser function sets the USERID for the client

Jump to

Keyboard shortcuts

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