alibaba.damai.mp.uc.account.getsessionbydetail (账号服务getSessionByDetail)

获取登录态

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
login_key String 可选 foo 入参loginKey
login_platform Number 可选 0 入参loginPlatform
device_type Number 可选 0 入参deviceType

响应参数

名称 类型 示例值 描述
result MpResult result
  • └ biz_ext_map
  • String
  • {}
  • 参数bizExtMap
  • └ error_code
  • String
  • foo
  • 参数errorCode
  • └ error_msg
  • String
  • foo
  • 参数errorMsg
  • model
  • Session
  • 参数model
  • └ account_create_time
  • Date
  • 2017-01-01 00:00:00
  • 参数accountCreateTime
  • └ account_type
  • Number
  • 0
  • 参数accountType
  • └ domain_id
  • Number
  • 0
  • 参数domainId
  • └ email
  • String
  • foo
  • 参数email
  • └ havana_id
  • Number
  • 0
  • 参数havanaId
  • └ id
  • String
  • foo
  • 参数id
  • └ login_pattern
  • Number
  • 0
  • 参数loginPattern
  • └ mobile
  • String
  • foo
  • 参数mobile
  • └ nation_prefix
  • String
  • foo
  • 参数nationPrefix
  • └ nickname
  • String
  • foo
  • 参数nickname
  • └ slave_user_id
  • Number
  • 0
  • 参数slaveUserId
  • └ third_account_type
  • Number
  • 0
  • 参数thirdAccountType
  • └ user_grand
  • Number
  • 0
  • 参数userGrand
  • └ user_id
  • Number
  • 0
  • 参数userId
  • └ success
  • Boolean
  • false
  • 参数success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDamaiMpUcAccountGetsessionbydetailRequest req = new AlibabaDamaiMpUcAccountGetsessionbydetailRequest();
req.setLoginKey("foo");
req.setLoginPlatform(0L);
req.setDeviceType(0L);
AlibabaDamaiMpUcAccountGetsessionbydetailResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_damai_mp_uc_account_getsessionbydetail_response>
    <result>
        <biz_ext_map>{}</biz_ext_map>
        <error_code>foo</error_code>
        <error_msg>foo</error_msg>
        <model>
            <account_create_time>2017-01-01 00:00:00</account_create_time>
            <account_type>0</account_type>
            <domain_id>0</domain_id>
            <email>foo</email>
            <havana_id>0</havana_id>
            <id>foo</id>
            <login_pattern>0</login_pattern>
            <mobile>foo</mobile>
            <nation_prefix>foo</nation_prefix>
            <nickname>foo</nickname>
            <slave_user_id>0</slave_user_id>
            <third_account_type>0</third_account_type>
            <user_grand>0</user_grand>
            <user_id>0</user_id>
        </model>
        <success>false</success>
    </result>
</alibaba_damai_mp_uc_account_getsessionbydetail_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

返回
顶部