查询余额
v1/dashboard/billing/credit_grants
POST
名称 | 值 |
---|---|
Content-Type | application/json |
Authorization | Bearer $api_secret_key |
BASE_URL = "https://api.zhizengzeng.com/v1"
# credit_grants
def credit_grants(query):
api_secret_key = API_SECRET_KEY; # 智增增的secret_key
url = BASE_URL+'/dashboard/billing/credit_grants'; # 余额查询url
headers = {'Content-Type': 'application/json', 'Accept':'application/json',
'Authorization': "Bearer "+api_secret_key}
resp = requests.post(url, headers=headers)
print(resp)
{
"code": 0,
"msg": "ok",
"object": "credit_summary",
"grants": {
"available_amount": "111.8658"
}
}
修改于 2024-06-17 08:57:19