文档中心 > API类目 > 飞猪商家平台

alitrip.merchant.galaxy.member.login.derby (小程序通过德比登入(会员认证))

会员认证(德比切换接口,包含授权接口) 返回认证及授权状态

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tenant_key String 可选 234 租户标识
token String 可选 213456789 token
derby_authentication_param DerbyAuthenticationParam 可选 德比认证会员信息入参
  • └ email
  • String
  • 可选
  • 123456
  • 认证邮箱
  • └ password
  • String
  • 可选
  • 123345
  • 认证密码
  • └ user_register_type
  • String
  • 可选
  • NEW_MEMBER
  • 用户注册类型
  • └ accepted_tand_c
  • String
  • 可选
  • AUTHORIZED
  • 是否接受会员协议
  • └ optin_all
  • Boolean
  • 可选
  • true
  • 是否是否勾选ALL和SMSALL收取优惠邮件
  • └ data_export_agreement
  • Boolean
  • 可选
  • true
  • 是否同意向境外提供个人信息
scene_source String 可选 DERBY_V1_BINDED_LOGIN 场景来源,记录什么场景调用什么接口

响应参数

名称 类型 示例值 描述
result Response 携带优惠券试单结果
  • └ success
  • Boolean
  • true
  • 成功
  • └ error_msg
  • String
  • 错误信息
  • 错误信息
  • └ error_code
  • String
  • 50030
  • 错误码
  • └ content
  • Boolean
  • true
  • 试单结果

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripMerchantGalaxyMemberLoginDerbyRequest req = new AlitripMerchantGalaxyMemberLoginDerbyRequest();
req.setTenantKey("234");
req.setToken("213456789");
AlitripMerchantGalaxyMemberLoginDerbyRequest.DerbyAuthenticationParam obj1 = new AlitripMerchantGalaxyMemberLoginDerbyRequest.DerbyAuthenticationParam();
obj1.setEmail("123456");
obj1.setPassword("123345");
obj1.setUserRegisterType("NEW_MEMBER");
obj1.setAcceptedTandC("AUTHORIZED");
obj1.setOptinAll(true);
obj1.setDataExportAgreement(true);
req.setDerbyAuthenticationParam(obj1);
req.setSceneSource("DERBY_V1_BINDED_LOGIN");
AlitripMerchantGalaxyMemberLoginDerbyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_merchant_galaxy_member_login_derby_response>
    <result>
        <success>true</success>
        <error_msg>错误信息</error_msg>
        <error_code>50030</error_code>
        <content>true</content>
    </result>
</alitrip_merchant_galaxy_member_login_derby_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

返回
顶部