Modules@robinpath/hellosign
hellosign

@robinpath/hellosign

0.1.1Node.jsPublic

HelloSign module for RobinPath.

HelloSign

HelloSign module for RobinPath.

Package: @robinpath/hellosign | Category: Documents | Type: Integration

Authentication

hellosign.setCredentials "your-credentials"

Call this once at the start of your script before using any other function. Credentials persist for the duration of the script execution.

Use Cases

Use the hellosign module when you need to:

  • getSignatureRequest -- Use hellosign.getSignatureRequest to perform this operation
  • listSignatureRequests -- Use hellosign.listSignatureRequests to perform this operation
  • sendSignatureRequest -- Use hellosign.sendSignatureRequest to perform this operation
  • sendWithTemplate -- Use hellosign.sendWithTemplate to perform this operation
  • cancelSignatureRequest -- Use hellosign.cancelSignatureRequest to perform this operation

Quick Reference

FunctionDescriptionReturns
setCredentialsConfigure hellosign credentials.object
getSignatureRequestgetSignatureRequestobject
listSignatureRequestslistSignatureRequestsobject
sendSignatureRequestsendSignatureRequestobject
sendWithTemplatesendWithTemplateobject
cancelSignatureRequestcancelSignatureRequestobject
downloadSignatureRequestdownloadSignatureRequestobject
remindSignatureRequestremindSignatureRequestobject
listTemplateslistTemplatesobject
getTemplategetTemplateobject
deleteTemplatedeleteTemplateobject
createEmbeddedSignatureRequestcreateEmbeddedSignatureRequestobject
getAccountgetAccountobject
updateAccountupdateAccountobject
listTeamMemberslistTeamMembersobject

Functions

setCredentials

Configure hellosign credentials.

Module: hellosign | Returns: object -- API response.

hellosign.setCredentials
ParameterTypeRequiredDescription
apiKeystringYesapiKey

getSignatureRequest

getSignatureRequest

Module: hellosign | Returns: object -- API response.

hellosign.getSignatureRequest
ParameterTypeRequiredDescription
inputstringNoInput parameter

listSignatureRequests

listSignatureRequests

Module: hellosign | Returns: object -- API response.

hellosign.listSignatureRequests
ParameterTypeRequiredDescription
inputstringNoInput parameter

sendSignatureRequest

sendSignatureRequest

Module: hellosign | Returns: object -- API response.

hellosign.sendSignatureRequest
ParameterTypeRequiredDescription
inputstringNoInput parameter

sendWithTemplate

sendWithTemplate

Module: hellosign | Returns: object -- API response.

hellosign.sendWithTemplate
ParameterTypeRequiredDescription
inputstringNoInput parameter

cancelSignatureRequest

cancelSignatureRequest

Module: hellosign | Returns: object -- API response.

hellosign.cancelSignatureRequest
ParameterTypeRequiredDescription
inputstringNoInput parameter

downloadSignatureRequest

downloadSignatureRequest

Module: hellosign | Returns: object -- API response.

hellosign.downloadSignatureRequest
ParameterTypeRequiredDescription
inputstringNoInput parameter

remindSignatureRequest

remindSignatureRequest

Module: hellosign | Returns: object -- API response.

hellosign.remindSignatureRequest
ParameterTypeRequiredDescription
inputstringNoInput parameter

listTemplates

listTemplates

Module: hellosign | Returns: object -- API response.

hellosign.listTemplates
ParameterTypeRequiredDescription
inputstringNoInput parameter

getTemplate

getTemplate

Module: hellosign | Returns: object -- API response.

hellosign.getTemplate
ParameterTypeRequiredDescription
inputstringNoInput parameter

deleteTemplate

deleteTemplate

Module: hellosign | Returns: object -- API response.

hellosign.deleteTemplate
ParameterTypeRequiredDescription
inputstringNoInput parameter

createEmbeddedSignatureRequest

createEmbeddedSignatureRequest

Module: hellosign | Returns: object -- API response.

hellosign.createEmbeddedSignatureRequest
ParameterTypeRequiredDescription
inputstringNoInput parameter

