Versions in this module Expand all Collapse all v0 v0.0.1 Dec 20, 2024 Changes in this version + const AddUserToGroupURL + const AuthURL + const BaseURL + const ListGroupMembersContinueURL + const ListGroupMembersURL + const ListGroupsContinueURL + const ListGroupsURL + const ListUsersContinueURL + const ListUsersURL + const RemoveUserFromGroupURL + const SetRoleURL + const TokenURL + type AddToGroupMembers struct + AccessLevel string + User EmailTag + type AddUserToGroupBody struct + Group GroupIdTag + Members []AddToGroupMembers + ReturnMembers bool + type Client struct + TokenSource oauth2.TokenSource + func NewClient(ctx context.Context, config Config) (*Client, error) + func (c *Client) AddRoleToUser(ctx context.Context, roleId, email string) (*v2.RateLimitDescription, error) + func (c *Client) AddUserToGroup(ctx context.Context, groupId, email, accessType string) (*v2.RateLimitDescription, error) + func (c *Client) Authorize(ctx context.Context, appKey, appSecret string) (string, error) + func (c *Client) ClearRoles(ctx context.Context, email string) (*v2.RateLimitDescription, error) + func (c *Client) GetTeamMemberID(ctx context.Context, groupId, userId string) (string, error) + func (c *Client) ListGroupMembers(ctx context.Context, groupId string, limit int) (*ListGroupMembersPayload, *v2.RateLimitDescription, error) + func (c *Client) ListGroupMembersContinue(ctx context.Context, cursor string) (*ListGroupMembersPayload, *v2.RateLimitDescription, error) + func (c *Client) ListGroups(ctx context.Context, limit int) (*ListGroupsPayload, *v2.RateLimitDescription, error) + func (c *Client) ListGroupsContinue(ctx context.Context, cursor string) (*ListGroupsPayload, *v2.RateLimitDescription, error) + func (c *Client) ListUsers(ctx context.Context, limit int) (*ListUsersPayload, *v2.RateLimitDescription, error) + func (c *Client) ListUsersContinue(ctx context.Context, cursor string) (*ListUsersPayload, *v2.RateLimitDescription, error) + func (c *Client) RemoveUserFromGroup(ctx context.Context, groupId, email string) (*v2.RateLimitDescription, error) + func (c *Client) RequestAccessToken(ctx context.Context, code string) (string, *time.Time, string, error) + func (c *Client) RequestAccessTokenUsingRefreshToken(ctx context.Context) (string, *time.Time, error) + type Config struct + AppKey string + AppSecret string + RefreshToken string + type EmailTag struct + Email string + Tag string + type Group struct + GroupID string + GroupManagementType Tag + MemberCount int + Name string + type GroupIdTag struct + GroupID string + Tag string + type ListGroupMembersBody struct + Group GroupIdTag + Limit int + func DefaultGroupMembersBody() ListGroupMembersBody + type ListGroupMembersPayload struct + Cursor string + HasMore bool + Members []MembersPayload + type ListGroupsBody struct + Limit int + func DefaultListGroupsBody() ListGroupsBody + type ListGroupsPayload struct + Cursor string + Groups []Group + HasMore bool + type ListUserBody struct + IncludeRemoved bool + Limit int + func DefaultListUserBody() ListUserBody + type ListUsersPayload struct + Cursor string + HasMore bool + Members []UserPayload + type MembersPayload struct + AccessType Tag + Profile MembersProfile + type MembersProfile struct + TeamMemberID string + type Name struct + DisplayName string + GivenName string + Surname string + type Profile struct + AccountID string + Email string + Groups []string + Name Name + TeamMemberID string + type RemoveUserFromGroupBody struct + Group GroupIdTag + ReturnMembers bool + Users []EmailTag + type Role struct + Description string + Name string + RoleID string + type Tag struct + Tag string + type UserPayload struct + Profile Profile + Roles []Role + func (u UserPayload) HasRole(roleID string) bool