zendesksupport

package
v0.0.0-...-826ba5d Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	BaseURL string
	Client  *common.JSONHTTPClient
}

Connector covers ticketing as well as help center. https://developer.zendesk.com/api-reference/ticketing/introduction/ https://developer.zendesk.com/api-reference/help_center/help-center-api/introduction/

func NewConnector

func NewConnector(opts ...Option) (conn *Connector, outErr error)

func (*Connector) Delete

func (c *Connector) Delete(ctx context.Context, config common.DeleteParams) (*common.DeleteResult, error)

func (*Connector) HTTPClient

func (c *Connector) HTTPClient() *common.HTTPClient

func (*Connector) JSONHTTPClient

func (c *Connector) JSONHTTPClient() *common.JSONHTTPClient

JSONHTTPClient returns the underlying JSON HTTP client.

func (*Connector) ListObjectMetadata

func (c *Connector) ListObjectMetadata(
	ctx context.Context, objectNames []string,
) (*common.ListObjectMetadataResult, error)

func (*Connector) Provider

func (c *Connector) Provider() providers.Provider

func (*Connector) Read

func (c *Connector) Read(ctx context.Context, config common.ReadParams) (*common.ReadResult, error)

func (*Connector) String

func (c *Connector) String() string

func (*Connector) Write

func (c *Connector) Write(ctx context.Context, config common.WriteParams) (*common.WriteResult, error)

type DescriptiveResponseError

type DescriptiveResponseError struct {
	Details map[string][]descrDetailsError `json:"details"`
	// contains filtered or unexported fields
}

func (DescriptiveResponseError) CombineErr

func (r DescriptiveResponseError) CombineErr(base error) error

func (DescriptiveResponseError) Error

func (d DescriptiveResponseError) Error() string

type MessageResponseError

type MessageResponseError struct {
	Error struct {
		Title   string `json:"title"`
		Message string `json:"message"`
	} `json:"error"`
}

func (MessageResponseError) CombineErr

func (r MessageResponseError) CombineErr(base error) error

type Option

type Option = func(params *parameters)

Option is a function which mutates the connector configuration.

func WithAuthenticatedClient

func WithAuthenticatedClient(client common.AuthenticatedHTTPClient) Option

func WithClient

func WithClient(ctx context.Context, client *http.Client,
	config *oauth2.Config, token *oauth2.Token, opts ...common.OAuthOption,
) Option

func WithWorkspace

func WithWorkspace(workspaceRef string) Option

type StatusResponseError

type StatusResponseError struct {
	Status int    `json:"status"`
	Error  string `json:"error"`
}

func (StatusResponseError) CombineErr

func (r StatusResponseError) CombineErr(base error) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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