krtpay.py 977 B

1234567891011121314151617181920212223242526
  1. # -*- encoding:utf-8 -*-
  2. from kscore.session import get_session
  3. import json
  4. if __name__ == "__main__":
  5. s = get_session()
  6. client = s.create_client("krtpay","cn-beijing-6",use_ssl=False,ks_access_key_id=ak,
  7. ks_secret_access_key=sk)
  8. #res = client.describe_product_code()
  9. #print json.dumps(res)
  10. #print client.describe_bill_summary(BillStartTime="2020-07-13 00:00:00",BillEndTime="2020-07-14 00:00:00")
  11. #print client.describe_bills(BillStartTime="2020-07-13 00:00:00",BillEndTime="2020-07-14 00:00:00",
  12. # ProductCode="KEC",Size=1)
  13. print client.describe_bill_detail(BillStartTime="2020-07-13 00:00:00",BillEndTime="2020-07-14 00:00:00",
  14. ProductCode="KEC",Size=1,SettleCycle=3)
  15. #print client.get_month_bill(BillStartMonth="2019-03", BillEndMonth="2019-03")
  16. #print client.get_postpay_detail_bill(BillStartMonth="2019-03", BillEndMonth="2019-03")