Skip to content

Commit a2cea9b

Browse files
committed
show accessToken rawResponse in examples
1 parent 18c1d06 commit a2cea9b

40 files changed

+80
-43
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ public static void main(String... args) {
4747
System.out.println("Trading the Request Token for an Access Token...");
4848
final OAuth1AccessToken accessToken = service.getAccessToken(requestToken, verifier);
4949
System.out.println("Got the Access Token!");
50-
System.out.println("(if your curious it looks like this: " + accessToken + " )");
50+
System.out.println("(if your curious it looks like this: " + accessToken
51+
+ ", 'rawResponse'='" + accessToken.getRawResponse() + "')");
5152
System.out.println();
5253

5354
// Now let's go and ask for a protected resource!

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public static void main(String... args) {
5050
System.out.println("Trading the Request Token for an Access Token...");
5151
final OAuth1AccessToken accessToken = service.getAccessToken(requestToken, verifier);
5252
System.out.println("Got the Access Token!");
53-
System.out.println("(if your curious it looks like this: " + accessToken + " )");
53+
System.out.println("(if your curious it looks like this: " + accessToken
54+
+ ", 'rawResponse'='" + accessToken.getRawResponse() + "')");
5455
System.out.println();
5556

5657
// Now let's go and ask for a protected resource!

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ public static void main(String... args) throws InterruptedException, ExecutionEx
7474
System.out.println("Trading the Request Token for an Access Token...");
7575
final OAuth2AccessToken accessToken = service.getAccessTokenAsync(verifier, null).get();
7676
System.out.println("Got the Access Token!");
77-
System.out.println("(if your curious it looks like this: " + accessToken + " )");
77+
System.out.println("(if your curious it looks like this: " + accessToken
78+
+ ", 'rawResponse'='" + accessToken.getRawResponse() + "')");
7879
System.out.println();
7980

8081
// Now let's go and ask for a protected resource!

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public static void main(String... args) {
5959
System.out.println("Trading the Request Token for an Access Token...");
6060
final OAuth2AccessToken accessToken = service.getAccessToken(verifier);
6161
System.out.println("Got the Access Token!");
62-
System.out.println("(if your curious it looks like this: " + accessToken + " )");
62+
System.out.println("(if your curious it looks like this: " + accessToken
63+
+ ", 'rawResponse'='" + accessToken.getRawResponse() + "')");
6364
System.out.println();
6465

6566
// Now let's go and ask for a protected resource!

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ public static void main(String... args) {
4646
System.out.println("Trading the Request Token for an Access Token...");
4747
final OAuth1AccessToken accessToken = service.getAccessToken(requestToken, verifier);
4848
System.out.println("Got the Access Token!");
49-
System.out.println("(if your curious it looks like this: " + accessToken + " )");
49+
System.out.println("(if your curious it looks like this: " + accessToken
50+
+ ", 'rawResponse'='" + accessToken.getRawResponse() + "')");
5051
System.out.println();
5152

5253
// Now let's go and ask for a protected resource!

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ public static void main(String... args) {
4444
System.out.println("Trading the Request Token for an Access Token...");
4545
final OAuth2AccessToken accessToken = service.getAccessToken(verifier);
4646
System.out.println("Got the Access Token!");
47-
System.out.println("(if your curious it looks like this: " + accessToken + " )");
47+
System.out.println("(if your curious it looks like this: " + accessToken
48+
+ ", 'rawResponse'='" + accessToken.getRawResponse() + "')");
4849
System.out.println();
4950

5051
// Now let's go and ask for a protected resource!

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public static void main(String... args) {
4242
System.out.println("Trading the Request Token for an Access Token...");
4343
final OAuth1AccessToken accessToken = service.getAccessToken(requestToken, verifier);
4444
System.out.println("Got the Access Token!");
45-
System.out.println("(if your curious it looks like this: " + accessToken + " )");
45+
System.out.println("(if your curious it looks like this: " + accessToken
46+
+ ", 'rawResponse'='" + accessToken.getRawResponse() + "')");
4647
System.out.println();
4748

4849
// Now let's go and ask for a protected resource!

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public static void main(String... args) {
5050
System.out.println("Trading the Request Token for an Access Token...");
5151
final OAuth1AccessToken accessToken = service.getAccessToken(requestToken, verifier);
5252
System.out.println("Got the Access Token!");
53-
System.out.println("(if your curious it looks like this: " + accessToken + " )");
53+
System.out.println("(if your curious it looks like this: " + accessToken
54+
+ ", 'rawResponse'='" + accessToken.getRawResponse() + "')");
5455
System.out.println();
5556

5657
// Now let's go and ask for a protected resource!

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public static void main(String... args) {
5959
System.out.println("Trading the Request Token for an Access Token...");
6060
final OAuth2AccessToken accessToken = service.getAccessToken(verifier);
6161
System.out.println("Got the Access Token!");
62-
System.out.println("(if your curious it looks like this: " + accessToken + " )");
62+
System.out.println("(if your curious it looks like this: " + accessToken
63+
+ ", 'rawResponse'='" + accessToken.getRawResponse() + "')");
6364
System.out.println();
6465

6566
// Now let's go and ask for a protected resource!

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ public static void main(String... args) {
6060
System.out.println("Trading the Request Token for an Access Token...");
6161
final OAuth2AccessToken accessToken = service.getAccessToken(verifier);
6262
System.out.println("Got the Access Token!");
63-
System.out.println("(if your curious it looks like this: " + accessToken + " )");
63+
System.out.println("(if your curious it looks like this: " + accessToken
64+
+ ", 'rawResponse'='" + accessToken.getRawResponse() + "')");
6465
System.out.println();
6566

6667
// Now let's go and ask for a protected resource!

0 commit comments

Comments
 (0)