File tree Expand file tree Collapse file tree 2 files changed +24
-27
lines changed
main/java/org/scribe/builder/api
test/java/org/scribe/examples Expand file tree Collapse file tree 2 files changed +24
-27
lines changed Original file line number Diff line number Diff line change 11package org .scribe .builder .api ;
22
3- import org .scribe .model .Token ;
3+ import org .scribe .model .* ;
44
55/**
66 * OAuth API for ImgUr
77 *
88 * @author David Wursteisen
99 * @see <a href="http://api.imgur.com/#authapi">ImgUr API</a>
1010 */
11- public class ImgUrApi extends DefaultApi10a {
11+ public class ImgUrApi extends DefaultApi10a
12+ {
1213
13- @ Override
14- public String getRequestTokenEndpoint ()
15- {
16- return "https://api.imgur.com/oauth/request_token" ;
17- }
14+ @ Override
15+ public String getRequestTokenEndpoint ()
16+ {
17+ return "https://api.imgur.com/oauth/request_token" ;
18+ }
1819
19- @ Override
20- public String getAccessTokenEndpoint ()
21- {
22- return "https://api.imgur.com/oauth/access_token" ;
23- }
20+ @ Override
21+ public String getAccessTokenEndpoint ()
22+ {
23+ return "https://api.imgur.com/oauth/access_token" ;
24+ }
2425
25- @ Override
26- public String getAuthorizationUrl (Token requestToken )
27- {
28- return String .format ("https://api.imgur.com/oauth/authorize?oauth_token=%s" , requestToken .getToken ());
29- }
26+ @ Override
27+ public String getAuthorizationUrl (Token requestToken )
28+ {
29+ return String .format ("https://api.imgur.com/oauth/authorize?oauth_token=%s" , requestToken .getToken ());
30+ }
3031}
3132
Original file line number Diff line number Diff line change 11package org .scribe .examples ;
22
3- import org .scribe .builder .ServiceBuilder ;
4- import org .scribe .builder .api .ImgUrApi ;
5- import org .scribe .model .OAuthRequest ;
6- import org .scribe .model .Response ;
7- import org .scribe .model .Token ;
8- import org .scribe .model .Verb ;
9- import org .scribe .model .Verifier ;
10- import org .scribe .oauth .OAuthService ;
11-
12- import java .util .Scanner ;
3+ import org .scribe .builder .*;
4+ import org .scribe .builder .api .*;
5+ import org .scribe .model .*;
6+ import org .scribe .oauth .*;
7+
8+ import java .util .*;
139
1410public class ImgUrExample
1511{
You can’t perform that action at this time.
0 commit comments