Documentation
¶
Index ¶
- type AccessToken
- type ZoomClient
- func (z *ZoomClient) Authorize() error
- func (z *ZoomClient) DeleteMeetingRecordings(meetingId string, delete bool) error
- func (z *ZoomClient) DeleteRecordingsOverCapacity(ctx context.Context, cap model.FileSize) (deleted int, err error)
- func (z *ZoomClient) GetAllMeetings(ctx context.Context) ([]model.Meeting, error)
- func (z *ZoomClient) GetAllMeetingsWithRetry(ctx context.Context) ([]model.Meeting, error)
- func (z *ZoomClient) GetCloudStorageReport(from, to string) (*model.CloudRecordingReport, error)
- func (z *ZoomClient) GetIntervalMeetings(ctx context.Context, from, to time.Time) ([]model.Meeting, error)
- func (z *ZoomClient) GetMeetings(ctx context.Context, daysAgo int) ([]model.Meeting, error)
- func (z *ZoomClient) GetToken() (*AccessToken, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type ZoomClient ¶
type ZoomClient struct {
// contains filtered or unexported fields
}
func NewZoomClient ¶
func NewZoomClient(cfg config.Client) *ZoomClient
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 (*ZoomClient) GetAllMeetings ¶
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 ¶
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 ¶
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