Skip to content

Commit 6bff3a4

Browse files
Added an Api for Box.com
1 parent d9c8a0f commit 6bff3a4

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

  • scribejava-apis/src/main/java/com/github/scribejava/apis
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
package com.github.scribejava.apis;
2+
3+
import com.github.scribejava.core.builder.api.DefaultApi20;
4+
5+
/**
6+
* Box.com Api
7+
*/
8+
public class BoxApi20 extends DefaultApi20 {
9+
10+
11+
protected BoxApi20() {
12+
13+
}
14+
15+
private static class InstanceHolder {
16+
private static final BoxApi20 INSTANCE = new BoxApi20();
17+
}
18+
19+
public static BoxApi20 instance() {
20+
return InstanceHolder.INSTANCE;
21+
}
22+
23+
@Override
24+
public String getAccessTokenEndpoint() {
25+
return "https://api.box.com/oauth2/token";
26+
}
27+
28+
@Override
29+
protected String getAuthorizationBaseUrl() {
30+
return "https://account.box.com/api/oauth2/authorize";
31+
}
32+
33+
}

0 commit comments

Comments
 (0)