文档中心 > API类目 > 菜鸟无线API

cainiao.guoguo.operatorappconfig.getconfig (获取小件员app 配置项)

给小件员app 提供一些配置,例如上下班时间等等

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
user_id Number 可选 111
  • 默认值:0
  • 小件员user_id
    cp_code String 可选 debang cp code
    extension String 可选 {} 扩展字段

    响应参数

    名称 类型 示例值 描述
    data ConfigDto dto 配置项
    • └ config
    • String
    • {}
    • 配置项
    is_success Boolean true 调用成功

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    CainiaoGuoguoOperatorappconfigGetconfigRequest req = new CainiaoGuoguoOperatorappconfigGetconfigRequest();
    req.setUserId(111L);
    req.setCpCode("debang");
    req.setExtension("{}");
    CainiaoGuoguoOperatorappconfigGetconfigResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <cainiao_guoguo_operatorappconfig_getconfig_response>
        <data>
            <config>{}</config>
        </data>
        <is_success>true</is_success>
    </cainiao_guoguo_operatorappconfig_getconfig_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

    返回
    顶部