有余额查询的sdk吗
hi, 你好:
附件为阿里云 BSS OPEN API PYTHON SDK CLIENT,请查收。
目前因为是公测阶段,所以很多文档和SDK配套还不够完善,我们也正在努力补全,谢谢你的支持~
Python版SDK使用方法如下:您所需要的查询账户余额的请求request对象为:QueryAccountBalanceRequestSDK使用cd aliyun-python-sdk-bssopenapi
执行:sudo python setup.py install安装完成后:
!/usr/bin/env python
coding=utf-8
from aliyunsdkcore import clientfrom aliyunsdkbssopenapi.request.v20171214 import QueryAccountBalanceRequestfrom aliyunsdkcore.profile import region_providerif name == '__main__':
region_provider.add_endpoint('BssOpenApi', 'cn-hangzhou', 'business.aliyuncs.com')
clt = client.AcsClient('xxx', ‘xxx’,’cn-hangzhou')
request = QueryAccountBalanceRequest.QueryAccountBalanceRequest()
request.set_accept_format('JSON')
result = clt.do_action_with_exception(request)
print(result)
请参考 https://help.aliyun.com/document_detail/87997.html?spm=a2c4e.11153987.0.0.262db464ObpEy9
赞0
踩0