Documentation ¶
Index ¶
- type BoxCreateFileResponse
- type BoxCredentialsResponse
- type BoxFileResponse
- type BoxParent
- type BoxPermissions
- type BoxUserResponse
- type BoxVersion
- type BuildConfigResponse
- type CallbackResponse
- type ConvertResponse
- type Customization
- type Document
- type EditorConfig
- type Entries
- type GenericReponse
- type Goback
- type MicroError
- type Permissions
- type User
- type UserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoxCreateFileResponse ¶
type BoxCreateFileResponse struct {
Entries []Entries `json:"entries"`
}
type BoxCredentialsResponse ¶
type BoxCredentialsResponse struct { AccessToken string `json:"access_token" mapstructure:"access_token"` RefreshToken string `json:"refresh_token" mapstructure:"refresh_token"` TokenType string `json:"token_type" mapstructure:"token_type"` ExpiresIn int64 `json:"expires_in" mapstructure:"expires_in"` }
func (BoxCredentialsResponse) ToJSON ¶
func (c BoxCredentialsResponse) ToJSON() []byte
type BoxFileResponse ¶
type BoxFileResponse struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Extension string `json:"extension"` ModifiedAt string `json:"modified_at"` FileVersion BoxVersion `json:"file_version"` VersionNumber string `json:"version_number"` Parent BoxParent `json:"parent"` Permissions BoxPermissions `json:"permissions"` CreatedBy BoxUserResponse `json:"created_by"` }
func (BoxFileResponse) ToJSON ¶
func (f BoxFileResponse) ToJSON() []byte
type BoxPermissions ¶
type BoxPermissions struct { CanAnnotate bool `json:"can_annotate"` CanComment bool `json:"can_comment"` CanDelete bool `json:"can_delete"` CanDownload bool `json:"can_download"` CanInviteCollaborator bool `json:"can_invite_collaborator"` CanPreview bool `json:"can_preview"` CanRename bool `json:"can_rename"` CanUpload bool `json:"can_upload"` CanViewAnnotationsAll bool `json:"can_view_annotations_all"` CanViewAnnotationsSelf bool `json:"can_view_annotations_self"` }
func (BoxPermissions) ToJSON ¶
func (v BoxPermissions) ToJSON() []byte
type BoxUserResponse ¶
type BoxUserResponse struct { ID string `json:"id"` Name string `json:"name"` Language string `json:"language"` }
func (BoxUserResponse) ToJSON ¶
func (u BoxUserResponse) ToJSON() []byte
type BoxVersion ¶
func (BoxVersion) ToJSON ¶
func (v BoxVersion) ToJSON() []byte
type BuildConfigResponse ¶
type BuildConfigResponse struct { jwt.RegisteredClaims Document Document `json:"document"` DocumentType string `json:"documentType"` EditorConfig EditorConfig `json:"editorConfig"` Type string `json:"type"` Token string `json:"token,omitempty"` Session bool `json:"is_session,omitempty"` ServerURL string `json:"server_url"` }
func (BuildConfigResponse) ToJSON ¶
func (r BuildConfigResponse) ToJSON() []byte
type CallbackResponse ¶
type CallbackResponse struct {
Error int `json:"error"`
}
func (CallbackResponse) ToJSON ¶
func (c CallbackResponse) ToJSON() []byte
type ConvertResponse ¶
func (ConvertResponse) ToJSON ¶
func (r ConvertResponse) ToJSON() []byte
type Customization ¶
type Document ¶
type Document struct { FileType string `json:"fileType"` Key string `json:"key"` Title string `json:"title"` URL string `json:"url"` Permissions Permissions `json:"permissions"` }
type EditorConfig ¶
type EditorConfig struct { User User `json:"user"` CallbackURL string `json:"callbackUrl"` Customization Customization `json:"customization"` Lang string `json:"lang,omitempty"` }
type GenericReponse ¶
func (GenericReponse) ToJSON ¶
func (r GenericReponse) ToJSON() []byte
type MicroError ¶
type MicroError struct { ID string `json:"id"` Code int `json:"code"` Detail string `json:"detail"` Status string `json:"status"` }
func (MicroError) ToJSON ¶
func (e MicroError) ToJSON() []byte
type Permissions ¶
type Permissions struct { Comment bool `json:"comment"` Copy bool `json:"copy"` DeleteCommentAuthorOnly bool `json:"deleteCommentAuthorOnly"` Download bool `json:"download"` Edit bool `json:"edit"` EditCommentAuthorOnly bool `json:"editCommentAuthorOnly"` FillForms bool `json:"fillForms"` ModifyContentControl bool `json:"modifyContentControl"` ModifyFilter bool `json:"modifyFilter"` Print bool `json:"print"` Review bool `json:"review"` }
type UserResponse ¶
type UserResponse struct { ID string `json:"id" mapstructure:"id"` AccessToken string `json:"access_token" mapstructure:"access_token"` RefreshToken string `json:"refresh_token" mapstructure:"refresh_token"` TokenType string `json:"token_type" mapstructure:"token_type"` ExpiresAt int64 `json:"expires_at" mapstructure:"expires_at"` }
func (UserResponse) ToJSON ¶
func (ur UserResponse) ToJSON() []byte
Source Files ¶
Click to show internal directories.
Click to hide internal directories.