Twitter4j Twitter 的 Java 客户端 API开源项目

我要开发同款
匿名用户2011年03月29日
35阅读
开发技术Java
所属分类建站系统、开源微博工具
授权协议Apache

作品详情

Twitter4J是一个非官方的TwitterAPI的Java客户端开发包,使用Twitter4j可以轻松在你的应用中集成Twitter的服务,主要特点:

100%纯Java支持Android平台和GoogleAppEngine不依赖第三方开发包内建OAuth支持

示例代码:

//CreatesthemainobjectTwittertwitter=newTwitterFactory().getInstance(); //AskforarequesttokenRequestTokenrequestToken=twitter.getOAuthRequestToken(); //Storethetokeninsessionrequest.getSession().setAttribute("rt",requestToken); //ExtracttheauthenticationURLStringauthUrl=requestToken.getAuthenticationURL(); //SendtheTwitterauthenticationpagetothepagetocreateapopupfromthererequest.setAttribute("auth",authUrl);
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论