Changed Twitter OAuth endpoints to use the new api.twitter.com
This commit is contained in:
1 parent
149756e5ed
commit
20b200c7bc
2 files changed
+3
-3
No files matched your search
@@ -5,12 +5,12 @@ public class TwitterApi extends DefaultApi10a
|
||||
@Override
|
||||
protected String getAccessTokenEndpoint()
|
||||
{
|
||||
return "http://twitter.com/oauth/access_token";
|
||||
return "http://api.twitter.com/oauth/access_token";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getRequestTokenEndpoint()
|
||||
{
|
||||
return "http://twitter.com/oauth/request_token";
|
||||
return "http://api.twitter.com/oauth/request_token";
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ import org.scribe.oauth.*;
|
||||
|
||||
public class TwitterExample
|
||||
{
|
||||
private static final String AUTHORIZE_URL = "https://twitter.com/oauth/authorize?oauth_token=";
|
||||
private static final String AUTHORIZE_URL = "https://api.twitter.com/oauth/authorize?oauth_token=";
|
||||
private static final String PROTECTED_RESOURCE_URL = "http://api.twitter.com/1/account/verify_credentials.xml";
|
||||
|
||||
public static void main(String[] args)
|
||||
|
||||
Reference in new issue
Block a user