repository
0.0.0-20240612193156-8bab31ea2a05
Repository: https://github.com/fterrag/go-zoom.git
Documentation: pkg.go.dev
# README
go-zoom
The zoom
packages provides a lightweight Zoom API client. Coverage of endpoints is minimal, but users.go and meetings.go should act as good examples for implementing support for additional endpoints.
This package is built to be used with Server-to-Server OAuth apps.
Example Usage
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"github.com/fterrag/go-zoom/zoom"
)
func main() {
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)
if err != nil {
log.Fatal(err)
}
fmt.Printf("%d users\n\n", len(res.Users))
for _, user := range res.Users {
fmt.Printf("ID: %s\nDisplay Name: %s\nEmail: %s\n\n", user.ID, user.DisplayName, user.Email)
}
}