events

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 events API client

func New

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

New creates a new Events plugin

func (*Client) Get

func (c *Client) Get(eventID string) (*Event, error)

Get returns details for an event by ID

func (*Client) List

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

List returns a list of events with optional filters

type Config

type Config struct {
}

Config holds the configuration for the Events plugin

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns the default configuration for the Events plugin

type Event

type Event struct {
	ID       string    `json:"id,omitempty"`
	Resource string    `json:"resource,omitempty"`
	Type     string    `json:"type,omitempty"`
	AppID    string    `json:"appId,omitempty"`
	ActorID  string    `json:"actorId,omitempty"`
	OrgID    string    `json:"orgId,omitempty"`
	Created  time.Time `json:"created,omitempty"`
	Data     EventData `json:"data,omitempty"`
}

Event represents a Webex event

type EventData

type EventData struct {
	ID                   string          `json:"id,omitempty"`
	RoomID               string          `json:"roomId,omitempty"`
	RoomType             string          `json:"roomType,omitempty"`
	OrgID                string          `json:"orgId,omitempty"`
	Text                 string          `json:"text,omitempty"`
	PersonID             string          `json:"personId,omitempty"`
	PersonEmail          string          `json:"personEmail,omitempty"`
	MeetingID            string          `json:"meetingId,omitempty"`
	CreatorID            string          `json:"creatorId,omitempty"`
	Host                 json.RawMessage `json:"host,omitempty"`
	Attendees            json.RawMessage `json:"attendees,omitempty"`
	TranscriptionEnabled string          `json:"transcriptionEnabled,omitempty"`
	RecordingEnabled     string          `json:"recordingEnabled,omitempty"`
	HasPostMeetingsChat  string          `json:"hasPostMeetingsChat,omitempty"`
	// Telephony-related fields
	CorelationID          string `json:"corelationId,omitempty"`
	CallType              string `json:"callType,omitempty"`
	UserID                string `json:"userId,omitempty"`
	UserType              string `json:"userType,omitempty"`
	CallDirection         string `json:"callDirection,omitempty"`
	IsCallAnswered        string `json:"isCallAnswered,omitempty"`
	CallDurationSeconds   string `json:"callDurationSeconds,omitempty"`
	CallStartTime         string `json:"callStartTime,omitempty"`
	CallAnswerTime        string `json:"callAnswerTime,omitempty"`
	CallTransferTime      string `json:"callTransferTime,omitempty"`
	CallingNumber         string `json:"callingNumber,omitempty"`
	CallingLineID         string `json:"callingLineId,omitempty"`
	CalledNumber          string `json:"calledNumber,omitempty"`
	CalledLineID          string `json:"calledLineId,omitempty"`
	DialedDigits          string `json:"dialedDigits,omitempty"`
	CallRedirectingNumber string `json:"callRedirectingNumber,omitempty"`
	CallRedirectedReason  string `json:"callRedirectedReason,omitempty"`
	Created               string `json:"created,omitempty"`
}

EventData represents the data field of an event

type EventsPage

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

EventsPage represents a paginated list of events

type ListOptions

type ListOptions struct {
	Resource string `url:"resource,omitempty"`
	Type     string `url:"type,omitempty"`
	ActorID  string `url:"actorId,omitempty"`
	From     string `url:"from,omitempty"`
	To       string `url:"to,omitempty"`
	Max      int    `url:"max,omitempty"`
}

ListOptions contains the options for listing events

Jump to

Keyboard shortcuts

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