specialLoanQuery.py
998 Bytes
# -*- coding: utf-8 -*-
from commons.MySession import hg
class specialLoanQuery():
"大客户模式——查询客户的订单信息"
def __init__(self):
self.url = "http://test.gateway.diligrp.com:8285/hg-trading/api/aggregation/specialLoanQuery"
self.header = {
"Connection" :"keep-alive",
"Accept" :"application/json, text/plain, */*",
"UAP_accessToken" :".-.--",
"ignoreCancelToken" :"true",
"UAP_refreshToken" :".-.--",
"Content-Type" :"application/json;charset=UTF-8",
"Accept-Language" :"zh-CN,zh;q=0.9",
"Accept-Encoding" :"gzip, deflate"
}
self.body = {"accountId":107792,"tradeDateStart":"2021-09-07","tradeDateEnd":"2021-09-07","customerId":141992}
tt = specialLoanQuery()
re = hg.post(url = tt.url,json = tt.body,headers = tt.header,proxies=hg.myproxies)
print(re.json())