I know this is a little late in replying but I wondered if you managed to work out the issues?
I'm currently trying to connect to the Heart API and I'm getting NO where... !!
Heart wont offer support either... which is annoying as it's THEIR API and THEIR example coding which I'm using!!