teams

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MPL-2.0 Imports: 6 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 {
	// contains filtered or unexported fields
}

Client is the teams API client

func New

func New(webexClient *webexsdk.Client, config *Config) *Client

New creates a new Teams plugin

func (*Client) Create

func (c *Client) Create(team *Team) (*Team, error)

Create creates a new team

func (*Client) Delete

func (c *Client) Delete(teamID string) error

Delete deletes a team

func (*Client) Get

func (c *Client) Get(teamID string) (*Team, error)

Get returns details for a team

func (*Client) List

func (c *Client) List(options *ListOptions) (*TeamsPage, error)

List returns a list of teams

func (*Client) Update

func (c *Client) Update(teamID string, team *Team) (*Team, error)

Update updates an existing team

type Config

type Config struct {
}

Config holds the configuration for the Teams plugin

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns the default configuration for the Teams plugin

type ListOptions

type ListOptions struct {
	Max int `url:"max,omitempty"`
}

ListOptions contains the options for listing teams

type Team

type Team struct {
	ID          string     `json:"id,omitempty"`
	Name        string     `json:"name,omitempty"`
	Description string     `json:"description,omitempty"`
	CreatorID   string     `json:"creatorId,omitempty"`
	Created     *time.Time `json:"created,omitempty"`
}

Team represents a Webex team

type TeamsPage

type TeamsPage struct {
	Items []Team `json:"items"`
	*webexsdk.Page
}

TeamsPage represents a paginated list of teams

Jump to

Keyboard shortcuts

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