zoom

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestAccessToken

func RequestAccessToken(ctx context.Context, accountId string, clientId string, clientSecret string) (string, error)

RequestAccessToken creates bearer token needed to use the Zoom API.

Types

type Client

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

func NewClient

func NewClient(httpClient *http.Client, token string) *Client

func (*Client) AddGroupAdmins added in v0.0.3

func (c *Client) AddGroupAdmins(ctx context.Context, groupId, userId string) error

AddGroupAdmins adds admin to the group.

func (*Client) AddGroupMembers added in v0.0.3

func (c *Client) AddGroupMembers(ctx context.Context, groupId, userId string) error

AddGroupMembers adds user to a group.

func (*Client) AssignRole added in v0.0.3

func (c *Client) AssignRole(ctx context.Context, roleId, userId string) error

AssignRole assigns role to a user.

func (*Client) DeleteGroupAdmin added in v0.0.3

func (c *Client) DeleteGroupAdmin(ctx context.Context, groupId, userId string) error

DeleteGroupAdmin removes admin from the group.

func (*Client) DeleteGroupMember added in v0.0.3

func (c *Client) DeleteGroupMember(ctx context.Context, groupId, userId string) error

DeleteGroupMember removes member from the group.

func (*Client) GetContactGroupMembers

func (c *Client) GetContactGroupMembers(ctx context.Context, groupId string, nextToken string) ([]GroupMember, string, *http.Response, error)

GetContactGroupMembers returns all Zoom contact group members.

func (*Client) GetContactGroups

func (c *Client) GetContactGroups(ctx context.Context, nextToken string) ([]ContactGroup, string, *http.Response, error)

GetContactGroups returns all contact groups from Zoom.

func (*Client) GetGroupAdmins

func (c *Client) GetGroupAdmins(ctx context.Context, groupId string) ([]User, error)

GetGroupAdmins returns all Zoom group admins.

func (*Client) GetGroupMembers

func (c *Client) GetGroupMembers(ctx context.Context, groupId string) ([]User, error)

GetGroupMembers returns all Zoom group members.

func (*Client) GetGroups

func (c *Client) GetGroups(ctx context.Context, nextToken string) ([]Group, string, *http.Response, error)

GetGroups returns all Zoom groups.

func (*Client) GetRoleMembers

func (c *Client) GetRoleMembers(ctx context.Context, roleId string, nextToken string) ([]User, string, *http.Response, error)

GetRoleMembers returns all Zoom role members.

func (*Client) GetRoles

func (c *Client) GetRoles(ctx context.Context) ([]Role, *http.Response, error)

GetRoles returns all Zoom roles.

func (*Client) GetUser

func (c *Client) GetUser(ctx context.Context, userId string) (User, *http.Response, error)

GetUser returns user details.

func (*Client) GetUsers

func (c *Client) GetUsers(ctx context.Context, nextToken string) ([]User, string, *http.Response, error)

GetUsers returns all Zoom users.

func (*Client) UnassignRole added in v0.0.3

func (c *Client) UnassignRole(ctx context.Context, roleId, userId string) error

UnassignRole unassigns role from a user.

type ContactGroup

type ContactGroup struct {
	ID          string `json:"group_id"`
	Name        string `json:"group_name"`
	Privacy     int64  `json:"group_privacy"`
	Description string `json:"description"`
}

type Group

type Group struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type GroupMember

type GroupMember struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	Type int    `json:"type"`
}

type Member

type Member struct {
	Email     string `json:"email"`
	FirstName string `json:"first_name"`
	ID        string `json:"id"`
	LastName  string `json:"last_name"`
	Type      int    `json:"type"`
}

type Pagination

type Pagination struct {
	NextPageToken string `json:"next_page_token"`
	PageSize      int    `json:"page_size"`
	TotalRecords  int    `json:"total_records"`
}

type PaginationData

type PaginationData struct {
	NextPageToken string `json:"next_page_token"`
	PageSize      int    `json:"page_size"`
	TotalRecords  int    `json:"total_records"`
}

type Payload added in v0.0.3

type Payload struct {
	ID string `json:"id"`
}

type Role

type Role struct {
	Description string `json:"description"`
	ID          string `json:"id"`
	Name        string `json:"name"`
	Type        string `json:"type"`
}

type User

type User struct {
	ID          string `json:"id"`
	Email       string `json:"email"`
	FirstName   string `json:"first_name"`
	LastName    string `json:"last_name"`
	RoleName    string `json:"role_name"`
	Type        int    `json:"type"`
	DisplayName string `json:"display_name"`
	RoleID      string `json:"role_id"`
	Status      string `json:"status"`
}

Jump to

Keyboard shortcuts

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