Docusign¶
- model.docusign¶
- Returns:
An ApiDocuSign object that provides access to DocuSign electronic signature services
- Return type:
ApiDocuSign
This property provides access to the DocuSign API functionality through an ApiDocuSign object. The ApiDocuSign object contains methods for creating and working with DocuSign objects.
Example:
# Create a DocuSign envelope envelope = model.docusign.EnvelopeDefinition() envelope.EmailSubject = "Please sign this document" # Create a document document = model.docusign.Document() document.DocumentBase64 = base64_encoded_pdf document.Name = "Agreement.pdf" document.DocumentId = "1" # Add the document to the envelope envelope.Documents = [document] # Create a signer recipient signer = model.docusign.Signer() signer.Email = "john.doe@example.com" signer.Name = "John Doe" signer.RecipientId = "1" # Create a sign here tab signHere = model.docusign.SignHere() signHere.DocumentId = "1" signHere.PageNumber = "1" signHere.XPosition = "100" signHere.YPosition = "100" # Add the sign here tab to the signer tabs = model.docusign.Tabs() tabs.SignHereTabs = [signHere] signer.Tabs = tabs # Add the signer to the envelope recipients = model.docusign.Recipients() recipients.Signers = [signer] envelope.Recipients = recipients