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