Documentation ¶
Index ¶
- Constants
- type AddFolderMembersParams
- type AddMembersParams
- type Blob
- type Client
- func (q *Client) AddFolderMembers(params *AddFolderMembersParams) (*Folder, error)
- func (q *Client) AddMembers(params *AddMembersParams) (*Thread, error)
- func (q *Client) EditDocument(params *EditDocumentParams) (*Thread, error)
- func (q *Client) GetAuthenticatedUser() (*User, error)
- func (q *Client) GetBlob(blobId, threadId string) ([]byte, error)
- func (q *Client) GetContacts() ([]*User, error)
- func (q *Client) GetFolder(params *GetFolderParams) (*Folder, error)
- func (q *Client) GetFolders(params *GetFoldersParams) ([]*Folder, error)
- func (q *Client) GetRecentMessages(params *GetRecentMessagesParams) ([]*Message, error)
- func (q *Client) GetRecentThreads(params *GetRecentThreadsParams) ([]*Thread, error)
- func (q *Client) GetThread(id string) (*Thread, error)
- func (q *Client) GetThreads(ids []string) ([]*Thread, error)
- func (q *Client) GetUser(params *GetUserParams) (*User, error)
- func (q *Client) GetUsers(params *GetUsersParams) ([]*User, error)
- func (q *Client) NewBlob(path string, threadId string) (*Blob, error)
- func (q *Client) NewDocument(params *NewDocumentParams) (*Thread, error)
- func (q *Client) NewFolder(params *NewFolderParams) (*Folder, error)
- func (q *Client) NewMessage(params *NewMessageParams) (*Message, error)
- func (q *Client) RemoveFolderMembers(params *RemoveFolderMembersParams) (*Folder, error)
- func (q *Client) RemoveMembers(params *RemoveMembersParams) (*Thread, error)
- func (q *Client) SetApiUrl(url string)
- type EditDocumentParams
- type Folder
- type FolderItem
- type GetFolderParams
- type GetFoldersParams
- type GetRecentMessagesParams
- type GetRecentThreadsParams
- type GetUserParams
- type GetUsersParams
- type Message
- type NewDocumentParams
- type NewFolderParams
- type NewMessageParams
- type RemoveFolderMembersParams
- type RemoveMembersParams
- type Thread
- type ThreadDetails
- type ThreadSharing
- type User
Constants ¶
View Source
const ( APPEND = "0" PREPEND = "1" AFTER_SECTION = "2" BEFORE_SECTION = "3" REPLACE_SECTION = "4" DELETE_SECTION = "5" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddFolderMembersParams ¶
type AddMembersParams ¶
type Client ¶
type Client struct { // Number of seconds spent waiting due to rate limiting RateLimitDelays float64 // contains filtered or unexported fields }
func NewClientOAuth ¶
func (*Client) AddFolderMembers ¶
func (q *Client) AddFolderMembers(params *AddFolderMembersParams) (*Folder, error)
func (*Client) AddMembers ¶
func (q *Client) AddMembers(params *AddMembersParams) (*Thread, error)
func (*Client) EditDocument ¶
func (q *Client) EditDocument(params *EditDocumentParams) (*Thread, error)
func (*Client) GetAuthenticatedUser ¶
func (*Client) GetContacts ¶
func (*Client) GetFolders ¶
func (q *Client) GetFolders(params *GetFoldersParams) ([]*Folder, error)
func (*Client) GetRecentMessages ¶
func (q *Client) GetRecentMessages(params *GetRecentMessagesParams) ([]*Message, error)
func (*Client) GetRecentThreads ¶
func (q *Client) GetRecentThreads(params *GetRecentThreadsParams) ([]*Thread, error)
func (*Client) NewDocument ¶
func (q *Client) NewDocument(params *NewDocumentParams) (*Thread, error)
func (*Client) NewMessage ¶
func (q *Client) NewMessage(params *NewMessageParams) (*Message, error)
func (*Client) RemoveFolderMembers ¶
func (q *Client) RemoveFolderMembers(params *RemoveFolderMembersParams) (*Folder, error)
func (*Client) RemoveMembers ¶
func (q *Client) RemoveMembers(params *RemoveMembersParams) (*Thread, error)
type EditDocumentParams ¶
type FolderItem ¶
type FolderItem struct { // Either FolderID or ThreadID will be set but not both FolderID string `json:"folder_id"` ThreadID string `json:"thread_id"` Restricted bool `json:"restricted"` }
func (FolderItem) ItemKindID ¶
func (fi FolderItem) ItemKindID() (string, string)
type GetFolderParams ¶
type GetFolderParams struct {
Id string
}
type GetFoldersParams ¶
type GetFoldersParams struct {
Ids []string
}
type GetRecentMessagesParams ¶
type GetRecentThreadsParams ¶
type GetUserParams ¶
type GetUserParams struct {
Id string
}
type GetUsersParams ¶
type GetUsersParams struct {
Ids []string
}
type NewDocumentParams ¶
type NewFolderParams ¶
type NewMessageParams ¶
type RemoveMembersParams ¶
type Thread ¶
type Thread struct { ExpandedUserIds []string `json:"expanded_user_ids"` UserIds []string `json:"user_ids"` Html string Thread ThreadDetails }
type ThreadDetails ¶
type ThreadSharing ¶
Click to show internal directories.
Click to hide internal directories.