Documentation
¶
Index ¶
- type Client
- func (c *Client) Delete(recordingID string) error
- func (c *Client) DownloadAudio(recordingID string) (*DownloadedContent, error)
- func (c *Client) DownloadRecording(recordingID string) (*DownloadedContent, error)
- func (c *Client) DownloadTranscript(recordingID string) (*DownloadedContent, error)
- func (c *Client) Get(recordingID string) (*Recording, error)
- func (c *Client) GetAudioDownloadLink(recordingID string) (string, *Recording, error)
- func (c *Client) List(options *ListOptions) (*RecordingsPage, error)
- type Config
- type DownloadedContent
- type ListOptions
- type Recording
- type RecordingsPage
- type TemporaryDownloadLinks
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 recordings API client
func (*Client) DownloadAudio ¶
func (c *Client) DownloadAudio(recordingID string) (*DownloadedContent, error)
DownloadAudio downloads the audio (MP3) content of a recording. This first fetches the temporary download link, then downloads the audio file.
func (*Client) DownloadRecording ¶
func (c *Client) DownloadRecording(recordingID string) (*DownloadedContent, error)
DownloadRecording downloads the video recording (MP4) content. This first fetches the temporary download link, then downloads the recording file.
func (*Client) DownloadTranscript ¶
func (c *Client) DownloadTranscript(recordingID string) (*DownloadedContent, error)
DownloadTranscript downloads the transcript file for a recording. This first fetches the temporary download link, then downloads the transcript.
func (*Client) Get ¶
Get returns details for a single recording, including temporary direct download links for the video, audio, and transcript files.
func (*Client) GetAudioDownloadLink ¶
GetAudioDownloadLink retrieves the temporary direct download link for the audio (MP3) of a recording. The link expires after a short period (check TemporaryDownloadLinks.Expiration). Returns the audio download URL and the full recording object.
func (*Client) List ¶
func (c *Client) List(options *ListOptions) (*RecordingsPage, error)
List returns a list of recordings. Use ListOptions to filter by meetingId, date range, host, etc.
type DownloadedContent ¶
type DownloadedContent struct {
// ContentType is the MIME type (e.g., "video/mp4", "audio/mpeg").
ContentType string
// ContentDisposition is the Content-Disposition header value if present.
ContentDisposition string
// ContentLength is the size in bytes (-1 if unknown).
ContentLength int64
// Data is the raw file content.
Data []byte
}
DownloadedContent holds the raw bytes and metadata of a downloaded recording file.
type ListOptions ¶
type ListOptions struct {
MeetingID string `url:"meetingId,omitempty"`
MeetingSeriesID string `url:"meetingSeriesId,omitempty"`
HostEmail string `url:"hostEmail,omitempty"`
SiteURL string `url:"siteUrl,omitempty"`
ServiceType string `url:"serviceType,omitempty"`
From string `url:"from,omitempty"`
To string `url:"to,omitempty"`
Max int `url:"max,omitempty"`
Status string `url:"status,omitempty"`
Topic string `url:"topic,omitempty"`
Format string `url:"format,omitempty"`
}
ListOptions contains the options for listing recordings
type Recording ¶
type Recording struct {
ID string `json:"id,omitempty"`
MeetingID string `json:"meetingId,omitempty"`
ScheduledMeetingID string `json:"scheduledMeetingId,omitempty"`
MeetingSeriesID string `json:"meetingSeriesId,omitempty"`
Topic string `json:"topic,omitempty"`
CreateTime string `json:"createTime,omitempty"`
TimeRecorded string `json:"timeRecorded,omitempty"`
HostEmail string `json:"hostEmail,omitempty"`
SiteURL string `json:"siteUrl,omitempty"`
DownloadURL string `json:"downloadUrl,omitempty"`
PlaybackURL string `json:"playbackUrl,omitempty"`
Password string `json:"password,omitempty"`
TemporaryDirectDownloadLinks *TemporaryDownloadLinks `json:"temporaryDirectDownloadLinks,omitempty"`
Format string `json:"format,omitempty"`
DurationSeconds int `json:"durationSeconds,omitempty"`
SizeBytes int64 `json:"sizeBytes,omitempty"`
ServiceType string `json:"serviceType,omitempty"`
Status string `json:"status,omitempty"`
IntegrationTags []string `json:"integrationTags,omitempty"`
}
Recording represents a Webex meeting recording
type RecordingsPage ¶
RecordingsPage represents a paginated list of recordings
type TemporaryDownloadLinks ¶
type TemporaryDownloadLinks struct {
RecordingDownloadLink string `json:"recordingDownloadLink,omitempty"`
AudioDownloadLink string `json:"audioDownloadLink,omitempty"`
TranscriptDownloadLink string `json:"transcriptDownloadLink,omitempty"`
Expiration string `json:"expiration,omitempty"`
}
TemporaryDownloadLinks contains time-limited direct download URLs for the recording video, audio, and transcript. These links expire after a short period (typically 3 hours) as indicated by the Expiration field.