HttpConnectionManager
connectionManager=client.getHttpConnectionManager();
TwitterHttpManager
manager=TwitterHttpManager.builder().httpConnectionManager(connectionManager).username(userName).password(pass).build();
Api api = Api.builder().httpManager(manager).build();
By the way, I recommend to use twitter4j. This is another official
Twitter-API for Java but in my opinion it is more comfortable to use
than java-twitter.
Regards,
Fabian
Hagen schrieb: