-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtwitter_search.xml
26 lines (25 loc) · 983 Bytes
/
twitter_search.xml
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
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Sample: Twitter Search">
<Require feature="opensocial-0.9" />
<Require feature="opensocial-data" />
<Require feature="opensocial-templates" />
</ModulePrefs>
<Content type="html">
<![CDATA[
<script xmlns:os="http://ns.opensocial.org/2008/markup" type="text/os-data">
<os:HttpRequest format="json" key="twitter_search" href="http://search.twitter.com/search.json?q=xing" />
</script>
<script type="text/os-template" require="twitter_search" xmlns:os="http://ns.opensocial.org/2008/markup" xmlns:osx="http://ns.opensocial.org/2009/extensions">
<h3>Twitter search results for 'xing'</h3>
<ul>
<li repeat="${twitter_search.content.results}">
<strong>${Cur.from_user}</strong>
<em>(${Cur.created_at})</em>:
<p>${Cur.text}</p>
</li>
</ul>
</script>
]]>
</Content>
</Module>