V1/user/my basic info

来自技术开发小组内部wiki
跳转至: 导航搜索

功能说明

获取用户基本信息 本接口是全平台通用的,即发送请求后,可根据请求中传入的"phone_num"平台参数返回发送状态。
例如:如果传入的uid = 1,返回status=success等


URL

正式环境
http://api.fumubang.com/v1/user/my_basic_info
测试环境
http://api.fumubang.net/v1/user/my_basic_info

格式

json

HTTP请求方式

POST

输入参数说明

uid = xxxxxxxx 用户UID

参数名称 是否必须 类型 描述
uid int 以json格式POST传入,用户UID

请求示例

http://api.fumubang.com/v1/user/my_basic_info

openid=xxxxxxx 父母邦分配

openkey=xxxxxxxx 父母邦分配

uid = xxxxxxxx 用户UID


参数用POST方式提交

返回方式说明

xml或json

正确返回说明

 <status>success</status><span style="color:red">成功返回状态</span>
<user_info>
<uid>e234isggPOvRHSJKdtYFB1bbgp0RkcSlAj3b8rUgy4S/zt+KR3b7NFWNbnqaBsyNjF6wmfGT8D6bFgXYBloj6z6xFJgt8A</uid><span style="color:red">用户UID</span>
<username>18618425967</username><span style="color:red">用户名</span>
<phone_number>18618425967</phone_number><span style="color:red">手机号码</span>
<recreply_num>0</recreply_num><span style="color:red">新回应数量</span>
<pms_num>0</pms_num><span style="color:red">新私信数量</span>
<message_num>0</message_num><span style="color:red">新消息提示总数(新回应数量+新私信数量)</span>
<is_majia>0</is_majia><span style="color:red">是否马甲</span>
<is_shield>0</is_shield><span style="color:red">是否被屏蔽</span>
<face_image_small>[http://uc.fumubang.net/avatar.php?uid=32377&size=small http://uc.fumubang.net/avatar.php?uid=32377&size=small]</face_image_small><span style="color:red">小头像</span>
<face_image_middle>[http://uc.fumubang.net/avatar.php?uid=32377&size=middle http://uc.fumubang.net/avatar.php?uid=32377&size=middle]</face_image_middle><span style="color:red">中头像</span>
<face_image_big>[http://uc.fumubang.net/avatar.php?uid=32377&size=big http://uc.fumubang.net/avatar.php?uid=32377&size=big]</face_image_big><span style="color:red">大头像</span>
<email>18618425967@fumubang.net</email><span style="color:red">邮箱</span>
<integral>100</integral><span style="color:red">积分</span>
<level>4</level><span style="color:red">等级</span>
<province>山西省</province><span style="color:red">省/市</span>
<city>大同市</city><span style="color:red">市/区</span>
<edc>2014-08-04 00:00:00</edc><span style="color:red">预产期</span>
<child_birthday/><span style="color:red">生日</span>
<type>1</type><span style="color:red">0-备孕妈妈 1-准妈妈 2-孩子妈妈 3-备孕爸爸 4-准爸爸 5-孩子爸爸</span>
<package_sign_img>[http://www.fumubang.net/static/images/dalibao.png http://www.fumubang.net/static/images/dalibao.png]</package_sign_img><span style="color:#FF0000">大礼包标记图片</span>
<package_record>0</package_record><span style="color:#FF0000">是否显示大礼包0显示1不显示</span>
<package_record_id/><span style="color:#FF0000">大礼包领取记录id</span>
<realname>侯友发</realname>
<birthday>2017-01-01</birthday>  <span style="color:#FF0000;">//生日</span>
<child_info>  <span style="color:#FF0000;">//孩子信息</span>
<item>
<children_birth>2017-01-02</children_birth>
<children_sex>M</children_sex>
</item>
<item>
<children_birth>2017-03-02</children_birth>
<children_sex>F</children_sex>
</item>
</child_info>
</user_info>
<complete_info_status>0</complete_info_status>   <span style="color:#FF0000;">//0未完善 1已完善</span>
<span style="color:#FF0000;"></span><score>20</score><span style="color:#FF0000;"></span>





错误返回示例

参数不全

<error_code>300000</error_code>
<error_msg>参数不全</error_msg>

用户不存在

<error_code>300001</error_code>
<error_msg>用户不存在</error_msg>

示例代码