报文创建的日期和时间(格林尼治标准时间,而不是本地时间),例如:Date: Wed, 21 Oct 2022 07:28:00 GMT。这个时间上下误差不能超过5分钟,否则会报错。
我方给的appid
string s = access_key + '\n' + appid + '\n' + date
string t = base64(hmac_sha1(secret_key, s)),
string Authorization = "Basic " + t
{ "order_id":1000012680, "pay_amount":2000 }
curl --location --request POST 'https://dapi.visageniusglobal.com/openvisa/order_express_address_update' \ --header 'X-Date: ' \ --header 'X-Appid: ' \ --header 'Authorization: ' \ --header 'Content-Type: application/json' \ --data-raw '{ "order_id":1000012680, "pay_amount":2000 }'
{ "ret": 0, "msg": "string", "body": {} }