Requests for v3 of the API

Post here any issues with the API or feature requests
Post Reply
User avatar
Kode
Site Admin
Site Admin
Posts: 353
Joined: Wed Dec 18, 2013 11:34 am

Requests for v3 of the API

Post by Kode »

Any requests for the next version of the API?

Hopefully the next version will have unified image names, so a poster will be a poster regardless of the section.

I'll try and get some better documentation done for the next version, if anyone can provide code samples please let me know.
User avatar
Mordred
Moderator
Moderator
Posts: 72
Joined: Sun Dec 22, 2013 8:03 am

Re: Requests for v3 of the API

Post by Mordred »

I had some requests when I was implementing my stuff which interfaced with the API, but I can't remember what they were now. My only request now is just that you don't remove the XML interface even if it isn't publicly exposed.
User avatar
Kode
Site Admin
Site Admin
Posts: 353
Joined: Wed Dec 18, 2013 11:34 am

Re: Requests for v3 of the API

Post by Kode »

Any reason why you would use XML over JSON? I'm not 100% sure whether I'm going to support it or not, but if not you will still be able to use v2
User avatar
Mordred
Moderator
Moderator
Posts: 72
Joined: Sun Dec 22, 2013 8:03 am

Re: Requests for v3 of the API

Post by Mordred »

I have a tagger/art downloader I wrote in an older language that doesn't have a JSON parser, but does have an XML parser. It would really suck to have to write my own JSON parser.

As long as v2 still works, I'm good. :)
User avatar
Mordred
Moderator
Moderator
Posts: 72
Joined: Sun Dec 22, 2013 8:03 am

Re: Requests for v3 of the API

Post by Mordred »

Also, looking at raw JSON in a browser isn't nearly as easy to visually parse as XML which every browser I've ever looked at, formats beautifully. Makes debugging relatively simple.
User avatar
Kode
Site Admin
Site Admin
Posts: 353
Joined: Wed Dec 18, 2013 11:34 am

Re: Requests for v3 of the API

Post by Kode »

Here is an example of the JSON output: http://melanippe.fanart.tv/v3/movies/10 ... aa78675ac2 I'd say that was as easy if not easier to read than XML, but I will look into supporting XML as well
User avatar
Mordred
Moderator
Moderator
Posts: 72
Joined: Sun Dec 22, 2013 8:03 am

Re: Requests for v3 of the API

Post by Mordred »

Well, yeah, formatted like that it's pretty easy to read. The v2 JSON output is essentially one long line with no spaces between. I also found a chrome extension which formats JSON prettily. If it's a lot of extra work, don't worry about it on my account.
User avatar
Kode
Site Admin
Site Admin
Posts: 353
Joined: Wed Dec 18, 2013 11:34 am

Re: Requests for v3 of the API

Post by Kode »

I should be able to reuse some of the code from v2 so I will see how much extra work it will be as you aren't the only one to ask to keep XML
User avatar
zag
Veteran
Veteran
Posts: 36
Joined: Sat Dec 21, 2013 2:53 pm

Re: Requests for v3 of the API

Post by zag »

Just a request to keep the XML api in the future.

XBMC just got support for XLST so we can now write and read XML scrapers so easily instead of using regular expressions. Literally anyone can write and understand them now. It would be a big shame to loose this.

I just wish JSON had a nice way to translate into human readable scripts as well. Maybe one day..
Post Reply