List workspace members
client.WorkspaceAdmin.Members.List(ctx, workspaceID, query) (*CursorPagination[WorkspaceMember], error)
GET/v1/account/workspaces/{workspaceId}/members
List workspace members
package main
import (
"context"
"fmt"
"github.com/cadenya/cadenya-go"
"github.com/cadenya/cadenya-go/option"
)
func main() {
client := cadenya.NewClient(
option.WithAPIKey("My API Key"),
)
page, err := client.WorkspaceAdmin.Members.List(
context.TODO(),
"workspaceId",
cadenya.WorkspaceAdminMemberListParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
}
{
"items": [
{
"actorId": "actorId",
"profileId": "profileId",
"addedAt": "2019-12-27T18:11:19.117Z",
"email": "email",
"name": "name"
}
],
"pagination": {
"nextCursor": "nextCursor",
"total": 0
}
}Returns Examples
{
"items": [
{
"actorId": "actorId",
"profileId": "profileId",
"addedAt": "2019-12-27T18:11:19.117Z",
"email": "email",
"name": "name"
}
],
"pagination": {
"nextCursor": "nextCursor",
"total": 0
}
}