Greetings flexcoders, this is my first post.

I'm also trying to build my first Flex project, i'm no stranger to actionscript 
3, but i don't 
have much experience working with REST based API's.

I wanted to start simple, so i am trying to interact with the harvestapp api 
here:
http://www.getharvest.com/api

I have absolutely no problem connecting and returning XML using the RestTest 
plugin for 
Firefox. All i can do with Flex is return the page html, i have included the 
HTTPService code 
below:

<mx:HTTPService id="harvestTest" 
        url="https://chop.harvestapp.com/daily";
        headers="Accept:application/xml, Content-Type:application/xml, 
Authorization:Basic({encodedUser})"
        method="GET"
        showBusyCursor="true"
        result="handleXml(event)"
        fault="handleFault(event)"
        resultFormat="e4x">
</mx:HTTPService>

Flex 3, beta 3. Any help would be greatly appreciated, thanks.

Reply via email to