File tree Expand file tree Collapse file tree 1 file changed +20
-18
lines changed
src/main/java/org/scribe/builder/api Expand file tree Collapse file tree 1 file changed +20
-18
lines changed Original file line number Diff line number Diff line change 22
33import org .scribe .model .Token ;
44
5- public class PlurkApi extends DefaultApi10a {
5+ public class PlurkApi extends DefaultApi10a
6+ {
7+ private static final String REQUEST_TOKEN_URL = "http://www.plurk.com/OAuth/request_token" ;
8+ private static final String AUTHORIZE_URL = "http://www.plurk.com/OAuth/authorize?oauth_token=%s" ;
9+ private static final String ACCESS_TOKEN_URL = "http://www.plurk.com/OAuth/access_token" ;
610
7- private static final String REQUEST_TOKEN_URL = "http://www.plurk.com/OAuth/request_token" ;
8- private static final String AUTHORIZE_URL = "http://www.plurk.com/OAuth/authorize?oauth_token=%s" ;
9- private static final String ACCESS_TOKEN_URL = "http://www.plurk.com/OAuth/access_token" ;
11+ @ Override
12+ public String getRequestTokenEndpoint ()
13+ {
14+ return REQUEST_TOKEN_URL ;
15+ }
1016
11- @ Override
12- public String getRequestTokenEndpoint () {
13- return REQUEST_TOKEN_URL ;
14- }
15-
16- @ Override
17- public String getAuthorizationUrl (Token requestToken ) {
18- return String .format (AUTHORIZE_URL , requestToken .getToken ());
19- }
20-
21- @ Override
22- public String getAccessTokenEndpoint () {
23- return ACCESS_TOKEN_URL ;
24- }
17+ @ Override
18+ public String getAuthorizationUrl (Token requestToken )
19+ {
20+ return String .format (AUTHORIZE_URL , requestToken .getToken ());
21+ }
2522
23+ @ Override
24+ public String getAccessTokenEndpoint ()
25+ {
26+ return ACCESS_TOKEN_URL ;
27+ }
2628}
You can’t perform that action at this time.
0 commit comments