1782
|
1 #summary Simple example of working component and HTTP polling.
|
|
2 #labels Stage-Alpha
|
|
3
|
|
4 = Introduction =
|
|
5
|
|
6 Twitter has simple API to use, so I tried to deal with it via Prosody.
|
|
7 I didn't manage to finish this module, but it is nice example of component that accepts registrations, unregistrations, does HTTP polling and so on.
|
|
8 Maybe someone will finnish this idea.
|
|
9
|
|
10 = Details =
|
|
11
|
|
12 It does require some non-prosody Lua libraries: LuaJSON
|
|
13
|
|
14
|
|
15 = Configuration =
|
|
16
|
|
17 At the moment no configuration needed, but you can configure some variables inside code.
|
|
18
|
|
19 = TODO =
|
|
20
|
|
21 * Send latest tweets to XMPP user
|
|
22 * Reply user's messages to Twitter
|
|
23 * OAuth support
|
|
24 * User configuration (forms)
|
|
25 * discuss about using cjson
|
|
26 * [!!!!] rewrite to be compatible with 0.9+
|
|
27 * drop? (since it is mod_twitter in spectrum)
|
|
28
|
|
29 = Compatibility =
|
|
30 ||trunk||Currently Not Works||
|
|
31 ||0.9||Currently Not Works||
|
|
32 ||0.8||Works|| |