获取会员价格体系,比如:7天/月度会员/季度会员/年度会员。
GET
HifiveClient client = new DefaultHifiveClient(url, appkey, secret);
HFMemberPriceRequest request = new HFMemberPriceRequest();
request.setMethod(HFRequest.METHOD_GET);
request.setClientId("hf2y7jk19a56qetq05");
request.setVersion("V4.2.0");
request.setTimestamp(System.currentTimeMillis());request.setAccessToken("eyJ0eXAiOiJKV");
HFMemberPriceResponse response = client.execute(request);
System.out.println(JSON.toJSON(response));
curl -G https://gateway-open.haifanwu.com -H 'Authorization:HF3-HMAC-SHA1 Signature=1C32EECF681A136DCAA9373C30B1EECA' -H 'X-HF-ClientId:hf2y7jk19a56qetq05' -H 'X-HF-Token:cc24749900a70c83222654b48cc57a2a' -H 'X-HF-AppId:170ae316b9b14c1b9c185988771bde16' -H 'X-HF-Action:MemberPrice' -H 'X-HF-Timestamp:1595820221753' -H 'X-HF-Version:V4.2.0' -H 'X-HF-Nonce:YLJpgkqFNiIVhLBHxMlNlntHuzscVOQU'
-X POST -d 'accessToken=Jpc3MiOiJoaWZpdmUiLCJle'
{
"code": 200,
"msg": "操作成功",
"success": true,
"memberPrices": [
{
"originalPrice": 1,
"discountPrice": 1,
"name": "1月会员",
"days": 31,
"id": 1,
"firstPrice": 1
}
],
"taskId": "55bbbb55dc706514"
}