电子合同API开发文档 v5

签署合同-根据关键词签署

请求地址:/v5/Contracts/signedByKeyword.json

请求方式:POST

接口版本: 5.2.3

接口描述:

#!/usr/bin/python
# encoding:utf-8



import urllib2, json, urllib
dict ={}



dict['easy_id'] = '175592531139104768';
dict['signed_data'] = '[ { "seal_id":"deb4cf5e-ed14-11ea-aa79-0242ac110007", "keyword":"my-keyword-01" }, { "seal_id":"4cde8b9e-ebfa-11ea-b678-0242ac110011", "keyword":"my-keyword-02" } ]';
dict['words_id'] = '';
dict['certification_code'] = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9';
dict['certification_type'] = 'mobile';
url = "https://api-v2.1dq.com/v5/Contracts/signedByKeyword.json + "?" + urllib.urlencode(dict)
result = urllib2.urlopen(urllib2.Request(url))
jsonarr = json.loads(result.read())
#  输出错误码
print jsonarr["code"]