@@ -27,11 +27,11 @@ public static void main(String... args) {
2727 final String site = "stackoverflow" ;
2828 final String secretState = "secret" + new Random ().nextInt (999_999 );
2929 final OAuth20Service service = new ServiceBuilder ()
30- .apiKey (clientId )
31- .apiSecret (clientSecret )
32- .state (secretState )
33- .callback ("http://www.example.com/oauth_callback/" )
34- .build (StackExchangeApi .instance ());
30+ .apiKey (clientId )
31+ .apiSecret (clientSecret )
32+ .state (secretState )
33+ .callback ("http://www.example.com/oauth_callback/" )
34+ .build (StackExchangeApi .instance ());
3535 final Scanner in = new Scanner (System .in , "UTF-8" );
3636
3737 System .out .println ("=== " + NETWORK_NAME + "'s OAuth Workflow ===" );
@@ -69,7 +69,8 @@ public static void main(String... args) {
6969
7070 // Now let's go and ask for a protected resource!
7171 System .out .println ("Now we're going to access a protected resource..." );
72- final OAuthRequest request = new OAuthRequest (Verb .GET , PROTECTED_RESOURCE_URL + "?site=" + site + "&key=" + key , service );
72+ final OAuthRequest request = new OAuthRequest (Verb .GET ,
73+ PROTECTED_RESOURCE_URL + "?site=" + site + "&key=" + key , service );
7374 service .signRequest (accessToken , request );
7475 final Response response = request .send ();
7576 System .out .println ("Got it! Lets see what we found..." );
0 commit comments