alibaba.damai.mp.uc.userprofile.getusersource (用户信息profile服务getUserSource)

getUserSource

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
user_id Number 可选 0 入参userId

响应参数

名称 类型 示例值 描述
result MpResult result
  • └ biz_ext_map
  • String
  • {}
  • 参数bizExtMap
  • └ error_code
  • String
  • foo
  • 参数errorCode
  • └ error_msg
  • String
  • foo
  • 参数errorMsg
  • model
  • UserSource
  • 参数model
  • └ 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);
AlibabaDamaiMpUcUserprofileGetusersourceRequest req = new AlibabaDamaiMpUcUserprofileGetusersourceRequest();
req.setUserId(0L);
AlibabaDamaiMpUcUserprofileGetusersourceResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_damai_mp_uc_userprofile_getusersource_response>
    <result>
        <biz_ext_map>{}</biz_ext_map>
        <error_code>foo</error_code>
        <error_msg>foo</error_msg>
        <model>
            <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>
        </model>
        <success>false</success>
    </result>
</alibaba_damai_mp_uc_userprofile_getusersource_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

返回
顶部