Monday, February 9, 2009

Yahoo BOSS + Twitter

Aggregating search results from Yahoo & Twitter Search API:


<mashup xmlns="http://www.jackbe.com/2008-03-01/EMMLSchema"
name="YahooBOSS">
<input name="query" type="string" default="cricket"/>
<output name="searchResults" type="document"/>
<directinvoke endpoint="http://boss.yahooapis.com/ysearch/news/v1/{$query}" appid="<yourYahooAppIdGoesHere>" format="xml"
outputvariable="search"/>
<directinvoke endpoint="http://search.twitter.com/search.atom?q={$query}" outputvariable="tweets"/>
<constructor outputvariable="searchResults">
<results>
{$search}
{$tweets}
</results>
</constructor>
</mashup>
view raw BOSSTwitter hosted with ❤ by GitHub

No comments: