bradserbu / opensinaapi

Automatically exported from code.google.com/p/opensinaapi
0 stars 0 forks source link

没有实现根据用户的user_id及昵称获取用户资料 #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
请问何时能实现http://api.t.sina.com.cn/users/show.format 此API?
因为我觉得此API很必要。但API上说的要授权不知道是什么意��
�?是不是指登陆过的用户才可以查看得到?否则将无法获取�
��但是我直接在地址栏目上输入这个API加上APPKey是可以返回正
确的数据的不管我输的user_id是什么都可以的。是不是表示不�
��要用户必须登陆过呢?

Original issue reported on code.google.com by zxfnicho...@gmail.com on 23 Aug 2010 at 2:59

GoogleCodeExporter commented 9 years ago
1.授权的意思是:要经过oauth认证;
2.oauth认证的过程中,首先需要app_key和secret_key(你申请应用的�
��候得到的key和secret),过程中会跳转到sina的认证页面,之后�
��会获得一个pin码,然后最终会获得token和token 
secret;最后利用将token和token 
secret作为参数,来请求相应的接口,获得xml或者json

Original comment by sarlmola...@gmail.com on 23 Aug 2010 at 6:38

GoogleCodeExporter commented 9 years ago
users/show 根据用户ID获取用户资料(授权用户) 
那这个接口的意思是只有我获取自己的个人资料不能获取别��
�的吗?

Original comment by zxfnicho...@gmail.com on 23 Aug 2010 at 4:14

GoogleCodeExporter commented 9 years ago
你可以仔细看下api文档中的xml,就会明白这个接口的功能。ps
:oauth(授权)了之后才能请求接口

Original comment by sarlmola...@gmail.com on 24 Aug 2010 at 1:02

GoogleCodeExporter commented 9 years ago
我看了两天还是没有搞出来,可不可以将sdk中先加上这个功��
�?现在急需要此功能,谢谢了!

Original comment by zxfnicho...@gmail.com on 26 Aug 2010 at 4:57

GoogleCodeExporter commented 9 years ago
似乎用户的描述没办法获取得到

Original comment by jujiam...@gmail.com on 21 Sep 2010 at 8:57

GoogleCodeExporter commented 9 years ago

Original comment by sarlmola...@gmail.com on 12 Jan 2011 at 9:56

GoogleCodeExporter commented 9 years ago
获得一个pin码就不能自动化吗?

Original comment by cacar2...@gmail.com on 13 May 2011 at 10:25

GoogleCodeExporter commented 9 years ago
对desktop版, 自动化了oauth就没有意义了

Original comment by sarlmola...@gmail.com on 22 May 2011 at 6:42

GoogleCodeExporter commented 9 years ago
  httpRequest.GetAccessToken();  这个方法里的返回值有user_id这个值的。

Original comment by xiaojing...@gmail.com on 6 Sep 2011 at 7:39