zohttp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: GPL-3.0 Imports: 13 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

	BiginBase     string
	BillingBase   string
	BooksBase     string
	CliqBase      string
	CRMBase       string
	CreatorBase   string
	DeskBase      string
	DownloadBase  string
	ExpenseBase   string
	InventoryBase string
	InvoiceBase   string
	MailBase      string
	PeopleBase    string
	ProjectsBase  string
	RecruitBase   string
	SheetBase     string
	SignBase      string
	SprintsBase   string
	WorkDriveBase string
	WriterBase    string
	// contains filtered or unexported fields
}

func GetClient added in v0.3.0

func GetClient() (*Client, error)

func NewClient

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

func (*Client) Request

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

func (*Client) RequestRaw

func (c *Client) RequestRaw(ctx context.Context, 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