client

package
v0.0.0-...-084c151 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken struct {
	AccessToken string    `json:"access_token"`
	ExpiresIn   int       `json:"expires_in"`
	Scope       string    `json:"scope"`
	TokenType   string    `json:"token_type"`
	ExpiresAt   time.Time `json:"-"`
}

type ZoomClient

type ZoomClient struct {
	// contains filtered or unexported fields
}

func NewZoomClient

func NewZoomClient(cfg config.Client) *ZoomClient

func (*ZoomClient) Authorize

func (z *ZoomClient) Authorize() error

Authorize - get access token

func (*ZoomClient) DeleteMeetingRecordings

func (z *ZoomClient) DeleteMeetingRecordings(meetingId string, delete bool) error

DeleteMeetingRecordings - delete all recordings for a meeting https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/recordingDelete DELETE /meetings/{meetingId}/recordings - meetingId string is meeting.UUID - delete bool - true to delete, false to trash Light rate limit API

func (*ZoomClient) DeleteRecordingsOverCapacity

func (z *ZoomClient) DeleteRecordingsOverCapacity(ctx context.Context, cap model.FileSize,
) (deleted int, err error)

func (*ZoomClient) GetAllMeetings

func (z *ZoomClient) GetAllMeetings(ctx context.Context) ([]model.Meeting, error)

GetAllMeetings - get all meetings going from today back in the past by 30 days chunks as soon as we hit 2 empty chunks in a row, we assume there are no earlier meetings

func (*ZoomClient) GetAllMeetingsWithRetry

func (z *ZoomClient) GetAllMeetingsWithRetry(ctx context.Context) ([]model.Meeting, error)

GetAllMeetingsWithRetry - runs GetAllMeetings() with up to 10 retries with increasing delay

func (*ZoomClient) GetCloudStorageReport

func (z *ZoomClient) GetCloudStorageReport(from, to string) (*model.CloudRecordingReport, error)

GetCloudStorageReport - get cloud storage usage https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/reportCloudRecording GET /report/cloud_recording - from string - start date in format yyyy-mm-dd - to string - end date in format yyyy-mm-dd HEAVY rate limit API

func (*ZoomClient) GetIntervalMeetings

func (z *ZoomClient) GetIntervalMeetings(ctx context.Context, from, to time.Time) ([]model.Meeting, error)

GetIntervalMeetings - get meetings for a from-to interval Medium rate limit API

func (*ZoomClient) GetMeetings

func (z *ZoomClient) GetMeetings(ctx context.Context, daysAgo int) ([]model.Meeting, error)

GetMeetings - get meetings for a given day (daysAgo = 0 for today, 1 for yestarday, etc.) Medium rate limit API

func (*ZoomClient) GetToken

func (z *ZoomClient) GetToken() (*AccessToken, error)

GetToken - get token, if token is expired, re-authorize

Jump to

Keyboard shortcuts

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