getAccount

getAccount

Module: hellosign | Returns: object -- API response.

hellosign.getAccount
ParameterTypeRequiredDescription
inputstringNoInput parameter

updateAccount

updateAccount

Module: hellosign | Returns: object -- API response.

hellosign.updateAccount
ParameterTypeRequiredDescription
inputstringNoInput parameter

listTeamMembers

listTeamMembers

Module: hellosign | Returns: object -- API response.

hellosign.listTeamMembers
ParameterTypeRequiredDescription
inputstringNoInput parameter

Error Handling

All functions throw on failure. Common errors:

ErrorCause
Hellosign API error (${res.status}): ${t}Check the error message for details
hellosign.setCredentials requires apiKey.Check the error message for details
hellosign.cancelSignatureRequest requires an ID.Check the error message for details
hellosign.remindSignatureRequest requires an ID.Check the error message for details
hellosign.deleteTemplate requires an ID.Check the error message for details
hellosign.updateAccount requires an ID.Check the error message for details
Hellosign: "..." not configured. Call hellosign.setCredentials first.Check the error message for details
@desc "Get signature request and validate result"
do
  set $result as hellosign.getSignatureRequest
  if $result != null
    print "Success"
  else
    print "No result"
  end
enddo

Recipes

1. List and iterate SignatureRequest

Retrieve all items and loop through them.

@desc "Setup authentication"
do
  hellosign.setCredentials $token
enddo

@desc "Get signature request and iterate results"
do
  set $result as hellosign.getSignatureRequest
  each $item in $result
    print $item
  end
enddo

2. Create a new item with sendSignatureRequest

Create a new resource and capture the result.

@desc "Setup authentication"
do
  hellosign.setCredentials $token
enddo

@desc "Send signature request"
do
  set $result as hellosign.sendSignatureRequest
  print "Created: " + $result
enddo

3. Create and update workflow

Create an item and then update it.

@desc "Setup authentication"
do
  hellosign.setCredentials $token
enddo

@desc "Send signature request and update account"
do
  set $created as hellosign.sendSignatureRequest
  # Update the created item
  hellosign.updateAccount
enddo

4. Check before creating

List existing items and only create if needed.

@desc "Setup authentication"
do
  hellosign.setCredentials $token
enddo

@desc "Get signature request and send signature request"
do
  set $existing as hellosign.getSignatureRequest
  if $existing == null
    hellosign.sendSignatureRequest
    print "Item created"
  else
    print "Item already exists"
  end
enddo

5. Multi-step HelloSign workflow

Chain multiple hellosign operations together.

@desc "Setup authentication"
do
  hellosign.setCredentials $token
enddo

@desc "Get signature request, list signature requests, and more"
do
  set $r_getSignatureRequest as hellosign.getSignatureRequest
  set $r_listSignatureRequests as hellosign.listSignatureRequests
  set $r_sendSignatureRequest as hellosign.sendSignatureRequest
  print "All operations complete"
enddo

6. Safe getSignatureRequest with validation

Check results before proceeding.

@desc "Setup authentication"
do
  hellosign.setCredentials $token
enddo

@desc "Get signature request and validate result"
do
  set $result as hellosign.getSignatureRequest
  if $result != null
    print "Success: " + $result
  else
    print "Operation returned no data"
  end
enddo

Related Modules

  • pdf -- PDF module for complementary functionality
  • excel -- Excel module for complementary functionality
  • office -- Office module for complementary functionality
  • docusign -- DocuSign module for complementary functionality
  • pandadoc -- PandaDoc module for complementary functionality

Versions (1)

VersionTagPublished
0.1.1latest1 months ago
Install
$ robinpath add @robinpath/hellosign

Collaborators

Dumitru Balaban
Dumitru Balaban
@dumitru
View all @robinpath modules
Version0.1.1
LicenseMIT
Unpacked Size4.6 KB
Versions1
Weekly Downloads26
Total Downloads26
Stars0
Last Publish1 months ago
Created1 months ago

Category

productivity