微博开放平台
微连接
移动应用
网站接入
电商服务商
电商商家
数据服务
数据服务
合作伙伴
微博支付
轻应用
粉丝服务
文档
推广
我的应用
登录
weibo
开发文档
首页
平台政策与指引
概述
平台公约
新手指南
开发者协议
应用运营管理规范
微连接分级管理办法
应用审核产品指南
应用安全开发注意事项
平台应用设计规范
微服务接入指南
微博登录接入
用微博帐号登录
授权机制
移动应用接入
移动应用介绍
移动应用SSO授权
微博Deep Link
媒体接入平台
头条文章开放接口
视频上传开放接口
电商接入平台
电商服务商接入
电商商家端接入
电商平台能力接口
粉丝服务平台
粉丝服务平台
新手接入指南
微信开发者迁移指南
接收消息
发送消息
自定义菜单
用户管理
生成带参数的二维码
Fans Service Platform
商业接口
商业数据接入指南
订阅服务手册(中文版)
订阅服务手册(英文版)
商业接口-REST API
商业数据常见问题
网站接入
网站接入介绍
微博API
微博API
接口访问频次权限
资源下载
SDK
微博标识下载
常见问题
联系我们
工具箱
链入页面
链出更改
特殊页面
查看源代码
跳转到:
导航
,
搜索
根据下列原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
{{api_desc2| uri=users/suggestions| desc=返回当前用户可能感兴趣的用户。| format=XML/JSON| httpMethod=GET| needAuth=true| rateLimit=true| params={{api_args|with_reason|false|int|是否返回推荐原因,可选值1/0。当值为1,返回结果中增加推荐原因,会大幅改变返回值格式。}}| getParam=&with_reason=1| postParam=| result= ===XML示例(with_reason=0)=== <pre> <?xml version="1.0" encoding="UTF-8"?> <users> <user> <id>1477356933</id> <screen_name>liudaoru</screen_name> <name>liudaoru</name> <province>11</province> <city>8</city> <location>北京 海淀区</location> <description>80后,IT民工,总是富有各种想法,素以能折腾而闻名。。。</description> <url>http://blog.sina.com.cn/liudaoru</url> <profile_image_url>http://tp2.sinaimg.cn/1477356933/50/1279879139/1</profile_image_url> <domain>liudaoru</domain> <gender>m</gender> <followers_count>787</followers_count> <friends_count>1158</friends_count> <statuses_count>1401</statuses_count> <favourites_count>509</favourites_count> <created_at>Thu Jan 21 00:00:00 +0800 2010</created_at> <following>false</following> <verified>false</verified> <allow_all_act_msg>false</allow_all_act_msg> <geo_enabled>true</geo_enabled> <status> <created_at>Mon Dec 13 17:05:41 +0800 2010</created_at> <id>4420481591</id> <text>转发微博</text> <source> <a href="http://wing.uedsite.com/">Wing微博2010</a> </source> <favorited>false</favorited> <truncated>false</truncated> <geo/> <in_reply_to_status_id/> <in_reply_to_user_id/> <in_reply_to_screen_name/> <retweeted_status> <created_at>Mon Dec 13 16:51:54 +0800 2010</created_at> <id>4420179987</id> <text>刚才浙江电信的工程师来给我安装调试ADSL,前后浪费我了两个多小时不说,看到业务流程处理之乱、服务态度之烂实在是叹为观止,无以复加。@浙江电信客服</text> <source> <a href="http://t.sina.com.cn">新浪微博</a> </source> <favorited>false</favorited> <truncated>false</truncated> <geo/> <in_reply_to_status_id/> <in_reply_to_user_id/> <in_reply_to_screen_name/> <user> <id>1577826897</id> <screen_name>Fenng</screen_name> <name>Fenng</name> <province>33</province> <city>1</city> <location>浙江 杭州</location> <description>冯大辉,工作在丁香园( http://dxy.com , 医药生命科学专业网站),CTO。多年来一直做技术,说起来,也是个手艺人。Twitter 是我的主战场。</description> <url>http://dbanotes.net</url> <profile_image_url>http://tp2.sinaimg.cn/1577826897/50/1283204066/1</profile_image_url> <domain>fenng</domain> <gender>m</gender> <followers_count>50394</followers_count> <friends_count>1994</friends_count> <statuses_count>2302</statuses_count> <favourites_count>758</favourites_count> <created_at>Fri Aug 28 00:00:00 +0800 2009</created_at> <following>false</following> <verified>true</verified> <allow_all_act_msg>false</allow_all_act_msg> <geo_enabled>true</geo_enabled> </user> <annotations/> </retweeted_status> </status> </user> ... </users> </pre> ===JSON示例(with_reason=0)=== <pre> [ { "name" : "liudaoru", "domain" : "liudaoru", "geo_enabled" : true, "followers_count" : 787, "statuses_count" : 1401, "favourites_count" : 509, "city" : "8", "description" : "80后,IT民工,总是富有各种想法,素以能折腾而闻名。。。", "verified" : false, "status" : { "created_at" : "Mon Dec 13 17:05:41 +0800 2010", "text" : "转发微博", "truncated" : false, "retweeted_status" : { "created_at" : "Mon Dec 13 16:51:54 +0800 2010", "text" : "刚才浙江电信的工程师来给我安装调试ADSL,前后浪费我了两个多小时不说,看到业务流程处理之乱、服务态度之烂实在是叹为观止,无以复加。@浙江电信客服", "truncated" : false, "in_reply_to_status_id" : "", "annotations" : [ ], "in_reply_to_screen_name" : "", "geo" : null, "user" : { "name" : "Fenng", "domain" : "fenng", "geo_enabled" : true, "followers_count" : 50394, "statuses_count" : 2302, "favourites_count" : 758, "city" : "1", "description" : "冯大辉,工作在丁香园( http://dxy.com , 医药生命科学专业网站),CTO。多年来一直做技术,说起来,也是个手艺人。Twitter 是我的主战场。", "verified" : true, "id" : 1577826897, "gender" : "m", "friends_count" : 1994, "screen_name" : "Fenng", "allow_all_act_msg" : false, "following" : false, "url" : "http://dbanotes.net", "profile_image_url" : "http://tp2.sinaimg.cn/1577826897/50/1283204066/1", "created_at" : "Fri Aug 28 00:00:00 +0800 2009", "province" : "33", "location" : "浙江 杭州" }, "favorited" : false, "in_reply_to_user_id" : "", "id" : 4420179987, "source" : "<a href=\"http://t.sina.com.cn\" rel=\"nofollow\">新浪微博</a>" }, "in_reply_to_status_id" : "", "in_reply_to_screen_name" : "", "geo" : null, "favorited" : false, "in_reply_to_user_id" : "", "id" : 4420481591, "source" : "<a href=\"http://wing.uedsite.com/\" rel=\"nofollow\">Wing微博2010</a>" }, "id" : 1477356933, "gender" : "m", "friends_count" : 1158, "screen_name" : "liudaoru", "allow_all_act_msg" : false, "following" : false, "url" : "http://blog.sina.com.cn/liudaoru", "profile_image_url" : "http://tp2.sinaimg.cn/1477356933/50/1279879139/1", "created_at" : "Thu Jan 21 00:00:00 +0800 2010", "province" : "11", "location" : "北京 海淀区" }, ... ] </pre> ===XML示例(with_reason=1)=== <pre> <?xml version="1.0" encoding="UTF-8"?> <suggested_users> <suggested_user> <reason>area</reason> <user> <id>1477356933</id> <screen_name>liudaoru</screen_name> <name>liudaoru</name> <province>11</province> <city>8</city> <location>北京 海淀区</location> <description>80后,IT民工,总是富有各种想法,素以能折腾而闻名。。。</description> <url>http://blog.sina.com.cn/liudaoru</url> <profile_image_url>http://tp2.sinaimg.cn/1477356933/50/1279879139/1</profile_image_url> <domain>liudaoru</domain> <gender>m</gender> <followers_count>787</followers_count> <friends_count>1158</friends_count> <statuses_count>1401</statuses_count> <favourites_count>509</favourites_count> <created_at>Thu Jan 21 00:00:00 +0800 2010</created_at> <following>false</following> <verified>false</verified> <allow_all_act_msg>false</allow_all_act_msg> <geo_enabled>true</geo_enabled> <status> <created_at>Mon Dec 13 17:05:41 +0800 2010</created_at> <id>4420481591</id> <text>转发微博</text> <source> <a href="http://wing.uedsite.com/">Wing微博2010</a> </source> <favorited>false</favorited> <truncated>false</truncated> <geo/> <in_reply_to_status_id/> <in_reply_to_user_id/> <in_reply_to_screen_name/> <retweeted_status> <created_at>Mon Dec 13 16:51:54 +0800 2010</created_at> <id>4420179987</id> <text>刚才浙江电信的工程师来给我安装调试ADSL,前后浪费我了两个多小时不说,看到业务流程处理之乱、服务态度之烂实在是叹为观止,无以复加。@浙江电信客服</text> <source> <a href="http://t.sina.com.cn">新浪微博</a> </source> <favorited>false</favorited> <truncated>false</truncated> <geo/> <in_reply_to_status_id/> <in_reply_to_user_id/> <in_reply_to_screen_name/> <user> <id>1577826897</id> <screen_name>Fenng</screen_name> <name>Fenng</name> <province>33</province> <city>1</city> <location>浙江 杭州</location> <description>冯大辉,工作在丁香园( http://dxy.com , 医药生命科学专业网站),CTO。多年来一直做技术,说起来,也是个手艺人。Twitter 是我的主战场。</description> <url>http://dbanotes.net</url> <profile_image_url>http://tp2.sinaimg.cn/1577826897/50/1283204066/1</profile_image_url> <domain>fenng</domain> <gender>m</gender> <followers_count>50394</followers_count> <friends_count>1994</friends_count> <statuses_count>2302</statuses_count> <favourites_count>758</favourites_count> <created_at>Fri Aug 28 00:00:00 +0800 2009</created_at> <following>false</following> <verified>true</verified> <allow_all_act_msg>false</allow_all_act_msg> <geo_enabled>true</geo_enabled> </user> <annotations/> </retweeted_status> </status> </user> </suggested_user> ... </suggested_users> </pre> ===JSON示例(with_reason=1)=== <pre> [ { "reason" : "area", "user" : { "name" : "liudaoru", "domain" : "liudaoru", "geo_enabled" : true, "followers_count" : 787, "statuses_count" : 1401, "favourites_count" : 509, "city" : "8", "description" : "80后,IT民工,总是富有各种想法,素以能折腾而闻名。。。", "verified" : false, "status" : { "created_at" : "Mon Dec 13 17:05:41 +0800 2010", "text" : "转发微博", "truncated" : false, "retweeted_status" : { "created_at" : "Mon Dec 13 16:51:54 +0800 2010", "text" : "刚才浙江电信的工程师来给我安装调试ADSL,前后浪费我了两个多小时不说,看到业务流程处理之乱、服务态度之烂实在是叹为观止,无以复加。@浙江电信客服", "truncated" : false, "in_reply_to_status_id" : "", "annotations" : [ ], "in_reply_to_screen_name" : "", "geo" : null, "user" : { "name" : "Fenng", "domain" : "fenng", "geo_enabled" : true, "followers_count" : 50394, "statuses_count" : 2302, "favourites_count" : 758, "city" : "1", "description" : "冯大辉,工作在丁香园( http://dxy.com , 医药生命科学专业网站),CTO。多年来一直做技术,说起来,也是个手艺人。Twitter 是我的主战场。", "verified" : true, "id" : 1577826897, "gender" : "m", "friends_count" : 1994, "screen_name" : "Fenng", "allow_all_act_msg" : false, "following" : false, "url" : "http://dbanotes.net", "profile_image_url" : "http://tp2.sinaimg.cn/1577826897/50/1283204066/1", "created_at" : "Fri Aug 28 00:00:00 +0800 2009", "province" : "33", "location" : "浙江 杭州" }, "favorited" : false, "in_reply_to_user_id" : "", "id" : 4420179987, "source" : "<a href=\"http://t.sina.com.cn\" rel=\"nofollow\">新浪微博</a>" }, "in_reply_to_status_id" : "", "in_reply_to_screen_name" : "", "geo" : null, "favorited" : false, "in_reply_to_user_id" : "", "id" : 4420481591, "source" : "<a href=\"http://wing.uedsite.com/\" rel=\"nofollow\">Wing微博2010</a>" }, "id" : 1477356933, "gender" : "m", "friends_count" : 1158, "screen_name" : "liudaoru", "allow_all_act_msg" : false, "following" : false, "url" : "http://blog.sina.com.cn/liudaoru", "profile_image_url" : "http://tp2.sinaimg.cn/1477356933/50/1279879139/1", "created_at" : "Thu Jan 21 00:00:00 +0800 2010", "province" : "11", "location" : "北京 海淀区" } }, ... ] </pre>| useAge=无| otherInfo=无 }}
该页面使用的模板:
模板:Api args
(
查看源代码
)
模板:Api desc2
(
查看源代码
)
返回到
Users/suggestions
。
反馈
分享
顶部