Giter Site home page Giter Site logo

pyechosign's People

Contributors

jensastrup avatar

Watchers

 avatar  avatar

Forkers

rtaft cheungnj

pyechosign's Issues

get_agreements() errors if there are no agreements.

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 []

TransientDocument constructor fails

  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

Update README

The current README uses the class Recipient which does not exist. I believe this should be User.

INVALID_ACCESS_TOKEN not handled properly

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"}

Multiple signers does not work

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.