Sha256: 2c627447c97aff1b0dc781f78086044ae06ad7a582ca0d1d7b61ecfe71923b7d
Contents?: true
Size: 1.75 KB
Versions: 1
Compression:
Stored size: 1.75 KB
Contents
from pprint import pprint from hellosign_sdk import \ ApiClient, ApiException, Configuration, apis, models configuration = Configuration( # Configure HTTP basic authorization: api_key username="YOUR_API_KEY", # or, configure Bearer (JWT) authorization: oauth2 # access_token="YOUR_ACCESS_TOKEN", ) with ApiClient(configuration) as api_client: api = apis.SignatureRequestApi(api_client) signer_1 = models.SubSignatureRequestSigner( email_address="jack@example.com", name="Jack", order=0, ) signer_2 = models.SubSignatureRequestSigner( email_address="jill@example.com", name="Jill", order=1, ) signing_options = models.SubSigningOptions( draw=True, type=True, upload=True, phone=True, default_type="draw", ) field_options = models.SubFieldOptions( date_format="DD - MM - YYYY", ) data = models.SignatureRequestSendRequest( title="NDA with Acme Co.", subject="The NDA we talked about", message="Please sign this NDA and then we can discuss more. Let me know if you have any questions.", signers=[signer_1, signer_2], cc_email_addresses=[ "lawyer@hellosign.com", "lawyer@example.com", ], file_url=["https://app.hellosign.com/docs/example_signature_request.pdf"], metadata={ "custom_id": 1234, "custom_text": "NDA #9", }, signing_options=signing_options, field_options=field_options, test_mode=True, ) try: response = api.signature_request_send(data) pprint(response) except ApiException as e: print("Exception when calling HelloSign API: %s\n" % e)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hellosign-ruby-sdk-6.0.0.pre.beta | oas/examples/SignatureRequestSend.py |