FAQ  •  Register  •  Login

CDS API Examples?

<<

Peteyus

Serviio newbie

Posts: 10

Joined: Sun Sep 08, 2013 5:39 pm

Post Wed Sep 07, 2016 2:35 am

CDS API Examples?

I've started working on an idea for a mobile app with Serviio utilizing the CDS API. I've been able to successfully connect to the API and to authenticate, but when it comes to /cds/browse I keep getting 404s. There doesn't seem to be anything to query to get valid options for any of the properties listed in the query in the examples, and there aren't any example queries for browse to help understand. Are there any documented examples of use of the API beyond the docs on http://docs.serviiocds.apiary.io/?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Sep 07, 2016 5:16 pm

Re: CDS API Examples?

You could check network activity in Chrome browser (dev tools) when using MediaBrowser
<<

Peteyus

Serviio newbie

Posts: 10

Joined: Sun Sep 08, 2013 5:39 pm

Post Wed Sep 07, 2016 8:27 pm

Re: CDS API Examples?

I tried that, unfortunately my server is not on the box I'm deving on so I don't get any good values (just the back and forth for the mediabrowser content).

I don't see anything on the API that exposes the valid profile_ids, is there an endpoint I can query for those? After some admittedly hacky attempts using a REST client I was able to get results finally and it seems that profile_id accepts any value. But I'd like to ask the API what profiles are present so I can try and select the best one.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Sep 07, 2016 9:59 pm

Re: CDS API Examples?

any from profiles.xml or application-profiles.xml in your Serviio/conf directory (the id attribute), for example flv_player, ios, etc
<<

Peteyus

Serviio newbie

Posts: 10

Joined: Sun Sep 08, 2013 5:39 pm

Post Wed Sep 07, 2016 10:28 pm

Re: CDS API Examples?

I assumed as much... but where I'm trying to create something environment agnostic, I'd really love for there to be a way to query the available profiles from the API. I'll put that in feature requests and deal with it as is for now. Thanks for your help!

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 63 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.