forked from zoom-lib-golang/zoom-lib-golang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeeting_get.go
29 lines (24 loc) · 809 Bytes
/
meeting_get.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
package zoom
import "fmt"
// GetMeetingOptions are the options to get a meeting
type GetMeetingOptions struct {
MeetingID int `url:"-"`
OccurrenceID string `url:"occurrence_id,omitempty"`
}
// GetMeetingPath - v2 retrieve the details of a meeting
const GetMeetingPath = "/meetings/%d"
// GetMeeting calls /meetings/ID
func GetMeeting(opts GetMeetingOptions) (Meeting, error) {
return defaultClient.GetMeeting(opts)
}
// GetMeeting calls /meetings/ID
// https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meeting
func (c *Client) GetMeeting(opts GetMeetingOptions) (Meeting, error) {
var ret = Meeting{}
return ret, c.requestV2(requestV2Opts{
Method: Get,
Path: fmt.Sprintf(GetMeetingPath, opts.MeetingID),
URLParameters: &opts,
Ret: &ret,
})
}