删除该会员所有搜索历史记录。
POST
无
HifiveClient client = new DefaultHifiveClient(url, appkey, secret);
HFClearSearchHistoryRequest request = new HFClearSearchHistoryRequest();
request.setMethod(HifiveRequest.METHOD_POST);
request.setClientId("hf2y7jk19a56qetq05");
request.setVersion("V4.2.0");
request.setTimestamp(System.currentTimeMillis());
request.setAccessToken("eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzZWNyZXRLZXkiOiI2ZGJhMTg2ZjBiMDY0MzM0YmYiLCJpc3MiOiJoaWZpdmUiLCJleHAiOjE2MjUyODM1MTcsImlhdCI6MTYyMDc5MDcxN30.nFcUAF5X3WKaRU7ngt9iRYQhrC7ssKoj0hVuroCjO5c");
HFClearSearchHistoryPostResponse response = client.execute(request);
System.out.println(JSON.toJSON(response));
curl -G https://gateway-open.haifanwu.com -H 'Authorization:HF3-HMAC-SHA1 Signature=2415595322EEF065555EF9818D6753A5' -H 'X-HF-ClientId:hf2y7jk19a56qetq05' -H 'X-HF-Token:cc24749900a70c83222654b48cc57a2a' -H 'X-HF-AppId:170ae316b9b14c1b9c185988771bde16' -H 'X-HF-Action:ClearSearchHistory' -H 'X-HF-Timestamp:1595820221753' -H 'X-HF-Version:V4.2.0' -H 'X-HF-Nonce:YLJpgkqFNiIVhLBHxMlNlntHuzscVOQU'
-X POST
{
"code": 200,
"msg": "操作成功",
"success": true
}