Document
Document methods
Static Method Summary
Static Public Methods | ||
public static |
cancelInvite(objectPattern: {"id": *, "token": *}, callback: *) |
|
public static |
create(data: DocumentCreateParams, callback: function(err: ApiErrorResponse, res: DocumentCreateResponse)) Uploads a file and creates a document. |
|
public static |
download(data: DocumentDownloadParams, callback: function(err: ApiErrorResponse, res: DocumentDownloadResponse)) Downloads document with embedded fields and elements |
|
public static |
fieldextract(data: DocumentFieldExtractParams, callback: function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)) Uploads a file that contains SignNow Document Field Tags. |
|
public static |
history(data: DocumentHistoryParams, callback: function(err: ApiErrorResponse, res: DocumentHistoryResponse)) Retrieves a document action log (history) data |
|
public static |
invite(data: DocumentInviteParams, callback: function(err: ApiErrorResponse, res: DocumentInviteResponse)) Creates an invite to sign a document. |
|
public static |
list(data: DocumentListParams, callback: function(err: ApiErrorResponse, res: DocumentListItem)) Retrieve user's document list |
|
public static |
merge(data: DocumentMergeParams, originalCallback: function(err: ApiErrorResponse, res: DocumentMergeResponse)) Merges existing documents into one. |
|
public static |
remove(data: DocumentRemoveParams, callback: function(err: ApiErrorResponse, res: DocumentRemoveResponse)) Removes a specified document from folder |
|
public static |
share(objectPattern: {"id": *, "token": *}, callback: *) |
|
public static |
update(data: DocumentUpdateParams, callback: function(err: ApiErrorResponse, res: DocumentUpdateResponse)) Updates an existing document. |
|
public static |
view(data: DocumentViewParams, callback: function(err: ApiErrorResponse, res: DocumentViewResponse)) Retrieves a document detailed data |
Static Public Methods
public static cancelInvite(objectPattern: {"id": *, "token": *}, callback: *) source
Params:
Name | Type | Attribute | Description |
objectPattern | {"id": *, "token": *} |
|
|
callback | * |
public static create(data: DocumentCreateParams, callback: function(err: ApiErrorResponse, res: DocumentCreateResponse)) source
Uploads a file and creates a document. This endpoint accepts .pdf, .doc, .docx, .odt, .rtf, .png, .jpg, .jpeg, .gif, .bmp, .xml, .xls, .xlsx, .ppt, .pptx file types
Params:
Name | Type | Attribute | Description |
data | DocumentCreateParams | create document payload |
|
callback | function(err: ApiErrorResponse, res: DocumentCreateResponse) |
|
error first node.js callback |
public static download(data: DocumentDownloadParams, callback: function(err: ApiErrorResponse, res: DocumentDownloadResponse)) source
Downloads document with embedded fields and elements
Params:
Name | Type | Attribute | Description |
data | DocumentDownloadParams | download document request payload |
|
callback | function(err: ApiErrorResponse, res: DocumentDownloadResponse) |
|
error first node.js callback |
public static fieldextract(data: DocumentFieldExtractParams, callback: function(err: ApiErrorResponse, res: DocumentFieldExtractResponse)) source
Uploads a file that contains SignNow Document Field Tags. This endpoint only accepts .pdf (you may convert the document from .doc or .docx to .pdf)
Params:
Name | Type | Attribute | Description |
data | DocumentFieldExtractParams | upload document with field extract payload |
|
callback | function(err: ApiErrorResponse, res: DocumentFieldExtractResponse) |
|
error first node.js callback |
public static history(data: DocumentHistoryParams, callback: function(err: ApiErrorResponse, res: DocumentHistoryResponse)) source
Retrieves a document action log (history) data
Params:
Name | Type | Attribute | Description |
data | DocumentHistoryParams | payload |
|
callback | function(err: ApiErrorResponse, res: DocumentHistoryResponse) |
|
error first node.js callback |
public static invite(data: DocumentInviteParams, callback: function(err: ApiErrorResponse, res: DocumentInviteResponse)) source
Creates an invite to sign a document. You can create a simple free form invite(s) or a role-based invite(s).
Params:
Name | Type | Attribute | Description |
data | DocumentInviteParams | create document invite payload |
|
callback | function(err: ApiErrorResponse, res: DocumentInviteResponse) |
|
error first node.js callback |
public static list(data: DocumentListParams, callback: function(err: ApiErrorResponse, res: DocumentListItem)) source
Retrieve user's document list
Params:
Name | Type | Attribute | Description |
data | DocumentListParams | payload to receive user's document list |
|
callback | function(err: ApiErrorResponse, res: DocumentListItem) |
|
error first node.js callback |
public static merge(data: DocumentMergeParams, originalCallback: function(err: ApiErrorResponse, res: DocumentMergeResponse)) source
Merges existing documents into one.
By default original documents are not removed after merging. To remove original documents set removeOriginalDocuments
option to true
.
Params:
Name | Type | Attribute | Description |
data | DocumentMergeParams | merge documents payload |
|
originalCallback | function(err: ApiErrorResponse, res: DocumentMergeResponse) |
|
error first node.js callback |
public static remove(data: DocumentRemoveParams, callback: function(err: ApiErrorResponse, res: DocumentRemoveResponse)) source
Removes a specified document from folder
Params:
Name | Type | Attribute | Description |
data | DocumentRemoveParams | remove document payload |
|
callback | function(err: ApiErrorResponse, res: DocumentRemoveResponse) |
|
error first node.js callback |
public static share(objectPattern: {"id": *, "token": *}, callback: *) source
Params:
Name | Type | Attribute | Description |
objectPattern | {"id": *, "token": *} |
|
|
callback | * |
public static update(data: DocumentUpdateParams, callback: function(err: ApiErrorResponse, res: DocumentUpdateResponse)) source
Updates an existing document. Adds fields (signature, text, initials, checkbox, radiobutton group, calculated) and elements (signature, text, check). Every call of this method will add only specified fields into document. Old fields will be removed
Params:
Name | Type | Attribute | Description |
data | DocumentUpdateParams | update document request payload |
|
callback | function(err: ApiErrorResponse, res: DocumentUpdateResponse) |
|
error first node.js callback |
public static view(data: DocumentViewParams, callback: function(err: ApiErrorResponse, res: DocumentViewResponse)) source
Retrieves a document detailed data
Params:
Name | Type | Attribute | Description |
data | DocumentViewParams | view document details payload |
|
callback | function(err: ApiErrorResponse, res: DocumentViewResponse) |
|
error first node.js callback |