感谢您的反馈!
获取食谱详情接口,获取ISV自己的食谱详情数据
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| business_recipe_id | Number | 必须 | 1 | 行业食谱id | |
| open_account_id | String | 必须 | 0yl8oK0WFDBwEheQxSMD4g== | 开放账号id |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| result | BaseResult | 返回包装类 | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAilabsIotBusinessRecipeGetdetailRequest req = new AlibabaAilabsIotBusinessRecipeGetdetailRequest();
req.setBusinessRecipeId(1L);
req.setOpenAccountId("0yl8oK0WFDBwEheQxSMD4g==");
AlibabaAilabsIotBusinessRecipeGetdetailResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
<alibaba_ailabs_iot_business_recipe_getdetail_response>
<result>
<message>null</message>
<ret_code>200</ret_code>
<ret_value>
<business_recipe_id>1</business_recipe_id>
<description>美味豆浆</description>
<function_type>1</function_type>
<recipe_image>
<img>www.img.com</img>
<large>www.large.com</large>
<medium>www.medium.com</medium>
<small>www.small.com</small>
</recipe_image>
<recipe_ingredient_list>
<recipe_ingredient_dto>
<name>xxx</name>
<weight>xxx</weight>
</recipe_ingredient_dto>
</recipe_ingredient_list>
<recipe_name_cn>xxx</recipe_name_cn>
<recipe_step_list>
<business_recipe_step_open_dto>
<business_recipe_id>1</business_recipe_id>
<business_recipe_step_id>1</business_recipe_step_id>
<description>搅拌3分钟</description>
<image_url>
<img>www.img.com</img>
<large>www.large.com</large>
<medium>www.medium.com</medium>
<small>www.small.com</small>
</image_url>
<recipe_step_action_list>
<business_recipe_step_action_open_dto>
<action_name>runTime</action_name>
<action_type>2</action_type>
<action_value>3</action_value>
<sequence>1</sequence>
</business_recipe_step_action_open_dto>
</recipe_step_action_list>
<recipe_step_name>搅拌3分钟</recipe_step_name>
<recipe_step_time>180</recipe_step_time>
<sequence>1</sequence>
<tips>步骤提示</tips>
<video_url>
<cover>
<img>www.img.com</img>
<large>www.large.com</large>
<medium>www.medium.com</medium>
<small>www.small.com</small>
</cover>
<default_url>www.defaultUrl.com</default_url>
<height>240</height>
<high>www.high.com</high>
<standard>www.standard.com</standard>
<ultra>www.ultra.com</ultra>
<width>375</width>
</video_url>
</business_recipe_step_open_dto>
</recipe_step_list>
<recipe_time>300</recipe_time>
<recipe_video>
<cover>
<img>www.img.com</img>
<large>www.large.com</large>
<medium>www.medium.com</medium>
<small>www.small.com</small>
</cover>
<default_url>www.defaultUrl.com</default_url>
<height>240</height>
<high>www.high.com</high>
<standard>www.standard.com</standard>
<ultra>www.ultra.com</ultra>
<width>375</width>
</recipe_video>
<tag_list>
<content_tag_dto>
<tag_id>8001</tag_id>
<tag_name>菜谱标签</tag_name>
</content_tag_dto>
</tag_list>
<tips>制作5分钟</tips>
<recipe_type>1</recipe_type>
</ret_value>
<trace_id>1e0525b315754507465865759e</trace_id>
</result>
</alibaba_ailabs_iot_business_recipe_getdetail_response>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|