皇上,还记得我吗?我就是1999年那个Linux伊甸园啊-----24小时滚动更新开源资讯,全年无休!

ScribeJava 5.3.0 发布,简单的 OAuth Java 库

ScribeJava 5.3.0 已发布,ScribeJava 是一个简单的 Java 实现的 OAuth/OAuth2 库。

示例代码:

OAuthService service = new ServiceBuilder()
          .apiKey(YOUR_API_KEY)
          .apiSecret(YOUR_API_SECRET)
          .build(LinkedInApi20.instance());

5.3.0 的更新内容主要是修复和添加各种 API:

  • fix Salesforce API (thanks to https://github.com/jhorowitz-firedrum)
  • remove ‘final’ from methods in OAuth[10a|20]Service to allow mocking it
  • fix Pinterest API (thanks to https://github.com/sschwieb)
  • add Yahoo2 API (thanks to https://github.com/javatestcase)
  • fix Tumblr urls, convert to https (thanks to https://github.com/highthunder)
  • fix: allow spaces in scope param in OAuth2Accesstoken response
  • add required param version to VK ВКонтакте (http://vk.com/) urls

源码下载:https://github.com/scribejava/scribejava/releases/tag/scribejava-5.3.0

使用

<dependency>
    <groupId>com.github.scribejava</groupId>
    <artifactId>scribejava-apis</artifactId>
    <version>5.3.0</version>
</dependency>

只使用核心类

<dependency>
    <groupId>com.github.scribejava</groupId>
    <artifactId>scribejava-core</artifactId>
    <version>5.3.0</version>
</dependency>

转自 http://www.oschina.net/news/93981/scribejava-5-3-0-released