Automate Authentication java using Scribe


#1

Hi,

I’m trying to automate the process of Authentication because I need my desktop application update Twitter status without any user action.

I have found an article which explains how to acces using Linkedin, but I’m having problems trying to replace the correct forms from html page.

final HtmlForm form = page1.getFormByName(“oauthAuthorizeForm”);
final HtmlSubmitInput button = form.getInputByName(“authorize”);
final HtmlTextInput textField = form.getInputByName(“session_key”);
final HtmlPasswordInput textField2 = form.getInputByName(“session_password”);

Here is the code I found: http://lxfind.com/2011/05/20/using-scribe-linkedin-api-a-completely-automatic-approach/

If you can help me with this code or if you know any other way to do this using Scribe, it will be very appreciated.

Thanks.