api_client

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiClient

type ApiClient struct {
	ApiToken string
	BaseUrl  string
}

func NewClient

func NewClient() *ApiClient

func (*ApiClient) Get

func (api *ApiClient) Get(path string, queryParams *map[string]string) (*Response, error)

func (*ApiClient) Post

func (api *ApiClient) Post(path string, params *map[string]interface{}) (*Response, error)

type Response

type Response struct {
	Status int
	Body   []byte
}

func (*Response) ParseInto

func (response *Response) ParseInto(dataStruct interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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