逛逛图文内容发布接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
request_dto | ArticlePublishDto | 可选 | 请求参数 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Result | 134523^4351232 | 接口返回model |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); GuangguangContentArticlePublishRequest req = new GuangguangContentArticlePublishRequest(); GuangguangContentArticlePublishRequest.ArticlePublishDto obj1 = new GuangguangContentArticlePublishRequest.ArticlePublishDto(); obj1.setRequestId( "1234" ); obj1.setImageResourceIds( new Long[] { 1234 , 5678 }; ); obj1.setTopic(1234L); obj1.setTitle( "这是一个有趣的图文内容" ); List<GuangguangContentArticlePublishRequest.ContentItemDto> list3 = new ArrayList<GuangguangContentArticlePublishRequest.ContentItemDto>(); GuangguangContentArticlePublishRequest.ContentItemDto obj4 = new GuangguangContentArticlePublishRequest.ContentItemDto(); list3.add(obj4); obj4.setItemId(1234L); obj4.setSource( "order" ); obj1.setItems(list3); obj1.setOnlineTime(12345L); obj1.setChannel( "guangguang" ); obj1.setRelationId( "1ea3852a73684b0784ac13d8d5eaf71a" ); obj1.setPassThrough( "{\"aaa_id\":1}" ); obj1.setShortTitle( "abc" ); req.setRequestDto(obj1); GuangguangContentArticlePublishResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 | < guangguang_content_article_publish_response > < result > < success >false</ success > < error_code >"isv.invalid-parameter"</ error_code > < model > < content_id >123456</ content_id > </ model > < error_msg >"参数错误"</ error_msg > </ result > </ guangguang_content_article_publish_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|