Documentation ¶
Overview ¶
Package workspaces implements the DocuSign SDK category Workspaces.
A workspace is a collaborative space for sharing documents and managing workflows. A workspace has a single owner who must be a DocuSign user. The owner can invite others to the workspace as collaborators. Individuals who are not DocuSign users must create a DocuSign account to join a workspace as a collaborator.
You can create an envelope directly from a workspace.
Workspaces store the following information:
- **Files:** Files uploaded to a workspace for storage or reuse. - **Documents:** A document is a component of a transaction, template, or workspace. When a file is added to a transaction, template, or workspace, it is copied as a document. Each document in a workspace has a single owner. - **Templates:** A set of documents that you can use to create a transaction or a workspace. - **Transactions:** A transaction is a series of workflow events related to one or more documents. These events route the documents to one or more individuals for the purposes of doing business. Each transaction has a single owner (the sender).
**Note:** Documents in a template are not individually listed as files.
Service Api documentation may be found at: https://developers.docusign.com/docs/esign-rest-api/reference/Workspaces Usage example:
import ( "github.com/jfcote87/esign" "github.com/jfcote87/esign/v2.1/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(workspace *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, workspace *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) Do ¶
func (op *ItemsGetFileOp) Do(ctx context.Context) error
Do executes the op. A nil context will return error.
func (*ItemsGetFileOp) IsDownload ¶
func (op *ItemsGetFileOp) IsDownload() *ItemsGetFileOp
IsDownload when **true,** the `Content-Disposition` header is set in the response. The value of the header provides the filename of the file. The default is **false.**
func (*ItemsGetFileOp) PdfVersion ¶
func (op *ItemsGetFileOp) PdfVersion() *ItemsGetFileOp
PdfVersion when **true** the file is returned in PDF format.
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 return.
Use `start_position` to specify the number of results to skip.
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 is the number of dots per inch (DPI) for the resulting images. Valid values are 1-310 DPI. The default value is 94.
func (*ItemsListFilePagesOp) MaxHeight ¶
func (op *ItemsListFilePagesOp) MaxHeight(val int) *ItemsListFilePagesOp
MaxHeight sets the maximum height of the returned images in pixels.
func (*ItemsListFilePagesOp) MaxWidth ¶
func (op *ItemsListFilePagesOp) MaxWidth(val int) *ItemsListFilePagesOp
MaxWidth sets the maximum width of the returned images in pixels.
func (*ItemsListFilePagesOp) StartPosition ¶
func (op *ItemsListFilePagesOp) StartPosition(val int) *ItemsListFilePagesOp
StartPosition is the zero-based index of the result from which to start returning results.
Use with `count` to limit the number of results.
The default value is `0`.
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 return.
Use `start_position` to specify the number of results to skip.
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 **true,** the response includes file information (in addition to folder information). The default is **false.**
func (*ItemsListFolderItemsOp) IncludeSubFolders ¶
func (op *ItemsListFolderItemsOp) IncludeSubFolders() *ItemsListFolderItemsOp
IncludeSubFolders when **true,** the response includes information about the sub-folders of the current folder. The default is **false.**
func (*ItemsListFolderItemsOp) IncludeThumbnails ¶
func (op *ItemsListFolderItemsOp) IncludeThumbnails() *ItemsListFolderItemsOp
IncludeThumbnails when **true,** the response returns thumbnails. The default is **false.**
func (*ItemsListFolderItemsOp) IncludeUserDetail ¶
func (op *ItemsListFolderItemsOp) IncludeUserDetail() *ItemsListFolderItemsOp
IncludeUserDetail when **true,** the response includes extended details about the user. The default is **false.**
func (*ItemsListFolderItemsOp) StartPosition ¶
func (op *ItemsListFolderItemsOp) StartPosition(val int) *ItemsListFolderItemsOp
StartPosition is the zero-based index of the result from which to start returning results.
Use with `count` to limit the number of results.
The default value is `0`.
func (*ItemsListFolderItemsOp) WorkspaceUserID ¶
func (op *ItemsListFolderItemsOp) WorkspaceUserID(val string) *ItemsListFolderItemsOp
WorkspaceUserID if set, the response only includes results associated with the `userId` that you specify.
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 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/docs/esign-rest-api/reference/workspaces/workspaces/create
SDK Method Workspaces::createWorkspace
func (*Service) Delete ¶
Delete delete Workspace
https://developers.docusign.com/docs/esign-rest-api/reference/workspaces/workspaces/delete
SDK Method Workspaces::deleteWorkspace
func (*Service) Get ¶
Get get Workspace
https://developers.docusign.com/docs/esign-rest-api/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/docs/esign-rest-api/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 files or sub-folders from a workspace.
SDK Method Workspaces::deleteWorkspaceFolderItems
func (*Service) ItemsGetFile ¶
func (s *Service) ItemsGetFile(fileID string, folderID string, workspaceID string) *ItemsGetFileOp
ItemsGetFile gets a workspace file
https://developers.docusign.com/docs/esign-rest-api/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
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 or folder metadata If media is an io.ReadCloser, Do() will close media.
https://developers.docusign.com/docs/esign-rest-api/reference/workspaces/workspaceitems/updatefile
SDK Method Workspaces::updateWorkspaceFile
func (*Service) List ¶
List list Workspaces
https://developers.docusign.com/docs/esign-rest-api/reference/workspaces/workspaces/list
SDK Method Workspaces::listWorkspaces