Example usage for twitter4j Twitter getTermsOfService

List of usage examples for twitter4j Twitter getTermsOfService

Introduction

In this page you can find the example usage for twitter4j Twitter getTermsOfService.

Prototype

String getTermsOfService() throws TwitterException;

Source Link

Document

Returns Twitter's' Terms of Service.

Usage

From source file:twitter4j.examples.help.GetTermsOfService.java

License:Apache License

/**
 * Usage: java twitter4j.examples.help.GetTermsOfService
 *
 * @param args String[]/* w  w w . j a  v a  2  s  . c om*/
 */
public static void main(String[] args) {
    try {
        Twitter twitter = new TwitterFactory().getInstance();
        System.out.println(twitter.getTermsOfService());
    } catch (TwitterException te) {
        te.printStackTrace();
        System.out.println("Failed to get tems of service: " + te.getMessage());
        System.exit(-1);
    }
}