Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseResponse ¶
ParseResponse parses an HTTP response into the given interface
Types ¶
type Client ¶
type Client struct {
// HTTP client used to communicate with the API
HttpClient *http.Client
// Base URL for API requests
BaseURL *url.URL
// Access token for API authentication
AccessToken string
// Configuration for the client
Config *Config
// contains filtered or unexported fields
}
Client is the main Webex client struct
func NewClient ¶
NewClient creates a new Webex client with the given access token and optional configuration
func (*Client) RegisterPlugin ¶
RegisterPlugin registers a plugin with the client
type Config ¶
type Config struct {
// BaseURL is the base URL of the Webex API
BaseURL string
// Timeout for API requests
Timeout time.Duration
// Default headers to include in API requests
DefaultHeaders map[string]string
// Custom HTTP client to use instead of the default one
// If nil, a default client will be created with the specified Timeout
HttpClient *http.Client
}
Config holds the configuration for the Webex client
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns a default configuration for the Webex client
type Page ¶
type Page struct {
Items []json.RawMessage `json:"items"`
NextPage string `json:"nextPage,omitempty"`
PrevPage string `json:"prevPage,omitempty"`
HasNext bool `json:"-"`
HasPrev bool `json:"-"`
Client *Client `json:"-"`
Resource string `json:"-"`
}
Page represents a paginated response from the Webex API
Click to show internal directories.
Click to hide internal directories.