X Tutup
Skip to content

Commit 75afd4a

Browse files
committed
1 parent 990794d commit 75afd4a

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ ScribeJava support out-of-box several HTTP clients:
6161
* Digg (http://digg.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/DiggExample.java)
6262
* Discord (https://discordapp.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/DiscordExample.java)
6363
* Доктор на работе (https://www.doktornarabote.ru/)
64+
* Dropbox (https://www.dropbox.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/DropboxExample.java)
6465
* Etsy (https://www.etsy.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/EtsyExample.java)
6566
* Facebook (https://www.facebook.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/FacebookExample.java), [example with Async Apache HTTP client](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/FacebookAsyncApacheExample.java), [example with Async Ning HTTP client](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/FacebookAsyncNingExample.java)
6667
* Fitbit (https://www.fitbit.com/) [example](https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/FitbitApi20Example.java)

changelog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[SNAPSHOT]
22
* Add debug output to OAuth2Service (thanks to https://github.com/rbarbey)
3+
* Add Dropbox API (https://www.dropbox.com/) (thanks to https://github.com/petrkopotev)
34

45
[6.7.0]
56
* Add OAuth2 support for Meetup.com (thanks to https://github.com/stevedes77)

scribejava-apis/src/main/java/com/github/scribejava/apis/DropboxApi.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ protected DropboxApi() {
1111
}
1212

1313
private static class InstanceHolder {
14+
1415
private static final DropboxApi INSTANCE = new DropboxApi();
1516
}
1617

scribejava-apis/src/test/java/com/github/scribejava/apis/examples/DropboxExample.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@
1515
public class DropboxExample {
1616

1717
private static final String NETWORK_NAME = "Dropbox.com";
18-
private static final String PROTECTED_RESOURCE_URL
19-
= "https://api.dropboxapi.com/2/users/get_space_usage";
18+
private static final String PROTECTED_RESOURCE_URL = "https://api.dropboxapi.com/2/users/get_space_usage";
2019
private static final String PAYLOAD = "null";
2120
private static final String CONTENT_TYPE_NAME = "Content-Type";
2221
private static final String CONTENT_TYPE_VALUE = "application/json";
2322

23+
private DropboxExample() {
24+
}
25+
26+
@SuppressWarnings("PMD.SystemPrintln")
2427
public static void main(String... args) throws IOException, InterruptedException, ExecutionException {
2528
// Replace these with your client id and secret
2629
final String clientId = "client id";

0 commit comments

Comments
 (0)
X Tutup