Skip to main content

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

https://doc.gxb.io/des/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
des-sdk-py-2.0.1.tar.gz (165.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page