https://github.com/fterrag/go-zoom
A lightweight Zoom API client for Go
https://github.com/fterrag/go-zoom
go golang zoom zoom-api zoom-client
Last synced: 2 months ago
JSON representation
A lightweight Zoom API client for Go
- Host: GitHub
- URL: https://github.com/fterrag/go-zoom
- Owner: fterrag
- License: mit
- Created: 2023-01-30T02:33:34.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-12T19:32:00.000Z (almost 2 years ago)
- Last Synced: 2024-06-20T11:14:30.606Z (almost 2 years ago)
- Topics: go, golang, zoom, zoom-api, zoom-client
- Language: Go
- Homepage:
- Size: 42 KB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-zoom
The `zoom` packages provides a lightweight [Zoom API](https://marketplace.zoom.us/docs/api-reference/introduction/) client. Coverage of endpoints is minimal, but [users.go](zoom/users.go) and [meetings.go](zoom/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](https://marketplace.zoom.us/docs/guides/build/server-to-server-oauth-app/) apps.
## Example Usage
```go
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)
}
}
```