Documentation ¶
Overview ¶
Package folders implements the DocuSign SDK category Folders.
Use the Folders category to manage envelopes in your folders.
You can list the folder contents and move envelopes between folders.
Service Api documentation may be found at: https://developers.docusign.com/esign-rest-api/reference/Folders Usage example:
import ( "github.com/thaitanloi365/esign" "github.com/thaitanloi365/esign/v2.1/folders" "github.com/thaitanloi365/esign/v2.1/model" ) ... foldersService := folders.New(esignCredential)
Index ¶
- type ListItemsOp
- func (op *ListItemsOp) Do(ctx context.Context) (*model.FolderItemsResponse, error)
- func (op *ListItemsOp) FromDate(val time.Time) *ListItemsOp
- func (op *ListItemsOp) IncludeItems(val string) *ListItemsOp
- func (op *ListItemsOp) OwnerEmail(val string) *ListItemsOp
- func (op *ListItemsOp) OwnerName(val string) *ListItemsOp
- func (op *ListItemsOp) SearchText(val string) *ListItemsOp
- func (op *ListItemsOp) StartPosition(val int) *ListItemsOp
- func (op *ListItemsOp) Status(val string) *ListItemsOp
- func (op *ListItemsOp) ToDate(val time.Time) *ListItemsOp
- type ListOp
- func (op *ListOp) Do(ctx context.Context) (*model.FoldersResponse, error)
- func (op *ListOp) Include(val string) *ListOp
- func (op *ListOp) IncludeItems(val string) *ListOp
- func (op *ListOp) StartPosition(val int) *ListOp
- func (op *ListOp) Template(val string) *ListOp
- func (op *ListOp) UserFilter(val string) *ListOp
- type MoveEnvelopesOp
- type SearchOp
- func (op *SearchOp) All() *SearchOp
- func (op *SearchOp) Count(val int) *SearchOp
- func (op *SearchOp) Do(ctx context.Context) (*model.FolderItemResponse, error)
- func (op *SearchOp) FromDate(val time.Time) *SearchOp
- func (op *SearchOp) IncludeRecipients() *SearchOp
- func (op *SearchOp) Order(val string) *SearchOp
- func (op *SearchOp) OrderBy(val string) *SearchOp
- func (op *SearchOp) StartPosition(val int) *SearchOp
- func (op *SearchOp) ToDate(val time.Time) *SearchOp
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListItemsOp ¶
ListItemsOp implements DocuSign API SDK Folders::listItems
func (*ListItemsOp) Do ¶
func (op *ListItemsOp) Do(ctx context.Context) (*model.FolderItemsResponse, error)
Do executes the op. A nil context will return error.
func (*ListItemsOp) FromDate ¶
func (op *ListItemsOp) FromDate(val time.Time) *ListItemsOp
FromDate reserved for DocuSign.
func (*ListItemsOp) IncludeItems ¶
func (op *ListItemsOp) IncludeItems(val string) *ListItemsOp
IncludeItems indicates whether folder items are included in the response. If this parameter is omitted, the default is false.
func (*ListItemsOp) OwnerEmail ¶
func (op *ListItemsOp) OwnerEmail(val string) *ListItemsOp
OwnerEmail reserved for DocuSign.
func (*ListItemsOp) OwnerName ¶
func (op *ListItemsOp) OwnerName(val string) *ListItemsOp
OwnerName reserved for DocuSign.
func (*ListItemsOp) SearchText ¶
func (op *ListItemsOp) SearchText(val string) *ListItemsOp
SearchText reserved for DocuSign.
func (*ListItemsOp) StartPosition ¶
func (op *ListItemsOp) StartPosition(val int) *ListItemsOp
StartPosition reserved for DocuSign.
func (*ListItemsOp) Status ¶
func (op *ListItemsOp) Status(val string) *ListItemsOp
Status reserved for DocuSign.
func (*ListItemsOp) ToDate ¶
func (op *ListItemsOp) ToDate(val time.Time) *ListItemsOp
ToDate reserved for DocuSign.
type ListOp ¶
ListOp implements DocuSign API SDK Folders::list
func (*ListOp) Include ¶
Include is a comma-separated list of folder types to include in the response. Valid values are:
- `envelope_folders`: Returns a list of envelope folders. (Default) - `template_folders`: Returns a list of template folders. - `shared_template_folders`: Returns a list of shared template folders.
func (*ListOp) IncludeItems ¶
IncludeItems indicates whether folder items are included in the response. If this parameter is omitted, the default is false.
func (*ListOp) StartPosition ¶
StartPosition is the position within the total result set from which to start returning values.
func (*ListOp) Template ¶
Template this parameter is deprecated as of version 2.1. Use `include` instead.
func (*ListOp) UserFilter ¶
UserFilter narrows down the resulting folder list by the following values:
- `all`: Returns all templates owned or shared with the user. (default) - `owned_by_me`: Returns only templates the user owns. - `shared_with_me`: Returns only templates that are shared with the user.
type MoveEnvelopesOp ¶
MoveEnvelopesOp implements DocuSign API SDK Folders::moveEnvelopes
func (*MoveEnvelopesOp) Do ¶
func (op *MoveEnvelopesOp) Do(ctx context.Context) (*model.FoldersResponse, error)
Do executes the op. A nil context will return error.
type SearchOp ¶
SearchOp implements DocuSign API SDK Folders::search
func (*SearchOp) Count ¶
Count specifies the number of records returned in the cache. The number must be greater than 0 and less than or equal to 100.
func (*SearchOp) FromDate ¶
FromDate specifies the start of the date range to return. If no value is provided, the default search is the previous 30 days.
func (*SearchOp) IncludeRecipients ¶
IncludeRecipients when set to **true**, the recipient information is returned in the response.
func (*SearchOp) Order ¶
Order specifies the order in which the list is returned. Valid values are: `asc` for ascending order, and `desc` for descending order.
func (*SearchOp) OrderBy ¶
OrderBy specifies the property used to sort the list. Valid values are: `action_required`, `created`, `completed`, `sent`, `signer_list`, `status`, or `subject`.
func (*SearchOp) StartPosition ¶
StartPosition specifies the the starting location in the result set of the items that are returned.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements DocuSign Folders Category API operations
func New ¶
func New(cred esign.Credential) *Service
New initializes a folders service using cred to authorize ops.
func (*Service) List ¶
List gets a list of the folders for the account.
https://developers.docusign.com/esign-rest-api/reference/folders/folders/list
SDK Method Folders::list
func (*Service) ListItems ¶
func (s *Service) ListItems(folderID string) *ListItemsOp
ListItems gets a list of the envelopes in the specified folder.
https://developers.docusign.com/esign-rest-api/reference/folders/folders/listitems
SDK Method Folders::listItems
func (*Service) MoveEnvelopes ¶
func (s *Service) MoveEnvelopes(folderID string, foldersRequest *model.FoldersRequest) *MoveEnvelopesOp
MoveEnvelopes moves an envelope from its current folder to the specified folder.
https://developers.docusign.com/esign-rest-api/reference/folders/folders/moveenvelopes
SDK Method Folders::moveEnvelopes