Created
November 21, 2012 09:01
-
-
Save kimukou/4123897 to your computer and use it in GitHub Desktop.
getFavorites_test.groovy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@GrabResolver(name='twitter4j',root='http://twitter4j.org/maven2') | |
@Grab('org.twitter4j:twitter4j-core:[3.0,)') | |
import twitter4j.* | |
def twitter = new TwitterFactory().getInstance() | |
twitter.getFavorites('kimukou2628').each{ //OK | |
//twitter.getFavorites('kimukou2628',new Paging(1,40)).each{ //NG | |
println "${it.user.name}:${it.text}" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 21, 2012 6:01:04 午後 org.codehaus.groovy.runtime.StackTraceUtils sanitize | |
WARNING: Sanitizing stacktrace: | |
401:Authentication credentials (https://dev.twitter.com/docs/auth) were missing or incorrect. Ensure that you have set valid consumer key/secret, access token/secret, and the system clock is in sync. | |
message - Could not authenticate you | |
code - 32 | |
Relevant discussions can be found on the Internet at: | |
http://www.google.co.jp/search?q=af1e4492 or | |
http://www.google.co.jp/search?q=37cf2281 | |
TwitterException{exceptionCode=[af1e4492-37cf2281], statusCode=401, message=Could not authenticate you, code=32, retryAfter=-1, rateLimitStatus=null, version=3.0.0-SNAPSHOT(build: 9c6a9ba1587071fd4757d724b698e7a945a9a0c9)} | |
at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:176) | |
at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:61) | |
at twitter4j.internal.http.HttpClientWrapper.get(HttpClientWrapper.java:81) | |
at twitter4j.TwitterImpl.get(TwitterImpl.java:1667) | |
at twitter4j.TwitterImpl.getFavorites(TwitterImpl.java:991) | |
at twitter4j.api.FavoritesResources$getFavorites.call(Unknown Source) | |
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) | |
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) | |
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120) | |
at ConsoleScript18.run(ConsoleScript18:9) | |
at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:257) | |
at groovy.lang.GroovyShell.run(GroovyShell.java:481) | |
at groovy.lang.GroovyShell.run(GroovyShell.java:163) | |
at groovy.lang.GroovyShell$run.call(Unknown Source) | |
at groovy.ui.Console$_runScriptImpl_closure17.doCall(Console.groovy:951) | |
at groovy.ui.Console$_runScriptImpl_closure17.doCall(Console.groovy) | |
at sun.reflect.GeneratedMethodAccessor287.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:601) | |
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) | |
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) | |
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272) | |
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906) | |
at groovy.lang.Closure.call(Closure.java:415) | |
at groovy.lang.Closure.call(Closure.java:409) | |
at groovy.lang.Closure.run(Closure.java:493) | |
at java.lang.Thread.run(Thread.java:722) | |
401:Authentication credentials (https://dev.twitter.com/docs/auth) were missing or incorrect. Ensure that you have set valid consumer key/secret, access token/secret, and the system clock is in sync. | |
message - Could not authenticate you | |
code - 32 | |
Relevant discussions can be found on the Internet at: | |
http://www.google.co.jp/search?q=af1e4492 or | |
http://www.google.co.jp/search?q=37cf2281 | |
TwitterException{exceptionCode=[af1e4492-37cf2281], statusCode=401, message=Could not authenticate you, code=32, retryAfter=-1, rateLimitStatus=null, version=3.0.0-SNAPSHOT(build: 9c6a9ba1587071fd4757d724b698e7a945a9a0c9)} | |
at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:176) | |
at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:61) | |
at twitter4j.internal.http.HttpClientWrapper.get(HttpClientWrapper.java:81) | |
at twitter4j.TwitterImpl.get(TwitterImpl.java:1667) | |
at twitter4j.TwitterImpl.getFavorites(TwitterImpl.java:991) | |
at twitter4j.api.FavoritesResources$getFavorites.call(Unknown Source) | |
at ConsoleScript18.run(ConsoleScript18:9) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment