文档中心 > API类目 > 小程序API

yunos.miniapp.question.save (保存反馈问题)

用于给阿里车小程序IDE保存反馈意见使用

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
alipay_context String 必须 {} IDE上下文
req SaveQuestionRequest 必须 请求参数
  • └ device_type
  • String
  • 可选
  • SIMULATOR
  • 设备类型
  • └ mini_app_id
  • String
  • 可选
  • 1234
  • 小程序id
  • └ source_url
  • String
  • 可选
  • https://
  • 源文件地址
  • └ description
  • String
  • 可选
  • 问题描述
  • 问题描述
  • └ ding_talk_account
  • String
  • 可选
  • 钉钉账号
  • 钉钉账号
  • └ type
  • String
  • 可选
  • PAY
  • 问题类型

响应参数

名称 类型 示例值 描述
result Result {} 接口返回model
  • result
  • Result
  • {}
  • 返回结果
  • └ id
  • Number
  • 1
  • 问题id
  • └ mini_app_id
  • String
  • 1234
  • 小程序id
  • └ type
  • String
  • PAY
  • 问题分类
  • └ device_type
  • String
  • SIMULATOR
  • 设备类型
  • └ description
  • String
  • 问题描述
  • 问题描述
  • └ ding_talk_account
  • String
  • 132123
  • 钉钉账号
  • └ source_url
  • String
  • http://
  • 源代码地址
  • └ status
  • String
  • NOT_ANSWER
  • 状态
  • └ answer
  • String
  • 问题答案
  • 问题答案
  • └ gmt_create
  • Date
  • 2019-02-02 12:21:23
  • 创建时间
  • └ gmt_modified
  • Date
  • 2019-02-02 12:21:23
  • 修改时间
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ result_code
  • String
  • 200
  • 结果状态码
  • └ result_msg
  • String
  • 操作成功
  • 结果状态值

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
YunosMiniappQuestionSaveRequest req = new YunosMiniappQuestionSaveRequest();
req.setAlipayContext("{}");
YunosMiniappQuestionSaveRequest.SaveQuestionRequest obj1 = new YunosMiniappQuestionSaveRequest.SaveQuestionRequest();
obj1.setDeviceType("SIMULATOR");
obj1.setMiniAppId("1234");
obj1.setSourceUrl("https://");
obj1.setDescription("问题描述");
obj1.setDingTalkAccount("钉钉账号");
obj1.setType("PAY");
req.setReq(obj1);
YunosMiniappQuestionSaveResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<yunos_miniapp_question_save_response>
    <result>
        <result>
            <id>1</id>
            <mini_app_id>1234</mini_app_id>
            <type>PAY</type>
            <device_type>SIMULATOR</device_type>
            <description>问题描述</description>
            <ding_talk_account>132123</ding_talk_account>
            <source_url>http://</source_url>
            <status>NOT_ANSWER</status>
            <answer>问题答案</answer>
            <gmt_create>2019-02-02 12:21:23</gmt_create>
            <gmt_modified>2019-02-02 12:21:23</gmt_modified>
        </result>
        <success>true</success>
        <result_code>200</result_code>
        <result_msg>操作成功</result_msg>
    </result>
</yunos_miniapp_question_save_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部