Child: [r19] (diff)

Download this file

readme.txt    49 lines (42 with data), 0 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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