vipCustomerLoan_details.py 1.01 KB
# -*- coding: utf-8 -*-


from commons.MySession import hg

class vipCustomerLoan_details():
    "大客户模式——查询明细"
    def __init__(self):
        self.url = "http://test.gateway.diligrp.com:8285/hg-trading/api/vipCustomerLoan/details"
        self.header = {
                    "Connection" :"keep-alive",
                    "Content-Length" :"130",
                    "Accept" :"application/json, text/plain, */*",
                    "UAP_accessToken" :"demo",
                    "ignoreCancelToken" :"true",
                    "UAP_refreshToken" :"demo",
                    "Content-Type" :"application/json;charset=UTF-8",
                    "Accept-Language" :"zh-CN,zh;q=0.9",
                    "Accept-Encoding" :"gzip, deflate"}
        self.body = {"settleDate":"2021-09-07","customerId":141992,"tradeDateStart":"2021-09-07","tradeDateEnd":"2021-09-07"}


# tt = vipCustomerLoan_details()
# re = hg.post(url = tt.url,json = tt.body,headers = tt.header,proxies=hg.myproxies)
# print(re.json())