Skip to content

Commit f661af0

Browse files
denisdenis
authored andcommitted
Changing the Twitter URL corresponding with the 1.1 API
1 parent cafa2fd commit f661af0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99

1010
public class TwitterExample
1111
{
12-
private static final String PROTECTED_RESOURCE_URL = "https://api.twitter.com/1/statuses/update.json";
12+
private static final String PROTECTED_RESOURCE_URL = "http://api.twitter.com/1.1/account/verify_credentials.json";
1313

1414
public static void main(String[] args)
1515
{
16+
// If you choose to use a callback, "oauth_verifier" will be the return value by Twitter (request param)
1617
OAuthService service = new ServiceBuilder()
1718
.provider(TwitterApi.class)
1819
.apiKey("6icbcAXyZx67r8uTAUM5Qw")

0 commit comments

Comments
 (0)