twitter4j.api
Interface HelpMethods

All Known Subinterfaces:
Twitter

public interface HelpMethods

Author:
Joern Huxhorn - jhuxhorn at googlemail.com

Nested Class Summary
static interface HelpMethods.Language
           
 
Method Summary
 TwitterAPIConfiguration getAPIConfiguration()
          Returns the current configuration used by Twitter including twitter.com slugs which are not usernames, maximum photo resolutions, and t.co URL lengths.
It is recommended applications request this endpoint when they are loaded, but no more than once a day.
 ResponseList<HelpMethods.Language> getLanguages()
          Returns the list of languages supported by Twitter along with their ISO 639-1 code.
 boolean test()
          Returns the string "ok" in the requested format with a 200 OK HTTP status code.
 

Method Detail

test

boolean test()
             throws TwitterException
Returns the string "ok" in the requested format with a 200 OK HTTP status code.

Returns:
true if the API is working
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 1.0.4
See Also:
GET help/test | Twitter Developers

getAPIConfiguration

TwitterAPIConfiguration getAPIConfiguration()
                                            throws TwitterException
Returns the current configuration used by Twitter including twitter.com slugs which are not usernames, maximum photo resolutions, and t.co URL lengths.
It is recommended applications request this endpoint when they are loaded, but no more than once a day.

Returns:
configuration
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.2.3
See Also:
GET help/configuration | Twitter Developers

getLanguages

ResponseList<HelpMethods.Language> getLanguages()
                                                throws TwitterException
Returns the list of languages supported by Twitter along with their ISO 639-1 code. The ISO 639-1 code is the two letter value to use if you include lang with any of your requests.

Returns:
list of languages supported by Twitter
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.2.3
See Also:
GET help/languages | Twitter Developers


Copyright © 2012. All Rights Reserved.