Martin Passard bf1398bcfd Add library twitter4j 6 years ago
..
account bf1398bcfd Add library twitter4j 6 years ago
async bf1398bcfd Add library twitter4j 6 years ago
block bf1398bcfd Add library twitter4j 6 years ago
directmessage bf1398bcfd Add library twitter4j 6 years ago
favorite bf1398bcfd Add library twitter4j 6 years ago
friendsandfollowers bf1398bcfd Add library twitter4j 6 years ago
friendship bf1398bcfd Add library twitter4j 6 years ago
geo bf1398bcfd Add library twitter4j 6 years ago
help bf1398bcfd Add library twitter4j 6 years ago
json bf1398bcfd Add library twitter4j 6 years ago
list bf1398bcfd Add library twitter4j 6 years ago
mute bf1398bcfd Add library twitter4j 6 years ago
savedsearches bf1398bcfd Add library twitter4j 6 years ago
search bf1398bcfd Add library twitter4j 6 years ago
spamreporting bf1398bcfd Add library twitter4j 6 years ago
stream bf1398bcfd Add library twitter4j 6 years ago
suggestedusers bf1398bcfd Add library twitter4j 6 years ago
timeline bf1398bcfd Add library twitter4j 6 years ago
trends bf1398bcfd Add library twitter4j 6 years ago
tweets bf1398bcfd Add library twitter4j 6 years ago
user bf1398bcfd Add library twitter4j 6 years ago
getAccessToken.cmd bf1398bcfd Add library twitter4j 6 years ago
getAccessToken.sh bf1398bcfd Add library twitter4j 6 years ago
logback.xml bf1398bcfd Add library twitter4j 6 years ago
readme.txt bf1398bcfd Add library twitter4j 6 years ago
setEnv.cmd bf1398bcfd Add library twitter4j 6 years ago
setEnv.sh bf1398bcfd Add library twitter4j 6 years ago
twitter4j.properties bf1398bcfd Add library twitter4j 6 years ago

readme.txt

Twitter4J example scripts

Follow the below steps to run the examples:
1. configure consumer key / secret
Go to https://dev.twitter.com/, register an app and get your app's consumer key/secret pair at https://dev.twitter.com/apps/[appid]/show.
Save those values to twitter4j.properties

2. run getAccessToken.sh/cmd
run getAccessToken.sh/cmd and follow the instruction and get your access token.
Access token will be stored in twitter4j.properties

3. run examples you want.
Now OAuth credentials are ready.
You can run any examples.

- Files in this directory
getAccessToken.sh/cmd - script to acquire OAuth access token. need to run before executing examples that requires authorization.
logback.xml - logging configuration. see http://logback.qos.ch/manual/configuration.html for the detail.
readme.txt - this file
setEnv.sh/cmd - script configures JAVA_HOME end classpath system variables
twitter4j.properties - Twitter4J configuration

- Directory structure
account/ - Account resources examples
async/ - Async API examples
block/ - Block resources examples
directmessage/ - Direct Message resources examples
favorite/ - Favorite resources examples
friendsandfollowers/ - Friends and Followers resources examples
friendship/ - Friendship resources examples
geo/ - Geo resources examples
help/ - Help resources examples
json/ - Raw JSON handling examples
legal/ - Legal resources examples
list/ - List resources examples
listmembers/ - List Members resources examples
listsubscribers/ - List Subscribers resources examples
misc/ - resources examples
notification/ - Miscellaneous resources examples
savedsearches/ - Saved Searches resources examples
search/ - resources examples
spamreporting/ - Spam Reporting resources examples
stream/ - Streamed Tweets resources examples
timeline/ - Timeline resources examples
trends/ - Trends resources examples
tweets/ - Tweets resources examples
user/ - User resources examples