API - ActiveResource client

it seems as though Pivotal is written in rails, but I've been having a bear of a time trying to integrate with the API using a standard rails ActiveResource client. The following code generates errors because the xml response is not formatted as a "standard" rails rest response.

class Story < ActiveResource::Base
PROJECT_ID = 3575
TOKEN = 'my_api_token'
self.site = "https://www.pivotaltracker.com/servic..."

def self.headers
{'Token' => TOKEN}
end
end

Story.find :all

any ideas on how to fix this?
3 people have
this question
+1
Reply