特别注意:
报错:
b'{"Recommend":"https://error-center.aliyun.com/status/search?Keyword=MissingTimestamp&source=PopGw","Message":"Timestamp is mandatory for this action.","RequestId":"03C305CD-F5C2-4B32-BA0B-696063E3E3A5","HostId":"business.aliyuncs.com","Code":"MissingTimestamp"}'
HTTP Error 400: Bad Request
代码77行 Timestamp , 部分API 字段是 TimeStamp 大写, 账单 需要是小写 Timestamp。
大小写API 阿里云没有统一,这个要特别注意。
具体大小写 看API 文档。
代码
#!/usr/bin/env python3.6
# -*- coding:utf8 -*-
try:
import httplib
except ImportError:
import http.client as httplib
import sys, datetime
import urllib
import urllib.request
import urllib.error
import urllib.parse
import time
import json
import base64