Tickets API XML response not parseable by MultiXml

Troy's Avatar

Troy

25 Sep, 2013 05:36 PM

Hi all,

I'm just opening this to track an issue in case others run into it. Right now, MultiXml (and all of its backends) can't parse Lighthouse's tickets API responses. It's the same issue as http://help.lighthouseapp.com/discussions/api-developers/930-extra-..., but this discussion covers the impact.

Right now the array includes two arbitrary elements, total_pages and current_page. As http://help.lighthouseapp.com/discussions/api-developers/930-extra-... says, those are useful and justified, but if anyone tries to use a Ruby library like Faraday, or equivalents in other languages, it won't be parseable.

I'm guessing it's not worth the effort to tinker with the API at this point, so feel free to close this issue. My main interest in opening it was so someone else with the same problem can skip the troubleshooting I just did :-)

  1. 1 Posted by Julien on 25 Sep, 2013 06:07 PM

    Julien's Avatar

    Hey Troy,

    I know this is a problem. I need to look into it again. there is definitely a better way to deal with those attributes.

    One thing I'd like to mention though is that Lighthouse supports both XML and JSON, so you don't have to use XML. I'm not sure everyone is aware of that.

    I'll keep you posted if I get somewhere with the API.

  2. 2 Posted by Troy on 25 Sep, 2013 06:43 PM

    Troy's Avatar

    Hi Julien,

    Wow, cool. I totally wasn't aware of that. Can you add it to http://help.lighthouseapp.com/kb/api/what-is-the-lighthouse-api and http://help.lighthouseapp.com/kb/api/the-basics-of-the-lighthouse-api? Even a one-line mention would have made me switch instantly. I suspect that's why so few people are aware of it ;-)

    Troy

  3. 3 Posted by Julien on 25 Sep, 2013 06:53 PM

    Julien's Avatar

    Hey Troy,

    I updated the docs: http://help.lighthouseapp.com/kb/api/the-basics-of-the-lighthouse-api#xml-vs-json.

    I'll tweet it as well. Using XML in 2013 is really a pain in the ***.

  4. 4 Posted by Troy on 25 Sep, 2013 06:57 PM

    Troy's Avatar

    Oh, that's gold. Thanks for that update (and very nicely explained).

  5. Julien closed this discussion on 26 Sep, 2013 06:15 PM.

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac