加密参数有:
appId:21d6***748be8de0
timestamp: 1612518379
version:2.0
method:product.createItem
按照路以下规则method?appId=xxx×tamp=xxx&version=xxx组合得到
product.createItem?appId=21d6***748be8de0×tamp=1612518379&version=2.0将appSecret连接在最后
此处appSecret为429a***a3aee9ef9e4a858210
得到
product.createItem?appId=21d6***748be8de0×tamp=1612518379&version=2.0429a***a3aee9ef9e4a858210上述字符串的MD5签名结果为 aa4c59****50632d80dc4Request url:
http://ark.sit.xiaohongshu.com/ark/open_api/v3/common_controller
head中要求Content-Type选择application/json
body内容(json格式):
{
"sign":"aa4c59****50632d80dc4",//(必须)
"appId":"21d60****be8de0",//(必须)
"accessToken":"token-67aba019fbb44eb9a9e6f2f4022799aa-4350e717e4064bf8a11b30afde58e6c4",//(非必须,不参与验签)
"timestamp":"1612518379",//(必须)
"version":"2.0",//(必须)
"method":"product.createItem",//(必须)
/////以上为公共参数
/////以下为该方法参数
"**":"**",
"**":"**",
"**":"**"
}
Method: post