zoom

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZoomAPIOAuth2AuthzURL = "https://zoom.us/oauth/authorize"
	ZoomAPIOAuth2TokenURL = "https://zoom.us/oauth/token"
	ZoomAPIBaseURL        = "https://api.zoom.us/v2/"
	ZoomAPIMeURL          = "https://api.zoom.us/v2/users/me"
	ZoomAPIUserIDMe       = "me"
)
View Source
const (
	EnvZoomApiKey           = "ZOOM_API_KEY"
	EnvZoomApiSecret        = "ZOOM_API_SECRET"
	HeaderUserAgentJwtValue = "Zoom-api-Jwt-Request"
)

Variables

This section is empty.

Functions

func CreateJwtToken

func CreateJwtToken(apiKey, apiSecret string, tokenDuration time.Duration) (*jwt.Token, string, error)

func NewClient added in v0.4.4

func NewClient(apiKey, apiSecret string, tokenDuration time.Duration) (*http.Client, error)

func NewClientToken

func NewClientToken(bearerToken string) *http.Client

func ZoomUserToScimUser

func ZoomUserToScimUser(nativeUser ZoomUser) scim.User

Types

type ClientUtil

type ClientUtil struct {
	Client     *http.Client
	UserNative ZoomUser `json:"user,omitempty"`
	UserScim   scim.User
	UserLoaded bool
}

func NewClientUtil

func NewClientUtil(client *http.Client) ClientUtil

func (*ClientUtil) GetSCIMUser

func (apiutil *ClientUtil) GetSCIMUser() (scim.User, error)

func (*ClientUtil) LoadUser

func (apiutil *ClientUtil) LoadUser() error

func (*ClientUtil) SetClient

func (apiutil *ClientUtil) SetClient(client *http.Client)

type ZoomUser

type ZoomUser struct {
	ID                 string    `json:"id"`
	FirstName          string    `json:"first_name"`
	LastName           string    `json:"last_name"`
	Email              string    `json:"email"`
	Type               int       `json:"type"`
	RoleName           string    `json:"role_name"`
	PMI                int       `json:"pmi"`
	UsePMI             bool      `json:"use_pmi"`
	PersonalMeetingURL string    `json:"personal_meeting_url"`
	Timezone           string    `json:"timezone"`
	Verified           int       `json:"verified"`
	Dept               string    `json:"dept"`
	CreatedAt          time.Time `json:"created_at"`
	LastLoginTime      time.Time `json:"last_login_time"`
	LastClientVersion  string    `json:"last_client_version"`
	PicURL             string    `json:"pic_url"`
	HostKey            string    `json:"host_key"`
	JID                string    `json:"jid"`
	GroupIDs           []string  `json:"group_ids"`
	IMGroupIDs         []string  `json:"im_group_ids"`
	AccountID          string    `json:"account_id"`
	Language           string    `json:"language"`
	PhoneCountry       string    `json:"phone_country"`
	PhoneNumber        string    `json:"phone_number"`
	Status             string    `json:"status"`
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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