alibaba.damai.mp.uc.userprofile.getuserbymobile (用户信息profile服务getUserByMobile)

根据手机号获取帐号

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
domain_id Number 可选 0 入参domainId
country_code String 可选 foo 入参countryCode
mobile String 可选 foo 入参mobile

响应参数

名称 类型 示例值 描述
result MpResult result
  • └ biz_ext_map
  • String
  • {}
  • 参数bizExtMap
  • └ error_code
  • String
  • foo
  • 参数errorCode
  • └ error_msg
  • String
  • foo
  • 参数errorMsg
  • model
  • User
  • 参数model
  • account
  • UserAccount
  • 参数account
  • └ domain_id
  • Number
  • 0
  • 参数domainId
  • └ email
  • String
  • foo
  • 参数email
  • └ gmt_create
  • Date
  • 2017-01-01 00:00:00
  • 参数gmtCreate
  • └ gmt_havana_active
  • Date
  • 2017-01-01 00:00:00
  • 参数gmtHavanaActive
  • └ gmt_modified
  • Date
  • 2017-01-01 00:00:00
  • 参数gmtModified
  • └ havana_id
  • Number
  • 0
  • 参数havanaId
  • └ id
  • Number
  • 0
  • 参数id
  • └ mobile
  • String
  • foo
  • 参数mobile
  • └ nation_prefix
  • String
  • foo
  • 参数nationPrefix
  • └ nickname
  • String
  • foo
  • 参数nickname
  • └ password
  • String
  • foo
  • 参数password
  • └ user_status
  • Number
  • 0
  • 参数userStatus
  • profile
  • UserProfile
  • 参数profile
  • └ addr_city_id
  • Number
  • 0
  • 参数addrCityId
  • └ addr_province_id
  • Number
  • 0
  • 参数addrProvinceId
  • └ addr_region_id
  • Number
  • 0
  • 参数addrRegionId
  • └ birthday
  • String
  • foo
  • 参数birthday
  • └ education_level
  • Number
  • 0
  • 参数educationLevel
  • └ email
  • String
  • foo
  • 参数email
  • └ gmt_create
  • Date
  • 2017-01-01 00:00:00
  • 参数gmtCreate
  • └ gmt_modified
  • Date
  • 2017-01-01 00:00:00
  • 参数gmtModified
  • └ hobby
  • String
  • foo
  • 参数hobby
  • └ home_city_id
  • Number
  • 0
  • 参数homeCityId
  • └ home_province_id
  • Number
  • 0
  • 参数homeProvinceId
  • └ home_region_id
  • Number
  • 0
  • 参数homeRegionId
  • └ id
  • Number
  • 0
  • 参数id
  • └ identity_card
  • String
  • foo
  • 参数identityCard
  • └ industry
  • Number
  • 0
  • 参数industry
  • └ marriage_status
  • Number
  • 0
  • 参数marriageStatus
  • └ mobile
  • String
  • foo
  • 参数mobile
  • └ month_income
  • Number
  • 0
  • 参数monthIncome
  • └ nation_prefix
  • String
  • foo
  • 参数nationPrefix
  • └ nickname
  • String
  • foo
  • 参数nickname
  • └ phone
  • String
  • foo
  • 参数phone
  • └ real_name
  • String
  • foo
  • 参数realName
  • └ sex
  • Number
  • 0
  • 参数sex
  • user_source
  • UserSource
  • 参数userSource
  • └ account_type
  • Number
  • 0
  • 参数accountType
  • └ business_type
  • Number
  • 0
  • 参数businessType
  • └ customer_kind
  • Number
  • 0
  • 参数customerKind
  • └ device_id
  • String
  • foo
  • 参数deviceId
  • └ device_type
  • Number
  • 0
  • 参数deviceType
  • └ gmt_create
  • Date
  • 2017-01-01 00:00:00
  • 参数gmtCreate
  • └ gmt_modified
  • Date
  • 2017-01-01 00:00:00
  • 参数gmtModified
  • └ marketing_mode
  • Number
  • 0
  • 参数marketingMode
  • └ marketing_platform
  • Number
  • 0
  • 参数marketingPlatform
  • └ marketing_type
  • Number
  • 0
  • 参数marketingType
  • └ nation_id
  • Number
  • 0
  • 参数nationId
  • └ pk_user_id
  • Number
  • 0
  • 参数pkUserId
  • └ refer_url
  • String
  • foo
  • 参数referUrl
  • └ reg_address
  • String
  • foo
  • 参数regAddress
  • └ reg_before_url
  • String
  • foo
  • 参数regBeforeUrl
  • └ reg_city_id
  • Number
  • 0
  • 参数regCityId
  • └ reg_ip
  • String
  • foo
  • 参数regIp
  • └ reg_platform
  • Number
  • 0
  • 参数regPlatform
  • └ system_user_sign
  • Number
  • 0
  • 参数systemUserSign
  • └ terminal_type
  • Number
  • 0
  • 参数terminalType
  • └ success
  • Boolean
  • false
  • 参数success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDamaiMpUcUserprofileGetuserbymobileRequest req = new AlibabaDamaiMpUcUserprofileGetuserbymobileRequest();
