forked from zoom-lib-golang/zoom-lib-golang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeeting_delete.go
30 lines (25 loc) · 906 Bytes
/
meeting_delete.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package zoom
import "fmt"
// DeleteMeetingOptions are the options to delete a meeting
type DeleteMeetingOptions struct {
MeetingID int `url:"-"`
OccurrenceID string `url:"occurrence_id,omitempty"`
// ScheduleForReminder notify host and alternative host about meeting cancellation via
// email
ScheduleForReminder bool `url:"schedule_for_reminder,omitempty"`
}
// DeleteMeetingPath - v2 delete a meeting
const DeleteMeetingPath = "/meetings/%d"
// DeleteMeeting calls DELETE /meetings/{meetingID}
func DeleteMeeting(opts DeleteMeetingOptions) error {
return defaultClient.DeleteMeeting(opts)
}
// DeleteMeeting calls DELETE /meetings/{meetingID}
func (c *Client) DeleteMeeting(opts DeleteMeetingOptions) error {
return c.requestV2(requestV2Opts{
Method: Delete,
Path: fmt.Sprintf(DeleteMeetingPath, opts.MeetingID),
URLParameters: &opts,
HeadResponse: true,
})
}