Skip to content

Ridecell/hellosign

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HelloSign Api Client

Basic Api Objects for accessing the HelloSign.com Api

Makes use of the excellent requests, WTForms, nosetests and mocktests libs.

  1. Requests: http://docs.python-requests.org/en/latest/
  2. WTForms: http://wtforms.simplecodes.com/docs/1.0.2/
  3. nosetests: https://nose.readthedocs.org/en/latest/#
  4. mocktests: http://gfxmonk.net/dist/doc/mocktest/doc/

Installation

Into your virtualenv or system env:

git clone https://github.com/stard0g101/HelloSignApi.git
cd HelloSignApi
python setup.py install

or manually:

git clone https://github.com/stard0g101/HelloSignApi.git
cd HelloSignApi
pip install -r requirements.txt

Usage

from hellosign import HelloSign, HelloSignSignature
from hellosign import HelloSigner, HelloDoc

authentication = ("username@example.com", "secret_password")

# Basic Api usage - query is built around the api path i.e: /v3/interesting/feature would be api.interesting.feature.get(auth=authentication)
api = HelloSign()
account_info = api.account.get(auth=authentication)
print account_info

# Signature Example - most complete example, with validation of input
signature = HelloSignSignature(title='title', subject='My Subject', message='My Message')
signature.add_signer(HelloSigner(email='bob@example.com', name='Bob Examplar'))
signature.add_doc(HelloDoc(file_path='/path/to/file/filename.pdf'))
signature.create(auth=authentication)

# List of forms - simple GET example
form_list = api.reusable_form.list.get(auth=authentication)
print form_list

# Create with a reuseable form - simple POST example, no validation (coming soon)
params = {
'param_as_defined': 'by_the_hellosign_documentation',
'param_as_defined': 'by_the_hellosign_documentation',
}
form_list = api.signature_request.send_with_reusable_form.post(auth=authentication, **params)

Tests

nosetests -w tests/

About

Basic Api Objects for accessing the HelloSign.com Api

Resources

License

Stars

Watchers

Forks

Packages

No packages published