uk.ac.cam.juliet.twitter.main
Class Authenticator

java.lang.Object
  extended by uk.ac.cam.juliet.twitter.main.Authenticator

public class Authenticator
extends java.lang.Object

Automatically authenticate this program for the use of the Twitter API. Executes a Ruby script which logs into twitter and returns the pin.

Author:
Mansour Ahmed

Constructor Summary
Authenticator()
           
 
Method Summary
static java.lang.String authenticate(java.lang.String username, java.lang.String password, java.lang.String url)
          attempts to authenticate the application with twitter programmatically using the ruby script in file "auth.rb"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Authenticator

public Authenticator()
Method Detail

authenticate

public static java.lang.String authenticate(java.lang.String username,
                                            java.lang.String password,
                                            java.lang.String url)
attempts to authenticate the application with twitter programmatically using the ruby script in file "auth.rb"

Parameters:
username - the twitter username to authenticate with
password - the twitter password to authenticate with
url - the URL at which to do the authentication
Returns:
the pin code returned from twitter