查询余额
名称
值
BASE_URL = "https://flag.smarttrot.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)
resp = resp.json();
json_str = json.dumps(resp, ensure_ascii=False)
print(json_str)
最后更新于