文档中心 > API类目 > 本地生活API

alibaba.alsc.growth.interactive.link.genshortlink (短链接口)

短链接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param GenShortLinkRequest 必须 入参
  • └ domain_type
  • String
  • 必须
  • mod
  • 域名类型,按实际填写,目前映射关系:{ "alipay": "alipays://platformapi/startapp", "duanqu": "https://m.duanqu.com", "eleH5": "https://h5.ele.me", "eleMiniApp": "eleme://miniapp", "elemeSns": "eleme://sns_share_v2", "koubei": "koubei://platformapi/startapp", "mod": "https://tb.ele.me", "modPpe": "https://ppe-tb.ele.me", "ppe-r": "https://ppe-r.ele.me", "pt": "https://pt.ele.me", "ptPre": "https://ppe-pt.ele.me", "r": "https://r.ele.me" }
  • └ path
  • String
  • 必须
  • ""
  • 域名后面的路径
  • └ biz_scene
  • String
  • 必须
  • WATER_SORT
  • 业务场景

响应参数

名称 类型 示例值 描述
result BaseResponse {} 结果
  • └ success
  • Boolean
  • true
  • 成功标志
  • └ code
  • String
  • ""
  • 返回编码
  • └ msg
  • String
  • ""
  • 返回信息
  • └ data
  • String
  • ""
  • 返回数据

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscGrowthInteractiveLinkGenshortlinkRequest req = new AlibabaAlscGrowthInteractiveLinkGenshortlinkRequest();
AlibabaAlscGrowthInteractiveLinkGenshortlinkRequest.GenShortLinkRequest obj1 = new AlibabaAlscGrowthInteractiveLinkGenshortlinkRequest.GenShortLinkRequest();
obj1.setDomainType("mod");
obj1.setPath("\"\"");
obj1.setBizScene("WATER_SORT");
req.setParam(obj1);
AlibabaAlscGrowthInteractiveLinkGenshortlinkResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_growth_interactive_link_genshortlink_response>
    <result>
        <success>true</success>
        <code>&quot;&quot;</code>
        <msg>&quot;&quot;</msg>
        <data>&quot;&quot;</data>
    </result>
</alibaba_alsc_growth_interactive_link_genshortlink_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

返回
顶部