forked from hellosign/hellosign-openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExample.py
More file actions
25 lines (19 loc) · 672 Bytes
/
Copy pathExample.py
File metadata and controls
25 lines (19 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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.AccountApi(api_client)
data = models.AccountCreateRequest(
email_address="[email protected]",
)
try:
response = api.account_create(data)
pprint(response)
except ApiException as e:
print("Exception when calling HelloSign API: %s\n" % e)