文档中心 > API类目 > 阿里妈妈-UniDesk

taobao.unidesk.rta.assets.talentauth.add (UD达人授权)

UD达人授权

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
talent_authorization_top_dto TalentAuthorizationTopDTO 可选 入参
  • └ code
  • String
  • 可选
  • 100000
  • 授权码
  • └ talent_id
  • String
  • 可选
  • 100000
  • 达人号
  • └ start_time
  • String
  • 可选
  • 2023-01-01
  • 授权开始时间,参数格式为(yyyy-MM-dd)
  • └ end_time
  • String
  • 可选
  • 2023-01-01
  • 授权结束时间,参数格式为(yyyy-MM-dd)
  • └ type
  • Number
  • 可选
  • 3
  • 授权达人类型(1:微信视频号 2:微信广告专用视频号 3:抖音授权)
  • └ auth_type
  • Number
  • 可选
  • 1
  • 授权类型(当type=3时需传 1:抖音号授权 2:单视频授权)
  • └ item_url
  • String
  • 可选
  • https://
  • 视频链接(当type=3 & auth_type=1 时必传)
  • └ advertiser_id
  • Number
  • 可选
  • 1
  • 广告主

响应参数

名称 类型 示例值 描述
result TalentAuthorizationTopDTO 出参
  • └ talent_id
  • String
  • 10000
  • 达人号id

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
UnideskRtaAssetsTalentauthAddRequest req = new UnideskRtaAssetsTalentauthAddRequest();
UnideskRtaAssetsTalentauthAddRequest.TalentAuthorizationTopDTO obj1 = new UnideskRtaAssetsTalentauthAddRequest.TalentAuthorizationTopDTO();
obj1.setCode("100000");
obj1.setTalentId("100000");
obj1.setStartTime("2023-01-01");
obj1.setEndTime("2023-01-01");
obj1.setType(3L);
obj1.setAuthType(1L);
obj1.setItemUrl("https://");
obj1.setAdvertiserId(1L);
req.setTalentAuthorizationTopDto(obj1);
UnideskRtaAssetsTalentauthAddResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<unidesk_rta_assets_talentauth_add_response>
    <result>
        <talent_id>10000</talent_id>
    </result>
</unidesk_rta_assets_talentauth_add_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

返回
顶部