req.setDomainId(0L);
req.setCountryCode("foo");
req.setMobile("foo");
AlibabaDamaiMpUcUserprofileGetuserbymobileResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_damai_mp_uc_userprofile_getuserbymobile_response>
    <result>
        <biz_ext_map>{}</biz_ext_map>
        <error_code>foo</error_code>
        <error_msg>foo</error_msg>
        <model>
            <account>
                <domain_id>0</domain_id>
                <email>foo</email>
                <gmt_create>2017-01-01 00:00:00</gmt_create>
                <gmt_havana_active>2017-01-01 00:00:00</gmt_havana_active>
                <gmt_modified>2017-01-01 00:00:00</gmt_modified>
                <havana_id>0</havana_id>
                <id>0</id>
                <mobile>foo</mobile>
                <nation_prefix>foo</nation_prefix>
                <nickname>foo</nickname>
                <password>foo</password>
                <user_status>0</user_status>
            </account>
            <profile>
                <addr_city_id>0</addr_city_id>
                <addr_province_id>0</addr_province_id>
                <addr_region_id>0</addr_region_id>
                <birthday>foo</birthday>
                <education_level>0</education_level>
                <email>foo</email>
                <gmt_create>2017-01-01 00:00:00</gmt_create>
                <gmt_modified>2017-01-01 00:00:00</gmt_modified>
                <hobby>foo</hobby>
                <home_city_id>0</home_city_id>
                <home_province_id>0</home_province_id>
                <home_region_id>0</home_region_id>
                <id>0</id>
                <identity_card>foo</identity_card>
                <industry>0</industry>
                <marriage_status>0</marriage_status>
                <mobile>foo</mobile>
                <month_income>0</month_income>
                <nation_prefix>foo</nation_prefix>
                <nickname>foo</nickname>
                <phone>foo</phone>
                <real_name>foo</real_name>
                <sex>0</sex>
            </profile>
            <user_source>
                <account_type>0</account_type>
                <business_type>0</business_type>
                <customer_kind>0</customer_kind>
                <device_id>foo</device_id>
                <device_type>0</device_type>
                <gmt_create>2017-01-01 00:00:00</gmt_create>
                <gmt_modified>2017-01-01 00:00:00</gmt_modified>
                <marketing_mode>0</marketing_mode>
                <marketing_platform>0</marketing_platform>
                <marketing_type>0</marketing_type>
                <nation_id>0</nation_id>
                <pk_user_id>0</pk_user_id>
                <refer_url>foo</refer_url>
                <reg_address>foo</reg_address>
                <reg_before_url>foo</reg_before_url>
                <reg_city_id>0</reg_city_id>
                <reg_ip>foo</reg_ip>
                <reg_platform>0</reg_platform>
                <system_user_sign>0</system_user_sign>
                <terminal_type>0</terminal_type>
            </user_source>
        </model>
        <success>false</success>
    </result>
</alibaba_damai_mp_uc_userprofile_getuserbymobile_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

返回
顶部