Documentation ¶
Overview ¶
Package workspaces implements the DocuSign SDK category Workspaces.
Workspaces creation and management.
Service Api documentation may be found at: https://developers.docusign.com/esign-rest-api/v2/reference/Workspaces Usage example:
import ( "github.com/thaitanloi365/esign" "github.com/thaitanloi365/esign/v2/workspaces" "github.com/thaitanloi365/esign/v2/model" ) ... workspacesService := workspaces.New(esignCredential)
Index ¶
- type CreateOp
- type DeleteOp
- type GetOp
- type ItemsCreateFIleOp
- type ItemsDeleteFolderItemsOp
- type ItemsGetFileOp
- type ItemsListFilePagesOp
- func (op *ItemsListFilePagesOp) Count(val int) *ItemsListFilePagesOp
- func (op *ItemsListFilePagesOp) Do(ctx context.Context) (*model.PageImages, error)
- func (op *ItemsListFilePagesOp) Dpi(val int) *ItemsListFilePagesOp
- func (op *ItemsListFilePagesOp) MaxHeight(val int) *ItemsListFilePagesOp
- func (op *ItemsListFilePagesOp) MaxWidth(val int) *ItemsListFilePagesOp
- func (op *ItemsListFilePagesOp) StartPosition(val int) *ItemsListFilePagesOp
- type ItemsListFolderItemsOp
- func (op *ItemsListFolderItemsOp) Count(val int) *ItemsListFolderItemsOp
- func (op *ItemsListFolderItemsOp) Do(ctx context.Context) (*model.WorkspaceFolderContents, error)
- func (op *ItemsListFolderItemsOp) IncludeFiles() *ItemsListFolderItemsOp
- func (op *ItemsListFolderItemsOp) IncludeSubFolders() *ItemsListFolderItemsOp
- func (op *ItemsListFolderItemsOp) IncludeThumbnails() *ItemsListFolderItemsOp
- func (op *ItemsListFolderItemsOp) IncludeUserDetail() *ItemsListFolderItemsOp
- func (op *ItemsListFolderItemsOp) StartPosition(val int) *ItemsListFolderItemsOp
- func (op *ItemsListFolderItemsOp) WorkspaceUserID(val string) *ItemsListFolderItemsOp
- type ItemsUpdateFileOp
- type ListOp
- type Service
- func (s *Service) Create(workspaces *model.Workspace) *CreateOp
- func (s *Service) Delete(workspaceID string) *DeleteOp
- func (s *Service) Get(workspaceID string) *GetOp
- func (s *Service) ItemsCreateFIle(folderID string, workspaceID string, media io.Reader, mimeType string) *ItemsCreateFIleOp
- func (s *Service) ItemsDeleteFolderItems(folderID string, workspaceID string, ...) *ItemsDeleteFolderItemsOp
- func (s *Service) ItemsGetFile(fileID string, folderID string, workspaceID string) *ItemsGetFileOp
- func (s *Service) ItemsListFilePages(fileID string, folderID string, workspaceID string) *ItemsListFilePagesOp
- func (s *Service) ItemsListFolderItems(folderID string, workspaceID string) *ItemsListFolderItemsOp
- func (s *Service) ItemsUpdateFile(fileID string, folderID string, workspaceID string, media io.Reader, ...) *ItemsUpdateFileOp
- func (s *Service) List() *ListOp
- func (s *Service) Update(workspaceID string, workspaces *model.Workspace) *UpdateOp
- type UpdateOp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemsCreateFIleOp ¶
ItemsCreateFIleOp implements DocuSign API SDK Workspaces::createWorkspaceFile
func (*ItemsCreateFIleOp) Do ¶
func (op *ItemsCreateFIleOp) Do(ctx context.Context) (*model.WorkspaceItem, error)
Do executes the op. A nil context will return error.
type ItemsDeleteFolderItemsOp ¶
ItemsDeleteFolderItemsOp implements DocuSign API SDK Workspaces::deleteWorkspaceFolderItems
type ItemsGetFileOp ¶
ItemsGetFileOp implements DocuSign API SDK Workspaces::getWorkspaceFile
func (*ItemsGetFileOp) IsDownload ¶
func (op *ItemsGetFileOp) IsDownload() *ItemsGetFileOp
IsDownload when set to **true**, the Content-Disposition header is set in the response. The value of the header provides the filename of the file. Default is **false**.
func (*ItemsGetFileOp) PdfVersion ¶
func (op *ItemsGetFileOp) PdfVersion() *ItemsGetFileOp
PdfVersion when set to **true** the file returned as a PDF.
type ItemsListFilePagesOp ¶
ItemsListFilePagesOp implements DocuSign API SDK Workspaces::listWorkspaceFilePages
func (*ItemsListFilePagesOp) Count ¶
func (op *ItemsListFilePagesOp) Count(val int) *ItemsListFilePagesOp
Count is the maximum number of results to be returned by this request.
func (*ItemsListFilePagesOp) Do ¶
func (op *ItemsListFilePagesOp) Do(ctx context.Context) (*model.PageImages, error)
Do executes the op. A nil context will return error.
func (*ItemsListFilePagesOp) Dpi ¶
func (op *ItemsListFilePagesOp) Dpi(val int) *ItemsListFilePagesOp
Dpi number of dots per inch for the resulting image. The default if not used is 94. The range is 1-310.
func (*ItemsListFilePagesOp) MaxHeight ¶
func (op *ItemsListFilePagesOp) MaxHeight(val int) *ItemsListFilePagesOp
MaxHeight sets the maximum height (in pixels) of the returned image.
func (*ItemsListFilePagesOp) MaxWidth ¶
func (op *ItemsListFilePagesOp) MaxWidth(val int) *ItemsListFilePagesOp
MaxWidth sets the maximum width (in pixels) of the returned image.
func (*ItemsListFilePagesOp) StartPosition ¶
func (op *ItemsListFilePagesOp) StartPosition(val int) *ItemsListFilePagesOp
StartPosition is the position within the total result set from which to start returning values. The value **thumbnail** may be used to return the page image.
type ItemsListFolderItemsOp ¶
ItemsListFolderItemsOp implements DocuSign API SDK Workspaces::listWorkspaceFolderItems
func (*ItemsListFolderItemsOp) Count ¶
func (op *ItemsListFolderItemsOp) Count(val int) *ItemsListFolderItemsOp
Count is the maximum number of results to be returned by this request.
func (*ItemsListFolderItemsOp) Do ¶
func (op *ItemsListFolderItemsOp) Do(ctx context.Context) (*model.WorkspaceFolderContents, error)
Do executes the op. A nil context will return error.
func (*ItemsListFolderItemsOp) IncludeFiles ¶
func (op *ItemsListFolderItemsOp) IncludeFiles() *ItemsListFolderItemsOp
IncludeFiles when set to **true**, file information is returned in the response along with folder information. The default is **false**.
func (*ItemsListFolderItemsOp) IncludeSubFolders ¶
func (op *ItemsListFolderItemsOp) IncludeSubFolders() *ItemsListFolderItemsOp
IncludeSubFolders when set to **true**, information about the sub-folders of the current folder is returned. The default is **false**.
func (*ItemsListFolderItemsOp) IncludeThumbnails ¶
func (op *ItemsListFolderItemsOp) IncludeThumbnails() *ItemsListFolderItemsOp
IncludeThumbnails when set to **true**, thumbnails are returned as part of the response. The default is **false**.
func (*ItemsListFolderItemsOp) IncludeUserDetail ¶
func (op *ItemsListFolderItemsOp) IncludeUserDetail() *ItemsListFolderItemsOp
IncludeUserDetail set to **true** to return extended details about the user. The default is **false**.
func (*ItemsListFolderItemsOp) StartPosition ¶
func (op *ItemsListFolderItemsOp) StartPosition(val int) *ItemsListFolderItemsOp
StartPosition is the position within the total result set from which to start returning values.
func (*ItemsListFolderItemsOp) WorkspaceUserID ¶
func (op *ItemsListFolderItemsOp) WorkspaceUserID(val string) *ItemsListFolderItemsOp
WorkspaceUserID if set, then the results are filtered to those associated with the specified userId.
type ItemsUpdateFileOp ¶
ItemsUpdateFileOp implements DocuSign API SDK Workspaces::updateWorkspaceFile
func (*ItemsUpdateFileOp) Do ¶
func (op *ItemsUpdateFileOp) Do(ctx context.Context) (*model.WorkspaceItem, error)
Do executes the op. A nil context will return error.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements DocuSign Workspaces Category API operations
func New ¶
func New(cred esign.Credential) *Service
New initializes a workspaces service using cred to authorize ops.
func (*Service) Create ¶
Create create a Workspace
https://developers.docusign.com/esign-rest-api/v2/reference/workspaces/workspaces/create
SDK Method Workspaces::createWorkspace
func (*Service) Delete ¶
Delete delete Workspace
https://developers.docusign.com/esign-rest-api/v2/reference/workspaces/workspaces/delete
SDK Method Workspaces::deleteWorkspace
func (*Service) Get ¶
Get get Workspace
https://developers.docusign.com/esign-rest-api/v2/reference/workspaces/workspaces/get
SDK Method Workspaces::getWorkspace
func (*Service) ItemsCreateFIle ¶
func (s *Service) ItemsCreateFIle(folderID string, workspaceID string, media io.Reader, mimeType string) *ItemsCreateFIleOp
ItemsCreateFIle creates a workspace file. If media is an io.ReadCloser, Do() will close media.
https://developers.docusign.com/esign-rest-api/v2/reference/workspaces/workspaceitems/createfile
SDK Method Workspaces::createWorkspaceFile
func (*Service) ItemsDeleteFolderItems ¶
func (s *Service) ItemsDeleteFolderItems(folderID string, workspaceID string, workspaceItemList *model.WorkspaceItemList) *ItemsDeleteFolderItemsOp
ItemsDeleteFolderItems deletes workspace one or more specific files/folders from the given folder or root.
SDK Method Workspaces::deleteWorkspaceFolderItems
func (*Service) ItemsGetFile ¶
func (s *Service) ItemsGetFile(fileID string, folderID string, workspaceID string) *ItemsGetFileOp
ItemsGetFile get Workspace File
https://developers.docusign.com/esign-rest-api/v2/reference/workspaces/workspaceitems/getfile
SDK Method Workspaces::getWorkspaceFile
func (*Service) ItemsListFilePages ¶
func (s *Service) ItemsListFilePages(fileID string, folderID string, workspaceID string) *ItemsListFilePagesOp
ItemsListFilePages list File Pages
https://developers.docusign.com/esign-rest-api/v2/reference/workspaces/workspaceitems/listfilepages
SDK Method Workspaces::listWorkspaceFilePages
func (*Service) ItemsListFolderItems ¶
func (s *Service) ItemsListFolderItems(folderID string, workspaceID string) *ItemsListFolderItemsOp
ItemsListFolderItems list Workspace Folder Contents
SDK Method Workspaces::listWorkspaceFolderItems
func (*Service) ItemsUpdateFile ¶
func (s *Service) ItemsUpdateFile(fileID string, folderID string, workspaceID string, media io.Reader, mimeType string) *ItemsUpdateFileOp
ItemsUpdateFile update Workspace File Metadata If media is an io.ReadCloser, Do() will close media.
https://developers.docusign.com/esign-rest-api/v2/reference/workspaces/workspaceitems/updatefile
SDK Method Workspaces::updateWorkspaceFile
func (*Service) List ¶
List list Workspaces
https://developers.docusign.com/esign-rest-api/v2/reference/workspaces/workspaces/list
SDK Method Workspaces::listWorkspaces