Getting Twitter username with OAuth 0.1.1 Grails Plugin
has anyone tried using http://www.grails.org/plugin/oauth ? I'm trying this on twitter.com and I'm having a problem getting the username or accessing this API: http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-account%C2%A0verify_credentials
here's the code in my reverse url:
def twitterCallback = {
def response = oauthService.accessResource('http://api.twitter.com/1/account/verify_credentials.json','twitter', session.oauthToken)
log.debug "response: ${response}"
}
I keep getting this error:
2010-04-22 14: 32: 56,842 [http-8081-1] WARN httpclient.HttpMethodBase - Cookie rejected: "$ Version = 0; _twitter_sess = BAh7CDoPY3JlYXRlZF9hdGwrCMQcOCQoAToHaWQiJThiYWY4MGI1YTY1M2U0% 250AYTRhNjAzYTA2NTBmNjkzZTYwIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy% 250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA - 31d191141bf32e0489967492692f1e77fc9e1845; $ Path = /; $ = Domain. twitter.com ". Illegal domain attribute ".twitter.com". Origin: "twitter.com" 2010-04-22 14: 32: 56,854 [http-8081-1] INFO auth.AuthChallengeProcessor - basic authentication scheme selected 2010-04-22 14: 32: 56,856 [http-8081-1 ] INFO httpclient.HttpMethodDirector - No credentials available for BASIC 'Twitter API'@twitter.com: 80 2010-04-22 14: 32: 56,865 [http-8081-1] Errors ERROR.GrailsExceptionResolver is null
it seems like it uses BASIC authentication instead of OAuth. any ideas? or is there a problem with the OAuth Grails plugin?
thanks.
a source to share
No one has answered this question yet
See similar questions:
or similar: