成人午夜激情影院,小视频免费在线观看,国产精品夜夜嗨,欧美日韩精品一区二区在线播放

人人網API的access_token能獲取到的用戶信息

2013-04-20 12:26:48來源:人人網作者:

獲取用戶的信息。如果用戶設置了隱私或者調用接口時沒有傳遞session_key或access_token參數,只會返回參數uids對應的用戶的姓名(name)、性別(sex)、是否為星級用戶(star)、頭像(headurl)等數據。 當uids為空

獲取用戶的信息。如果用戶設置了隱私或者調用接口時沒有傳遞session_key或access_token參數,只會返回參數uids對應的用戶的姓名(name)、性別(sex)、是否為星級用戶(star)、頭像(headurl)等數據。 當uids為空時,會返回當前用戶,也就是session_key或access_token對應用戶的信息。

返回參數說明

Name Type Description
uid int 表示用戶id
name string 表示用戶名
sex int 表示性別,值1表示男性;值0表示女性
star int 表示是否為星級用戶,值“1”表示“是”;值“0”表示“不是”
zidou int 表示是否為vip用戶,值1表示是;值0表示不是
vip int 表示是否為vip用戶等級,前提是zidou節點必須為1
birthday string 表示出生時間,格式為:yyyy-mm-dd,需要自行格式化日期顯示格式。注:年份60后,實際返回1760-mm-dd;70后,返回1770-mm-dd;80后,返回1780-mm-dd;90后,返回1790-mm-dd
email_hash string 用戶經過驗證的email的信息字符串:email通過了connect.registerUsers接口。字符串包含的email經過了crc32和md5的編碼
tinyurl string 表示頭像鏈接 50*50大小
headurl string 表示頭像鏈接 100*100大小
mainurl string 表示頭像鏈接 200*200大小
hometown_location   表示家鄉信息
country(子節點) string 表示所在國家
province(子節點) string 表示所在省份
city(子節點) string 表示所在城市
work_info   表示工作信息
company_name(子節點) string 表示所在公司
description(子節點) string 表示工作描述
start_date(子節點) string 表示入職時間
end_date(子節點) string 表示離職時間
university_info   表示就讀大學信息
name(子節點) string 表示大學名
year(子節點) string 表示入學時間
department(子節點) string 表示學院
hs_info   表示就讀高中學校信息
name(子節點) string 表示高中學校名
grad_year(子節點) string 表示入學時間

返回JSON樣例

[{ “uid”:222332 , ”name”:”Ramos” , ”sex”:1 , ”star”:1 ,”zidou”:1 ”birthday”:”2008-10-12”, "email_hash”:” 650628530_9c6b2b93842c46155b75b14a34054924”, “tinyurl”:” http://head.xiaonei.com/photos/tiny_10942g177.jpg”, “headurl”:” http://head.xiaonei.com/photos/tiny_10942g177.jpg”, “mainurl”:” http://head.xiaonei.com/photos/tiny_10942g177.jpg”, “hometown_location”:{“country”:”中國”,”province”:”四川”,”city”:”樂山”}, ”work_history”:[ {“company_name”:”千橡”, ”description”:”優秀的公司”, ”start_date”:”2008-7-7”,”end_date”:””} ], “university_history”:[ {“name”:” 北京第二外國語學院”,”year”:2003, “department”:” 人文學院”} ], “hs_history”:[ {“name”:” 黑龍江省實驗中學”,”grad_year”:1999} ],}]

返回XML樣例

<?xml version="1.0" encoding="UTF-8"?> <users_getInfo_response xmlns="http://api.xiaonei.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.xiaonei.com/1.0/ http://api.xiaonei.com/1.0/xiaonei.xsd" list="true"> <user> <uid>8055</uid> <name>劉德華</name> <sex>1</sex> <star>1</star> <zidou>1</zidou> <birthday>1961-09-27</birthday> <email_hash>650628530_9c6b2b93842c46155b75b14a34054924</email_hash> <tinyurl> http://head.xiaonei.com/photos/tiny_10942g177.jpg </tinyurl> <headurl> http://head.xiaonei.com/photos/tiny_10942g177.jpg </headurl> <mainurl> http://head.xiaonei.com/photos/tiny_10942g177.jpg </mainurl> <hometown_location> <country>中國</country> <province>黑龍江</province> <city>哈爾濱</city> </hometown_location> <work_history list="true"> <work_info> <company_name>千橡互聯</company_name> <description>一家互聯網公司</description> <start_date>2006-01</start_date> <end_date /> </work_info> </work_history> <university_history list="true"> <university_info> <name>北京第二外國語學院</name> <year>2003</year> <department>人文學院</department> </university_info> </university_history> <hs_history list="true"> <hs_info> <name>黑龍江省實驗中學</name> <grad_year>1999</grad_year> </hs_info> </hs_history> </user> </users_getInfo_response>

地址:http://wiki.dev.renren.com/wiki/Users.getInfo

 

關鍵詞:人人網API

贊助商鏈接:

主站蜘蛛池模板: 永定县| 临夏县| 德令哈市| 上饶市| 湟中县| 海丰县| 炎陵县| 崇州市| 普格县| 始兴县| 新余市| 元江| 龙山县| 明水县| 阜康市| 新干县| 大新县| 若尔盖县| 阿拉善左旗| 枞阳县| 儋州市| 宜川县| 突泉县| 晋城| 阆中市| 德保县| 分宜县| 阿拉善盟| 太和县| 洛浦县| 台山市| 延吉市| 阿克陶县| 穆棱市| 金平| 潞城市| 双牌县| 阜平县| 广宁县| 宜良县| 禄丰县|