tag:help.lighthouseapp.com,2008-09-20:/discussions/api-developers/930-extra-pagination-keys-included-in-xml-responses-from-apiLighthouse: Discussion 2013-02-01T16:08:03Ztag:help.lighthouseapp.com,2008-09-20:Comment/243260352013-01-29T03:57:25Z2013-01-29T03:57:25ZExtra pagination keys included in XML responses from API?<div><ol>
<li>The pagination keys are not a new thing<br></li>
<li>It's important because people complain about missing tickets in
their list when really it's just on page 2.<br></li>
<li>It's probably related to your recent upgrade because of the
rails xml/yaml security thing.</li>
</ol>
<p>Try this: (sigh)</p>
<pre>
<code>class Hash
def self.from_xml(xml)
xml_parsed = ActiveSupport::XmlMini.parse(xml)
if xml_parsed["tickets"]
xml_parsed["tickets"].delete "current_page"
xml_parsed["tickets"].delete "total_pages"
end
typecast_xml_value(unrename_keys(xml_parsed))
end
end</code>
</pre></div>Tiger Teamtag:help.lighthouseapp.com,2008-09-20:Comment/243260352013-01-29T18:03:02Z2013-01-29T18:03:02ZExtra pagination keys included in XML responses from API?<div><p>Thanks for getting back so quickly Courtenay. That's quite an
ugly hack, but it'll work for the time being. In the medium term,
I'll update the Lighthouse gem to use JSON.</p></div>Leigh Caplan