zoom

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 10 Imported by: 0

README

This repository contains some api things that are useful. There are lots of things that could be improved.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Key    string
	Secret []byte
}

API auth info

type DashboardMeetingParticipantsResponse added in v0.0.4

type DashboardMeetingParticipantsResponse struct {
	Paginate
	Participants []MeetingParticipant `json:"participants"`
}

type Meeting

type Meeting struct {
	UUID             string `json:"uuid"`
	ID               int    `json:"id"`
	Topic            string `json:"topic"`
	Host             string `json:"host"`
	Email            string `json:"email"`
	UserType         string `json:"user_type"`
	StartTime        string `json:"start_time"`
	EndTime          string `json:"end_time"`
	Duration         string `json:"duration"`
	Participants     int    `json:"participants"`
	HasPstn          bool   `json:"has_pstn"`
	HasVoip          bool   `json:"has_voip"`
	Has3RdPartyAudio bool   `json:"has_3rd_party_audio"`
	HasVideo         bool   `json:"has_video"`
	HasScreenShare   bool   `json:"has_screen_share"`
	HasRecording     bool   `json:"has_recording"`
	HasSip           bool   `json:"has_sip"`
}

Represents a past meeting in zoom

func (Meeting) String

func (m Meeting) String() string

type MeetingParticipant added in v0.0.4

type MeetingParticipant struct {
	ID               string    `json:"id"`
	UserID           string    `json:"user_id"`
	UserName         string    `json:"user_name"`
	Device           string    `json:"device"`
	IPAddress        string    `json:"ip_address"`
	Location         string    `json:"location"`
	NetworkType      string    `json:"network_type"`
	Microphone       string    `json:"microphone"`
	Speaker          string    `json:"speaker"`
	DataCenter       string    `json:"data_center"`
	ConnectionType   string    `json:"connection_type"`
	JoinTime         time.Time `json:"join_time"`
	LeaveTime        time.Time `json:"leave_time"`
	ShareApplication bool      `json:"share_application"`
	ShareDesktop     bool      `json:"share_desktop"`
	ShareWhiteboard  bool      `json:"share_whiteboard"`
	Recording        bool      `json:"recording"`
	PcName           string    `json:"pc_name"`
	Domain           string    `json:"domain"`
	MacAddr          string    `json:"mac_addr"`
	HarddiskID       string    `json:"harddisk_id"`
	Version          string    `json:"version"`
	LeaveReason      string    `json:"leave_reason"`
}

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 OldPaginate

type OldPaginate struct {
	PageCount    int `json:"page_count"`
	PageNumber   int `json:"page_number"`
	PageSize     int `json:"page_size"`
	TotalRecords int `json:"total_records"`
}

type Paginate

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

Pagination stuff related to many resources

type Service

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

All the things needed to interact with Zoom

func NewService

func NewService(config *Config) (s *Service, err error)

Setup a new service and test the connection

func (*Service) AddGroupMembers

func (s *Service) AddGroupMembers(groupID string, toAdd []string) error

func (*Service) CachedMeetingAttendees added in v0.0.4

func (s *Service) CachedMeetingAttendees(meetingID string, meetingType string) ([]MeetingParticipant, error)

Get all past meetings form the cache or get fresh

func (*Service) CreateUsers added in v0.0.4

func (s *Service) CreateUsers(action string, users []UserToCreate) error

func (*Service) CurrentMeetings

func (s *Service) CurrentMeetings(nextPage string) ([]Meeting, error)

func (*Service) EndMeeting

func (s *Service) EndMeeting(meetingID string) error

func (*Service) GetUsers

func (s *Service) GetUsers() ([]User, error)

func (*Service) ListGroupMembers

func (s *Service) ListGroupMembers(groupID string, pageNum int) ([]Member, error)

func (*Service) MeetingAttendees added in v0.0.4

func (s *Service) MeetingAttendees(meetingID string, meetingType string, nextPage string) (participants []MeetingParticipant, err error)

func (*Service) PastMeetings

func (s *Service) PastMeetings() ([]Meeting, error)

Get all past meetings form the cache or get fresh

func (*Service) UpdateUser added in v0.0.4

func (s *Service) UpdateUser(uid string, u UpdateUserBody) error

type UpdateUserBody added in v0.0.4

type UpdateUserBody struct {
	FirstName    string `json:"first_name,omitempty"`
	LastName     string `json:"last_name,omitempty"`
	Type         string `json:"type,omitempty"`
	Pmi          string `json:"pmi,omitempty"`
	Timezone     string `json:"timezone,omitempty"`
	Dept         string `json:"dept,omitempty"`
	VanityName   string `json:"vanity_name,omitempty"`
	HostKey      string `json:"host_key,omitempty"`
	CmsUserID    string `json:"cms_user_id,omitempty"`
	JobTitle     string `json:"job_title,omitempty"`
	Company      string `json:"company,omitempty"`
	Location     string `json:"location,omitempty"`
	PhoneNumber  string `json:"phone_number,omitempty"`
	PhoneCountry string `json:"phone_country,omitempty"`
}

type User

type User struct {
	ID                string    `json:"id"`
	FirstName         string    `json:"first_name"`
	LastName          string    `json:"last_name"`
	Email             string    `json:"email"`
	Type              int       `json:"type"`
	Pmi               int       `json:"pmi"`
	Timezone          string    `json:"timezone"`
	Verified          int       `json:"verified"`
	Dept              string    `json:"dept"`
	CreatedAt         time.Time `json:"created_at"`
	LastLoginTime     string    `json:"last_login_time"`
	LastClientVersion string    `json:"last_client_version"`
	PicURL            string    `json:"pic_url"`
	ImGroupIds        []string  `json:"im_group_ids"`
	Status            string    `json:"status"`
}

func (User) String

func (u User) String() string

type UserToCreate added in v0.0.4

type UserToCreate struct {
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
	Type      int    `json:"type"`
	Email     string `json:"email"`
	Password  string `json:"password"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