We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a2c7ddb + b9e731c commit 6e5ab8fCopy full SHA for 6e5ab8f
1 file changed
app/eSignature/examples/eg010_send_binary_docs.py
@@ -102,13 +102,15 @@ def worker(cls, args):
102
103
# Step 2. call Envelopes::create API method
104
# Exceptions will be caught by the calling function
105
- results = requests.post(
106
- url=f"{args['base_path']}/v2.1/accounts/{args['account_id']}/envelopes",
107
- headers={
+ headers = {
108
"Authorization": "bearer " + args['access_token'],
109
"Accept": "application/json",
110
"Content-Type": f"multipart/form-data; boundary={boundary.decode('utf-8')}"
111
- },
+ }
+
+ results = requests.post(
112
+ url=f"{args['base_path']}/v2.1/accounts/{args['account_id']}/envelopes",
113
+ headers=headers,
114
data=req_body
115
)
116
return {"status_code": results.status_code, "results": results.json()}
0 commit comments