首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > xiaonei-java-api

xiaonei-java-api

  • 资源大小:0.00 B
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

马上开始 下载最新的 JAR文件,文件位置是:http://xiaonei-java-api.googlecode.com/files/renren-api-client-1.2.jar (client包的编译环境是在jdk1.6完成,请注意服务器的jdk版本是否兼容1.6) 如果你的应用所在的web容器中没有包含Sun activation framework ,则需要下载下面的jar文件: http://xiaonei-java-api.googlecode.com/files/activation.jar 将上面的所有JAR文件部署到你的服务器中, 这样你将可以使用校内Platform API. 例子代码 得到好友: ``` XiaoneiRestClient client = new XiaoneiRestClient("apiKey", "secret", "sessionKey"); client.friends_getFriends(); FriendsGetFriendsResponse resp = (FriendsGetFriendsResponse) client.getResponsePOJO(); List friends = resp.getFriend(); for (Friend friend : friends) { logger.info("friends|getFriends|Id|"+friend.getId()); logger.info("friends|getFriends|Name|"+friend.getName()); logger.info("friends|getFriends|Headurl|"+friend.getHeadurl()); } ``` 4.如果你还有什么疑问,请访问http://dev.renren.com
VIP VIP
0.191244s