This repository has been archived by the owner on Sep 15, 2022. It is now read-only.
forked from zoom-lib-golang/zoom-lib-golang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement GetWebinarPanelist endpoint
- Loading branch information
Rafe Colton
committed
Dec 4, 2018
1 parent
530f795
commit 872df3c
Showing
6 changed files
with
77 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package zoom | ||
|
||
import "fmt" | ||
|
||
const ( | ||
// GetWebinarPanelistsPath - v2 path for listing panelists for a webinar | ||
GetWebinarPanelistsPath = "/webinars/%d/panelists" | ||
) | ||
|
||
// WebinarPanelist contains information returned by /webinar/panelists | ||
type WebinarPanelist struct { | ||
ID string `json:"id"` | ||
Name string `json:"name"` | ||
Email string `json:"email"` | ||
JoinURL *URL `json:"join_url"` | ||
} | ||
|
||
// GetWebinarPanelistsResponse - response from call to /webinar/panelists | ||
type GetWebinarPanelistsResponse struct { | ||
TotalRecords int `json:"total_records"` | ||
Panelists []WebinarPanelist `json:"panelists"` | ||
} | ||
|
||
// GetWebinarPanelists calls /webinar/panelists using the default client | ||
func GetWebinarPanelists(webinarID int) (GetWebinarPanelistsResponse, error) { | ||
return defaultClient.GetWebinarPanelists(webinarID) | ||
} | ||
|
||
// GetWebinarPanelists calls /webinar/panelists using client c | ||
func (c *Client) GetWebinarPanelists(webinarID int) (GetWebinarPanelistsResponse, error) { | ||
var ret = GetWebinarPanelistsResponse{} | ||
return ret, c.requestV2(requestV2Opts{ | ||
Method: Get, | ||
Path: fmt.Sprintf(GetWebinarPanelistsPath, webinarID), | ||
Ret: &ret, | ||
}) | ||
} |
This file was deleted.
Oops, something went wrong.