Pages

Thursday, March 15, 2007

my feedz api

The myFeedz API from adobe gives us facility to search content of
our interest across the web in more systematic way.
We need to create a account on myfeedz which gives a api key in our profile section.
We can add the tags of our own interest, the feeds that we like to our profile.
Using this key we can access the myFeedz API. Get the info of our interest.
The api section of myfeedz nicelly explain the use of all the api's listed there.
I was having some problem while accessing list of tags from my profile on my feedz.
Thanks to renaun , who helped me a lot in sorting out the problem.
The sample code is here :

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" >
<mx:Script>
<![CDATA[
import com.adobe.serialization.json.JSON;
import mx.controls.Alert;

[Bindable]
private var myFeedzKey:String = "82f3eacc8d5ba8f651d940d197d23041";//"";
[Bindable]
private var feedURI:String = "http://www.myfeedz.com/api/v1/tags/?key=";
]]>
</mx:Script>
<mx:HTTPService
id="feedZservice"
url="{ feedURI + myFeedzKey + '&from=1' }"
useProxy="false" result="showAlert(event)"
showBusyCursor="true"
/>
<mx:HBox>
<mx:Button label="list tags from my account" click="feedZservice.send()"/>
</mx:HBox/>
<mx:DataGrid
id="dgPosts"
height="90%" width="90%"
dataProvider="{ JSON.decode( feedZservice.lastResult.toString()).tags }">
</mx:DataGrid>
</mx:Application>

No comments: