Example usage for twitter4j Version getVersion

List of usage examples for twitter4j Version getVersion

Introduction

In this page you can find the example usage for twitter4j Version getVersion.

Prototype

public static String getVersion() 

Source Link

Usage

From source file:org.anc.lapps.datasource.twitter.TwitterDatasource.java

public TwitterDatasource() {
    DataSourceMetadata md = new DataSourceMetadata();
    md.setEncoding("UTF-8");
    md.setName("Twitter Datasource");
    md.setDescription("Extracts tweets based on query from Twitter's REST API.");
    md.setLicense(Discriminators.Uri.APACHE2);
    md.setVendor("http://www.anc.org");
    md.setVersion(Version.getVersion());
    md.setAllow(Discriminators.Uri.ANY);
    metadata = Serializer.toPrettyJson(md);
}