调用新增商品分组(https://doc.youzanyun.com/detail/API/0/1416)接口失败,提示请求参数缺失。
具体代码和提示如下:代码:
YouzanItemcategoriesTagAddParams addParams = new YouzanItemcategoriesTagAddParams();
YouzanItemcategoriesTagAddParams.YouzanItemcategoriesTagAddParamsAddgroupparam groupParams = new YouzanItemcategoriesTagAddParams.YouzanItemcategoriesTagAddParamsAddgroupparam();
groupParams.setName("TestGroup");
groupParams.setType(2);
if (parentId == null) {
parentId = 0L;
}
groupParams.setUpperid(parentId);
addParams.setAddGroupParam(groupParams);
tagAdd.setAPIParams(addParams);
try {
YouzanItemcategoriesTagAddResult result = youZanClient.invoke(tagAdd, token, YouzanItemcategoriesTagAddResult.class);
log.info(result.getData().toString());
} catch (SDKException e) {
e.printStackTrace();
}
提示:
code=121000102
message=请求参数缺失 title/content/components
|
|
用手机打开
收藏
赞 0
···
回复
|
|
|
|