- Notifications
You must be signed in to change notification settings - Fork3
A lightweight Zoom API client for Go
License
NotificationsYou must be signed in to change notification settings
fterrag/go-zoom
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Thezoom
packages provides a lightweightZoom API client. Coverage of endpoints is minimal, butusers.go andmeetings.go should act as good examples for implementing support for additional endpoints.
This package is built to be used withServer-to-Server OAuth apps.
package mainimport ("context""fmt""log""net/http""os""github.com/fterrag/go-zoom/zoom")funcmain() {ctx:=context.Background()httpClient:=&http.Client{}client:=zoom.NewClient(httpClient,os.Getenv("ZOOM_ACCOUNT_ID"),os.Getenv("ZOOM_CLIENT_ID"),os.Getenv("ZOOM_CLIENT_SECRET"),nil)res,_,err:=client.Users.List(ctx,nil)iferr!=nil {log.Fatal(err)}fmt.Printf("%d users\n\n",len(res.Users))for_,user:=rangeres.Users {fmt.Printf("ID: %s\nDisplay Name: %s\nEmail: %s\n\n",user.ID,user.DisplayName,user.Email)}}