Hellosign Python SDK
-------------------
[![Build Status](https://travis-ci.org/minhdanh/hellosign-python-sdk.png?branch=master)](https://travis-ci.org/minhdanh/hellosign-python-sdk)
[![Coverage Status](https://coveralls.io/repos/minhdanh/hellosign-python-sdk/badge.png)](https://coveralls.io/r/minhdanh/hellosign-python-sdk)
[![Code Health](http://landscape.io/github/minhdanh/hellosign-python-sdk/master/landscape.png)](http://landscape.io/github/minhdanh/hellosign-python-sdk/master)
[![Latest Version](https://pypip.in/v/hellosign-python-sdk/badge.png)](https://pypi.python.org/pypi/hellosign-python-sdk/)
[![Downloads](https://pypip.in/d/hellosign-python-sdk/badge.png)](https://pypi.python.org/pypi/hellosign-python-sdk/)
[![Dependency Status](https://gemnasium.com/minhdanh/hellosign-python-sdk.png)](https://gemnasium.com/minhdanh/hellosign-python-sdk)
An API wrapper written in Python to interact with HelloSign's API (http://www.hellosign.com)
Note: This is not the final Readme, and the package is not ready yet. It will be ready when it's ready (of course).
## Installation
Install using `easy_install`:
````sh
easy_install hellosign-python-sdk
````
Install using `pip`:
````sh
pip install hellosign-python-sdk
````
## Configuration
In your application, import `HSClient`:
````python
from hellosign.hsclient import HSClient
````
Then create a HSClient object and pass authentication information to initialize it:
````python
# Initialize HSClient using email and password
client = HSClient(api_email="api_user@example.com", api_password="your_password")
# Initialize HSClient using api key
client = HSClient(api_key="your_api_key")
# Initialize HSClient using api token
client = HSClient(api_accesstoken="your_api_access_token", api_accesstokentype="your_api_access_token_type")
````
Note: In case you initialize the HSClient with all the above credentials, the priority order is as follow: api_accesstoken & api_accesstokentype, api_key, then api_email and api_password
## Usage
For more information about the API, please refer to this [link](http://hellosign-python-sdk.readthedocs.org/en/latest/)
### Account
#### Get current account information
````python
client.get_account_info()
````
The account information is then stored in `client.account`. For example, to print the `email_address` of your account:
````python
print client.account.email_address
````
#### Update your account information
````python
client.account.callback_url = "https://www.example.com/callback"
client.update_account_info()
````
#### Create a new HelloSign account
````python
new_account = client.create_account("new_user@example.com", "aL0ngL0ngPa55w0rd")
````
### Signature Request
#### Get a Signature Request
````python
sr = client.get_signature_request("fa5c8a0b0f492d768749333ad6fcc214c111e967")
print sr.requester_email_address
print sr.signature_request_id
````
#### Get a list of your Signature Requests
````python
sr_list = client.get_signature_request_list()
# Print out the name of the signers in every signature request
for sr in sr_list:
print sr.signatures[0]['signer_name']
````
#### Send a Signature Request
````python
files = ["NDA.pdf", "AppendixA.pdf"]
signers = [{"name": "Jack", "email_address": "jack@example.com"}, {"name": "Jill", "email_address": "jill@example.com"}]
cc_email_addresses = ["lawyer@hellosign.com", "lawler@example.com"]
# Send a signature request with uploaded files
signature_request = client.send_signature_request(test_mode="1", files=None, file_urls=["http://www.example.com/download/sample.pdf"], title="NDA with Acme Co.", subject="The NDA we talked about", message="Please sign this NDA and then we can discuss more. Let me know if you have any questions.", signing_redirect_url="", signers=signers, cc_email_addresses=cc_email_addresses)
# Send a signature request with remote files
signature_request = client.send_signature_request(test_mode="1", files=files, file_urls=None, title="NDA with Acme Co.", subject="The NDA we talked about", message="Please sign this NDA and then we can discuss more. Let me know if you have any questions.", signing_redirect_url="", signers=signers, cc_email_addresses=cc_email_addresses)
````
#### Send a Signature Request with Reusable Form
````python
signers = [{"name": "Jack", "email_address": "jack@example.com"}, {"name": "Jill", "email_address": "jill@example.com"}]
cc_email_addresses = ["lawyer@hellosign.com", "lawler@example.com"]
ccs = [{'email_address': 'lawler@hellosign.com', 'role_name': 'Lawyer 1'},
{'email_address': 'lawler@example.com', 'role_name': 'Lawyer 2'}]
custom_fields = [{"Field 1": 'Value 1'}, {'Field 2': 'Value 2'}]
# Send a signature request with uploaded files
signature_request = client.send_signature_request_with_rf(test_mode="1", reusable_form_id="fa5c8a0b0f492d768749333ad6fcc214c111e967", title="NDA with Acme Co.", subject="The NDA we talked about", message="Please sign this NDA and then we can discuss more. Let me know if you have any questions.", signing_redirect_url="", signers=signers, ccs=ccs, custom_fields=custom_fields)
````
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
资源分类:Python库 所属语言:Python 资源全名:hellosign-python-sdk-0.3.8.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
hellosign-python-sdk-0.3.8.tar.gz (26个子文件)
hellosign-python-sdk-0.3.8
MANIFEST.in 37B
PKG-INFO 6KB
setup.cfg 59B
hellosign_python_sdk.egg-info
PKG-INFO 6KB
requires.txt 8B
not-zip-safe 1B
SOURCES.txt 808B
top_level.txt 14B
dependency_links.txt 1B
setup.py 1KB
README.md 5KB
hellosign_sdk
__init__.py 52B
resource
embedded.py 307B
resource.py 2KB
reusable_form.py 3KB
__init__.py 0B
signature_request.py 4KB
team.py 984B
unclaimed_draft.py 668B
account.py 1KB
hsclient.py 50KB
test_hsclient.py 8KB
utils
hsaccesstokenauth.py 908B
request.py 6KB
__init__.py 0B
exception.py 2KB
共 26 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 14w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 科目一,扣分法规的的的的
- 科目一易错题,整理的的的的
- C#ASP.NET企业智能办公OA系统源码带文档数据库 SQL2008源码类型 WebForm
- mixiao网站下载的模型 替换ue 小白人
- YOLOv11实现并使用NVIDIA TensorRT进行优化的对象检测项目源码
- python爬虫实战开发之bs4应用和xpath结合实战操作.zip
- 电子课程设计项目《多功能数字时钟(包括了基本的计数显示,还有提高部分,如星期和月份的动态展示)》+项目源码+文档说明
- C#大型OA源码 网络在线办公平台源码数据库 SQL2008源码类型 WebForm
- RV1106编译速度、驱动加载
- tensorflow安装-不同操作系统环境下TensorFlow的安装指南与步骤
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功