des sdk implemented in python
Project description
Install
pip install des-sdk-py
Usage
Merchant client
//initializing
client = MerchantClient('5K8iH1jMJxn8TKXXgHJHjkf8zGXsbVPvrCLvU2GekDh2nk4XXXX', accountID, url)
//creat data exchange and return request id
result = client.createDataExchangeRequest(9, {
"bankCardNo": "bankID"
})
//get result thourgh reuqest id
response = client.getResult(result)
if response.get("datasources") is not None:
for data in response.get("datasources"):
print(data.get("data"))
else:
print("response is None, please try more")
Datasource client
//initializing
client = BlacklistGatewayClient('5KFachrDu7yHqhDeqdshedh6cWasLDv8d8Rko2JuvKM12XXXXXX', account)
print(client.getQuestionReport("GXC4ywUcU8h6zPqESvAMkGREmmg9r54etHTpEtBHp8Rg2WYXXXXXX"))
Dev Documents
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
des-sdk-py-2.0.1.tar.gz
(165.2 kB
view details)
File details
Details for the file des-sdk-py-2.0.1.tar.gz.
File metadata
- Download URL: des-sdk-py-2.0.1.tar.gz
- Upload date:
- Size: 165.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f84f8757a3393a39d5e0e609b5cf923edfc7518c7cc21c0a3b678e97c3b1134
|
|
| MD5 |
25fcf0d61ba5905c686e791d7727284a
|
|
| BLAKE2b-256 |
4dc4af8ae4390cf21f5f77386aa7841b027a3d0e656207888373f04a68d16bab
|