Example usage for twitter4j Twitter getPrivacyPolicy

List of usage examples for twitter4j Twitter getPrivacyPolicy

Introduction

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

Prototype

String getPrivacyPolicy() throws TwitterException;

Source Link

Document

Returns Twitter's Privacy Policy.

Usage

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

License:Apache License

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