Who said OAuth/OAuth2 was difficult? Configuring ScribeJava is so easy your grandma can do it! check it out:
OAuthService service = new ServiceBuilder()
.apiKey(YOUR_API_KEY)
.apiSecret(YOUR_API_SECRET)
.build(LinkedInApi20.instance());
That single line (added newlines for readability) is the only thing you need to configure ScribeJava with LinkedIn's OAuth API for example.
Hit ScribeJava as hard and with many threads as you like.
You can use ning async http client out-of-box, just use ServiceBuilderAsync
Yahoo
Foursquare
Evernote
Vimeo
Windows Live
Odnoklassniki
Mail.ru
LinkedIn2.0
Google2.0
GitHub
and many more! check the examples folder
ScribeJava's code is small (about 1k LOC) and simple to understand. No smart-ass or "clever" hacks here. You can use only 'core' or 'with apis' maven modules
Works out of the box with android(TM) applications.
Good test coverage to keep you safe from harm.
When something bad actually happens, ScribeJava's meaningful error messages will tell you exactly what went wrong, when and where.
You can pull ScribeJava from the central maven repository, just add these to your pom.xml file:
<dependency>
<groupId>com.github.scribejava</groupId>
<artifactId>scribejava-apis</artifactId>
<version>2.5.3</version>
</dependency>
And in case you need just core classes (that's it, without any external API (FB, VK, GitHub, Google etc) specific code), you could pull just 'core' artifact.
<dependency>
<groupId>com.github.scribejava</groupId>
<artifactId>scribejava-core</artifactId>
<version>2.5.3</version>
</dependency>
Check the Getting Started page and start rocking! Please Read the FAQ before creating an issue :)
Also, remember to read the fantastic tutorial that @akoskm wrote to easily integrate a server side app with an API (twitter in this case).
Feel free to drop us an email or create issue right here on github.com
If you have a useful fork that should be listed there please contact us
final String apiKey = "101303927";
final String apiSecret = "0c3ac6430d6e2f60dfb637101252417e ";
final OAuth20Service service = new ServiceBuilder().apiKey(apiKey).apiSecret(apiSecret)
.callback("http://www.yichisancun.com/qqlogin.htm").state("xxxx")
.scope("get_user_info,list_album,upload_pic,do_like").build(QQApi.instance());
System.out.println(service.getAuthorizationUrl())
final String apiKey = "x";
final String apiSecret = "x ";
final OAuth20Service service = new ServiceBuilder().apiKey(apiKey).apiSecret(apiSecret)
.callback("url").state("xxxx").scope("snsapi_login")
.build(WeiXinApi.instance());
System.out.println(service.getAuthorizationUrl());
final OAuth20Service oschina = new ServiceBuilder().apiKey("CTJlkYcnBaZCsi4GGgUk").grantType("authorization_code")
.apiSecret("TlKrmPCKImAKEzk1ORZtdwooJKDIgXrF").callback("http://www.yichisancun.com/oschinalogin.htm")
.responseType("code").build(OschinaApi.instance());
System.out.println(service.getAuthorizationUrl());
=======
Who said OAuth/OAuth2 was difficult? Configuring ScribeJava is so easy your grandma can do it! check it out:
OAuthService service = new ServiceBuilder()
.apiKey(YOUR_API_KEY)
.apiSecret(YOUR_API_SECRET)
.build(LinkedInApi20.instance());
That single line (added newlines for readability) is the only thing you need to configure ScribeJava with LinkedIn's OAuth API for example.
Hit ScribeJava as hard and with many threads as you like.
You can use ning async http client out-of-box, just use ServiceBuilderAsync
ScribeJava's code is small (about 1k LOC) and simple to understand. No smart-ass or "clever" hacks here. You can use only 'core' or 'with apis' maven modules
Works out of the box with android(TM) applications.
Good test coverage to keep you safe from harm.
When something bad actually happens, ScribeJava's meaningful error messages will tell you exactly what went wrong, when and where.
You can pull ScribeJava from the central maven repository, just add these to your pom.xml file:
<dependency>
<groupId>com.github.scribejava</groupId>
<artifactId>scribejava-apis</artifactId>
<version>2.7.3</version>
</dependency>
And in case you need just core classes (that's it, without any external API (FB, VK, GitHub, Google etc) specific code), you could pull just 'core' artifact.
<dependency>
<groupId>com.github.scribejava</groupId>
<artifactId>scribejava-core</artifactId>
<version>2.7.3</version>
</dependency>
Check the Getting Started page and start rocking! Please Read the FAQ before creating an issue :)
Also, remember to read the fantastic tutorial that @akoskm wrote to easily integrate a server side app with an API (twitter in this case).
Feel free to drop us an email or create issue right here on github.com
If you have a useful fork that should be listed there please contact us
branch 'master' of https://github.com/scribejava/scribejava.git
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型