api

package
v0.0.0-...-44cd8c0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	requestgen.BaseAPIClient
}

func NewClient

func NewClient() *Client

func (*Client) NewAuthenticatedRequest

func (c *Client) NewAuthenticatedRequest(ctx context.Context, method, refURL string, params url.Values, payload interface{}) (*http.Request, error)

func (*Client) NewRootRequest

func (c *Client) NewRootRequest() *RootRequest

type RootRequest

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

func (*RootRequest) Do

func (r *RootRequest) Do(ctx context.Context) (*RootResponse, error)

func (*RootRequest) GetParameters

func (r *RootRequest) GetParameters() (map[string]interface{}, error)

GetParameters builds and checks the parameters and return the result in a map object

func (*RootRequest) GetParametersJSON

func (r *RootRequest) GetParametersJSON() ([]byte, error)

GetParametersJSON converts the parameters from GetParameters into the JSON format

func (*RootRequest) GetParametersQuery

func (r *RootRequest) GetParametersQuery() (url.Values, error)

GetParametersQuery converts the parameters from GetParameters into the url.Values format

func (*RootRequest) GetQueryParameters

func (r *RootRequest) GetQueryParameters() (url.Values, error)

GetQueryParameters builds and checks the query parameters and returns url.Values

func (*RootRequest) GetSlugParameters

func (r *RootRequest) GetSlugParameters() (map[string]interface{}, error)

GetSlugParameters builds and checks the slug parameters and return the result in a map object

func (*RootRequest) GetSlugsMap

func (r *RootRequest) GetSlugsMap() (map[string]string, error)

type RootResponse

type RootResponse string

func (*RootResponse) UnmarshalJSON

func (r *RootResponse) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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