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", ) data = models.SignatureRequestCreateEmbeddedRequest( client_id="ec64a202072370a737edf4a0eb7f4437", 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"], signing_options=signing_options, test_mode=True, ) try: response = api.signature_request_create_embedded(data) pprint(response) except ApiException as e: print("Exception when calling HelloSign API: %s\n" % e)