Accounts
- ListUsers - Show current user accounts
Show current user accounts
package main
import(
"context"
"log"
"Structure"
)
func main() {
s := sdk.New(
sdk.WithSecurity(shared.Security{
BearerAuth: "",
}),
)
ctx := context.Background()
res, err := s.Accounts.ListUsers(ctx)
if err != nil {
log.Fatal(err)
}
if res.Body != nil {
// handle response
}
}
Parameter | Type | Required | Description |
---|---|---|---|
ctx |
context.Context | ✔️ | The context to use for the request. |