zohttp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: GPL-3.0 Imports: 12 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 {
	Config *auth.AuthConfig
	HTTP   *http.Client

	CRMBase       string
	ProjectsBase  string
	WorkDriveBase string
	WriterBase    string
	CliqBase      string
	DownloadBase  string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config *auth.AuthConfig) (*Client, error)

func (*Client) Request

func (c *Client) Request(method, rawURL string, opts *RequestOpts) (json.RawMessage, error)

func (*Client) RequestRaw

func (c *Client) RequestRaw(method, rawURL string, params map[string]string) ([]byte, http.Header, int, error)

type FileUpload

type FileUpload struct {
	Filename string
	Data     []byte
}

type RequestOpts

type RequestOpts struct {
	Params  map[string]string
	JSON    any
	Form    map[string]string
	Files   map[string]FileUpload
	Headers map[string]string
}

Jump to

Keyboard shortcuts

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