Example usage for twitter4j.conf PropertyConfiguration USER

List of usage examples for twitter4j.conf PropertyConfiguration USER

Introduction

In this page you can find the example usage for twitter4j.conf PropertyConfiguration USER.

Prototype

String USER

To view the source code for twitter4j.conf PropertyConfiguration USER.

Click Source Link

Usage

From source file:org.rhq.plugins.twitter.TwitterComponent.java

License:Open Source License

private Twitter createTwitterInstance() {
    Properties props = new Properties();
    props.setProperty(PropertyConfiguration.USER, username);
    props.setProperty(PropertyConfiguration.PASSWORD, password);
    PropertyConfiguration propConfig = new PropertyConfiguration(props);
    return tFactory.getInstance(AuthorizationFactory.getInstance(propConfig));
}