Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a wrapper around api.Client that adds new methods
type FileMetadata ¶
type FileMetadata struct { Name string `json:"name"` Size int `json:"size"` MIMEType string `json:"mime_type"` Modified int `json:"modified"` }
FileMetadata represents metadata of Document, DocumentRevision or a Note attachment
type Files ¶
type Files interface { Download(model string, id string, options ...api.RequestOption) (io.ReadCloser, error) Metadata(model string, id string, options ...api.RequestOption) (*FileMetadata, error) Upload(name string, content io.Reader, options ...api.RequestOption) (string, error) }
Files is an interface providing file-related oprations
type UserInfo ¶
type UserInfo struct { ID string `json:"id"` Name string `json:"name"` FirstName string `json:"first_name"` LastName string `json:"last_name"` Role string `json:"role"` Email string `json:"email"` Timezone string `json:"timezone"` IsPartner bool `json:"is_partner"` }
UserInfo is the result of calling /me endpoint
Click to show internal directories.
Click to hide internal directories.