Documentation ¶
Index ¶
- Variables
- func RequestAccessToken(ctx context.Context, clientID string, clientSecret string, enterpriseId string) (string, error)
- type BaseType
- type Client
- func (c *Client) GetCurrentUserWithEnterprise(ctx context.Context) (User, error)
- func (c *Client) GetGroup(ctx context.Context, groupId string) (Group, error)
- func (c *Client) GetGroupMemberships(ctx context.Context, groupId string) ([]GroupMembership, error)
- func (c *Client) GetGroups(ctx context.Context) ([]Group, error)
- func (c *Client) GetUsers(ctx context.Context) ([]User, error)
- type Enterprise
- type Group
- type GroupMembership
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorResponse struct { Type string `json:"type"` Code string `json:"code"` ContextInfo struct { Message string `json:"message"` } `json:"context_info"` HelpURL string `json:"help_url"` Message string `json:"message"` RequestID string `json:"request_id"` Status int64 `json:"status"` }
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetCurrentUserWithEnterprise ¶
GetCurrentUserWithEnterprise returns current user with enterprise data.
func (*Client) GetGroupMemberships ¶
func (c *Client) GetGroupMemberships(ctx context.Context, groupId string) ([]GroupMembership, error)
GetGroupMemberships returns all group memberships from Box enterprise.
type Enterprise ¶
type GroupMembership ¶
Click to show internal directories.
Click to hide internal directories.