List of usage examples for twitter4j Twitter getPrivacyPolicy
String getPrivacyPolicy() throws TwitterException;
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); } }