Skip to content

Commit 94add5a

Browse files
Update TwitterExample.java
1 parent b06efa5 commit 94add5a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/org/scribe/examples/TwitterExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static void main(String[] args)
4646

4747
// Now let's go and ask for a protected resource!
4848
System.out.println("Now we're going to access a protected resource...");
49-
OAuthRequest request = new OAuthRequest(Verb.POST, PROTECTED_RESOURCE_URL);
49+
OAuthRequest request = new OAuthRequest(Verb.GET, PROTECTED_RESOURCE_URL);
5050
request.addBodyParameter("status", "this is sparta! *");
5151
service.signRequest(accessToken, request);
5252
Response response = request.send();
@@ -58,4 +58,4 @@ public static void main(String[] args)
5858
System.out.println("Thats it man! Go and build something awesome with Scribe! :)");
5959
}
6060

61-
}
61+
}

0 commit comments

Comments
 (0)