jensastrup / pyechosign Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
If there are no agreements for an account, or if you pass in a query parameter that does not match an agreement, this error is thrown.
File "/home/rtaft/venv/local/lib/python2.7/site-packages/pyEchosign/classes/account.py", line 72, in get_agreements
return Agreement.json_to_agreements(self, response_body)
File "/home/rtaft/venv/local/lib/python2.7/site-packages/pyEchosign/classes/agreement.py", line 146, in json_to_agreements
json_data = json_data.get('userAgreementList')
AttributeError: 'list' object has no attribute 'get'
The response is and empty list []
File "temp/echosign.py", line 76, in send_doc_for_signature
document = TransientDocument(account, filename, open(filepath + '/' + filename, 'r'), 'application/pdf')
File "/home/rtaft/venv/local/lib/python2.7/site-packages/pyEchosign/classes/documents.py", line 72, in __init__
self.expiration_date = today.replace(days=+7).datetime
File "/home/rtaft/venv/local/lib/python2.7/site-packages/arrow/arrow.py", line 622, in replace
raise AttributeError('unknown attribute: "{}"'.format(key))
AttributeError: unknown attribute: "days"
This should be calling shift
instead of replace
The error is the following:
File "/usr/local/lib/python3.7/site-packages/pyEchosign/classes/library_document.py", line 78, in json_to_agreements response_data = json_data.get('libraryDocumentList') AttributeError: 'list' object has no attribute 'get'
Cheers :)
The current README uses the class Recipient which does not exist. I believe this should be User.
When creating the EchosignAccount, I'm getting the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/rtaft/venv/local/lib/python2.7/site-packages/pyEchosign/classes/account.py", line 38, in __init__
self.api_access_point = response_body.get('api_access_point') + endpoints.API_URL_EXTENSION
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
This is due to the fact that the API is returning a 401 and errors are not handled at all:
{"code":"INVALID_ACCESS_TOKEN","message":"Access token provided is invalid or has expired"}
API v6 is available. It will take a bit more than just changing the version number.
Access-Token: <token>
has been replaced with Authorization: Bearer <token>
/base_uris
is now /baseUris
api_access_point
is now apiAcessPoint
several other changes where the formatting has changed from underscore to camelCase
Currently pyEchosign is able to fetch all Agreements, but not a single one using the agreementId. Add support for this.
When trying to use LibraryDocument fields document and form_field_layer, they are always false.
The documentation for Agreement.send says:
recipients: A list of :class:`Users <pyEchosign.classes.users.User>`.
The order which they are provided in the list determines the order in which they sign.
However, having multiple recipients actually allows either to sign, not each in order.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.