New issue 18 by mark.c.e...@gmail.com: Login broken
http://code.google.com/p/java-twitter/issues/detail?id=18
Tried the example:
Api api =
Api.builder().username(cred.getLogin()).password(cred.getPassword()).build();
api.updateStatus("msg").build().post();
Won't authenticate to Twitter, instead it returns the following exception
WARN [main] (HttpMethodDirector.java:697) - Unable to respond to any of
these challenges: {oauth=OAuth realm="http://api.twitter.com"}
Exception in thread "main" java.lang.RuntimeException: Expected 200 OK.
Received 401 Unauthorized. Response:
{"errors":[{"code":53,"message":"Basic authentication is not supported"}]}.
at net.unto.twitter.TwitterHttpManager.execute(TwitterHttpManager.java:212)
at net.unto.twitter.TwitterHttpManager.post(TwitterHttpManager.java:146)
at
net.unto.twitter.methods.AbstractRequest.postJson(AbstractRequest.java:138)
at
net.unto.twitter.methods.UpdateStatusRequest.post(UpdateStatusRequest.java:71)
at logic.TwitterNetwork.update(TwitterNetwork.java:24)
at logic.Distributor.update(Distributor.java:30)
at logic.Main.run(Main.java:40)
at logic.Main.main(Main.java:34)
Process finished with exit code 1
Using java-twitter 0.9 from maven
twitter enforces oauth and denies access via basic-auth since 1.9.2010.
How can you add OAuth authenticaction?
Is there any exmaple?
I am getting the same exception. Any lead?
Please provide us some example.
any example?
i am also getting the same response...if anyone have any example please
share...
same here
same here
Also had this problem, it seems its due to twitter not allowing basic auth
anymore.
Changing the HttpManager might suffice.
sooo this lib is dead?