package main
import(
"context"
"os"
polargo "github.com/polarsource/polar-go"
"github.com/polarsource/polar-go/models/components"
"log"
)
func main() {
ctx := context.Background()
s := polargo.New(
polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")),
)
res, err := s.Oauth2.Clients.Update(ctx, "<id>", components.OAuth2ClientConfigurationUpdate{
RedirectUris: []string{
"https://grown-worth.name",
"https://worthwhile-avalanche.org/",
"https://general-digit.com/",
},
ClientName: "<value>",
ClientID: "<id>",
})
if err != nil {
log.Fatal(err)
}
if res.Any != nil {
}
}