api

package
v0.3.22 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 7 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 {
	BaseURL    string
	Token      string
	HTTPClient *http.Client
}

func (*Client) Do

func (c *Client) Do(method string, path string, payload any, idempotencyKey string) (Response, error)

func (*Client) DoPublic added in v0.2.0

func (c *Client) DoPublic(method string, path string, payload any, idempotencyKey string) (Response, error)

type DeprecationNotice

type DeprecationNotice struct {
	Deprecated  bool   `json:"deprecated"`
	Message     string `json:"message"`
	Replacement string `json:"replacement"`
	Sunset      string `json:"sunset"`
	DocsURL     string `json:"docs_url"`
}

type Response

type Response struct {
	StatusCode  int
	Body        []byte
	Deprecation DeprecationNotice
}

Jump to

Keyboard shortcuts

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