用户填写公司名称、项目名称、项目品牌、授权期限(0:半年、1:1年、2:2年、3:3年、4:随片永久)、授权地区(0:中国大陆(不含港澳台地区)1:中国(包含港澳台地区)2:全球)、音乐ID列表,生成pdf
GET
HFClient client = new DefaultHFClient(url, appkey, secret);
HFOrderAuthorizationRequest request = new HFOrderAuthorizationRequest();
request.setMethod(HFRequest.METHOD_GET);
request.setClientId("hf2y7jk19a56qetq05");
request.setCompanyName("嗨翻屋");
request.setArea(AreaEnum.GLOBLE.getValue());
request.setBrand("HIFIVE");
request.setPeriod(PeriodEnum.THREE_YEAR.getValue());
request.setProjectName("宝马汽车2020品牌广告");
request.setOrderIds("1434556569145");
try {
HFOrderAuthorizationResponse response = client.execute(request);
System.out.println(JSON.toJSON(response));
} catch (ApiException e) {
e.printStackTrace();
}
curl -G https://gateway-open.haifanwu.com -H 'Authorization:HF3-HMAC-SHA1 Signature=C858553F61261F1B752AAB0F857E23DE' -H 'X-HF-ClientId:hf2y7jk19a56qetq05' -H 'X-HF-AppId:170ae316b9b14c1b9c185988771bde16' -H 'X-HF-Action:OrderAuthorization' -H 'X-HF-Timestamp:1595843788099' -H 'X-HF-Version:V4.1.1' -H 'X-HF-Nonce:nCBNLmIdOrpKXnOgQIVzUmPNEeAvfjnk'
-X GET -d 'CompanyName=成都嗨翻屋科技有限公司&ProjectName=HIFIVE&Brand=HIFIVE&Period=1&Area=0&orderIds=143456789056569145'
{
"code": 10200,
"msg": "操作成功",
"data": {
"fileUrl": [
"https://static-hifiveai-open.haifanwu.com/AuthPdf/hifive/aadcc2c547d2172a8a9e99402af0a0b9feb2c291/1D65215B783/emi.pdf?sign=fd54be44ba593d7a024f236328e13819&t=1597827456",
"https://static-hifiveai-open.haifanwu.com/AuthPdf/hifive/aadcc2c547d2172a8a9e99402af0a0b9feb2c291/B7B810A739F1/hifive.pdf?sign=a94bddb5dd25eb074e8fb1e58cc04401&t=1597827456"
]
},
"taskId": "228fd2987c9e7208"
}