twitter4j.api
Interface LegalResources

All Known Subinterfaces:
Twitter

public interface LegalResources

Since:
Twitter4J 2.1.7
Author:
Yusuke Yamamoto - yusuke at mac.com

Method Summary
 String getPrivacyPolicy()
          Returns Twitter's Privacy Policy.
 String getTermsOfService()
          Returns Twitter's' Terms of Service.
 

Method Detail

getTermsOfService

String getTermsOfService()
                         throws TwitterException
Returns Twitter's' Terms of Service.
This method calls http://api.twitter.com/1/legal/tos.json

Returns:
Terms of Service
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.1.7
See Also:
GET legal/tos | Twitter Developers

getPrivacyPolicy

String getPrivacyPolicy()
                        throws TwitterException
Returns Twitter's Privacy Policy.
This method calls http://api.twitter.com/1/legal/privacy.json

Returns:
privacy policy
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.1.7
See Also:
GET legal/privacy | Twitter Developers


Copyright © 2012. All Rights Reserved.