Documentation ¶
Index ¶
- Constants
- type Client
- func (m *Client) CancelSignatureRequest(signatureRequestID string) (*http.Response, error)
- func (m *Client) CreateEmbeddedSignatureRequest(embeddedRequest model.EmbeddedSignatureRequest) (*model.SignatureRequest, error)
- func (m *Client) CreateEmbeddedSignatureWithTemplateRequest(embeddedRequest model.EmbeddedSignatureWithTemplateRequest, ...) (*model.SignatureRequest, error)
- func (m *Client) CreateEmbeddedTemplate(req model.CreateEmbeddedTemplateRequest) (*model.EmbeddedTemplate, error)
- func (m *Client) CreateNewApiApp(req model.CreateApiAppRequest) (*model.APIApp, error)
- func (m *Client) DeleteSignatureRequest(signatureRequestID string) (*http.Response, error)
- func (m *Client) DeleteTemplate(templateID string) (*http.Response, error)
- func (m *Client) GetEmbeddedSignURL(signatureID string) (*model.SignURLResponse, error)
- func (m *Client) GetEmbeddedTemplateEditURL(templateID, customFields string, enableEdit, testMode bool) (*model.EmbeddedTemplateEditURL, error)
- func (m *Client) GetEmbeddedTemplateEditURLForPreview(templateID string, testMode bool) (*model.EmbeddedTemplateEditURL, error)
- func (m *Client) GetFiles(signatureRequestID, fileType string) ([]byte, error)
- func (m *Client) GetFinalCopy(signatureRequestID string) ([]byte, error)
- func (m *Client) GetPDF(signatureRequestID string) ([]byte, error)
- func (m *Client) GetSignatureRequest(signatureRequestID string) (*model.SignatureRequest, error)
- func (m *Client) GetTemplate(templateID string) (*model.Template, error)
- func (m *Client) ListSignatureRequests() (*model.ListSignaturesResponse, error)
- func (m *Client) ListTemplates() (*model.ListTemplatesResponse, error)
- func (m *Client) SaveFile(signatureRequestID, fileType, destFilePath string) (os.FileInfo, error)
- func (m *Client) UpdateSignatureRequest(signatureRequestID string, signatureID string, email string) (*model.SignatureRequest, error)
Constants ¶
const ( HellosignCustomLogoFileKey = "custom_logo_file" DomainsKey string = "domains" )
const ( CCEmailAddressesKey string = "cc_email_addresses" FileKey string = "file" SignersKey string = "signers" FormFieldsPerDocKey string = "form_fields_per_document" CustomFieldsKey string = "custom_fields" FormFieldKey string = "form_field" )
const ( ClientIDKey string = "client_id" TestModeKey string = "test_mode" TitleKey string = "title" SubjectKey string = "subject" MessageKey string = "message" ShowPreviewKey string = "show_preview" PreviewOnlyKey string = "preview_only" MetadataKey string = "metadata" SignerRolesKey string = "signer_roles" FileURLKey string = "file_url" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client contains APIKey and optional http.client
func (*Client) CancelSignatureRequest ¶
CancelSignatureRequest - Cancels an incomplete signature request. This action is not reversible.
func (*Client) CreateEmbeddedSignatureRequest ¶
func (m *Client) CreateEmbeddedSignatureRequest(embeddedRequest model.EmbeddedSignatureRequest) (*model.SignatureRequest, error)
CreateEmbeddedSignatureRequest creates a new embedded signature
func (*Client) CreateEmbeddedSignatureWithTemplateRequest ¶ added in v1.1.6
func (m *Client) CreateEmbeddedSignatureWithTemplateRequest(embeddedRequest model.EmbeddedSignatureWithTemplateRequest, signerRoles []model.SignerRole) (*model.SignatureRequest, error)
CreateEmbeddedSignatureWithTemplateRequest creates a new embedded signature with template id
func (*Client) CreateEmbeddedTemplate ¶ added in v1.1.1
func (m *Client) CreateEmbeddedTemplate(req model.CreateEmbeddedTemplateRequest) (*model.EmbeddedTemplate, error)
CreateEmbeddedTemplate creates a new embedded Template
func (*Client) CreateNewApiApp ¶ added in v1.1.4
CreateNewApiApp – Creates a new API App. Note: we don't support a single domain at the moment as it is out of our current use cases
func (*Client) DeleteSignatureRequest ¶ added in v1.1.1
DeleteSignatureRequest - Remove access to a completed SignatureRequest. This action is not reversible.
func (*Client) DeleteTemplate ¶ added in v1.1.1
DeleteTemplate completely deletes the template specified from the account and is irreversible
func (*Client) GetEmbeddedSignURL ¶
func (m *Client) GetEmbeddedSignURL(signatureID string) (*model.SignURLResponse, error)
GetEmbeddedSignURL - Retrieves an embedded signing object.
func (*Client) GetEmbeddedTemplateEditURL ¶ added in v1.1.2
func (m *Client) GetEmbeddedTemplateEditURL(templateID, customFields string, enableEdit, testMode bool) (*model.EmbeddedTemplateEditURL, error)
GetEmbeddedTemplateEditURL - Retrieves an embedded template object to edit.
func (*Client) GetEmbeddedTemplateEditURLForPreview ¶ added in v1.1.16
func (m *Client) GetEmbeddedTemplateEditURLForPreview(templateID string, testMode bool) (*model.EmbeddedTemplateEditURL, error)
GetEmbeddedTemplateEditURLForPreview - Retrieves an embedded template object for preview. This method uses model.CreateEmbeddedTemplateRequest under the hood which probably needs to be renamed so that it can be reused across different methods.
func (*Client) GetFiles ¶
GetFiles - Obtain a copy of the current documents specified by the signature_request_id parameter. signatureRequestID - The id of the SignatureRequest to retrieve. fileType - Set to "pdf" for a single merged document or "zip" for a collection of individual documents. note: this will return an unsigned copy instead of 404 if the signature request is not signed.
func (*Client) GetFinalCopy ¶ added in v1.1.15
GetFinalCopy - Obtain a final (signed) copy of a signature_request_id in pdf format.
func (*Client) GetPDF ¶
GetPDF - Obtain a copy of the current pdf specified by the signature_request_id parameter.
func (*Client) GetSignatureRequest ¶
func (m *Client) GetSignatureRequest(signatureRequestID string) (*model.SignatureRequest, error)
GetSignatureRequest - Gets a SignatureRequest that includes the current status for each signer.
func (*Client) GetTemplate ¶ added in v1.1.9
func (*Client) ListSignatureRequests ¶
func (m *Client) ListSignatureRequests() (*model.ListSignaturesResponse, error)
ListSignatureRequests - Lists the SignatureRequests (both inbound and outbound) that you have access to.
func (*Client) ListTemplates ¶ added in v1.1.1
func (m *Client) ListTemplates() (*model.ListTemplatesResponse, error)
ListTemplates retrieves a list that are accessible by your account
func (*Client) UpdateSignatureRequest ¶
func (m *Client) UpdateSignatureRequest(signatureRequestID string, signatureID string, email string) (*model.SignatureRequest, error)
UpdateSignatureRequest - Update an email address on a signature request.