You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 17, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 17, 2023. It is now read-only.
send_with_template endpoint should add file[] or file_url[] as supported params #43
file[] or file_url[] optional Append additional files to the signature request. HelloSign will parse the files for text tags. Text tags for signers not on the template will be ignored.
Use file[] to pass the uploaded file(s). Use file_url[] to have HelloSign download the file(s). We currently only support use of either the file[] parameter or file_url[] parameter, not both.
Activity
alexmac05 commentedon Apr 13, 2018
Workaround:
import requests
buildTheRequest = 'https://' + apikey + ':@api.hellosign.com/v3/signature_request/send_with_template'
ndafile = {'file[0]': open('NDA.pdf', 'rb')}
data = {
'template_id': 'XXXXXXXXXX',
'subject': 'workaround',
'allow_decline': '1',
'message': 'workaround',
'signers[Client][name]': 'George',
'signers[Client][email_address]': 'example@example.com',
'custom_fields': '[{"name":"newline", "value":"$20,000", "editor":"Client", "required":true}]',
'test_mode': '1'
#'file_url': 'https://i.ytimg.com/vi/JPA_rzHDy6o/maxresdefault.jpg'
}
print(buildTheRequest)
r = requests.post(buildTheRequest, data, files=ndafile)
print(r.text)
stringData = r.text
result = json.loads(stringData)
print(result)
alexmac05 commentedon Apr 13, 2018
To add multiple files:
ndafile = {'file[0]': open('NDA.pdf', 'rb'), 'file[1]': open('NDA2.pdf', 'rb') }
alexmac05 commentedon Apr 16, 2018
buildTheRequest = 'https://' + apikey + ':@api.hellosign.com/v3/signature_request/send_with_template'
ndafile = {'file[0]': open('NDA.pdf', 'rb'), 'file[1]': open('NDA2.pdf', 'rb') }