报文创建的日期和时间(格林尼治标准时间,而不是本地时间),例如: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": 1000012399 , "applicant_set": [ { "identity_id": 0, "applicant_id": 34747, "material_zip_url": "https://devo.666visa.cn/tmp/在线办理-冯熟悉美国-资料模板.zip", "applicant_name": "陈信宏", "city_id":0, "date_choice":1 } ] }
curl --location --request POST 'https://dapi.visageniusglobal.com/openvisa/applicant_material_add' \ --header 'X-Date: ' \ --header 'X-Appid: ' \ --header 'Authorization: ' \ --header 'Content-Type: application/json' \ --data-raw '{ "order_id": 1000012399 , "applicant_set": [ { "identity_id": 0, "applicant_id": 34747, "material_zip_url": "https://devo.666visa.cn/tmp/在线办理-冯熟悉美国-资料模板.zip", "applicant_name": "陈信宏", "city_id":0, "date_choice":1 } ] }'
{ "ret":0, "msg":"", "body":{ } }