Angelblue05 4132 Posted January 8, 2015 Posted January 8, 2015 I'm trying to work with the Swagger-ui interface. Under /Shows/Upcoming I see there's an AirTime key. I can't seem to be able to access it. Is this what I would normally want to use to see the episode's AirTime? The API is a bit difficult to work with, so I'd appreciate any pointers.
ebr 16169 Posted January 8, 2015 Posted January 8, 2015 Unfortunately, Swagger is not nearly as useful since we put the security into the API. There are lots of properties on the objects that will be returned and, yes, AirTime is the episode air time. There is also AirDays.
Angelblue05 4132 Posted January 8, 2015 Author Posted January 8, 2015 (edited) Yes I know, I don't use it to test the API, but to find what's available within the json object. However, I don't see the AirTime in the list. Here's what I see: The JSON request: ip + ":" + port + "/mediabrowser/Shows/Upcoming?UserId=" + userId + "&Limit=30" I don't see the AirTime key within my request. Am I missing something? Edited January 8, 2015 by Angelblue05
im85288 1493 Posted January 8, 2015 Posted January 8, 2015 Yes unfortunately swagger has now become a complete waste of time and must make it really difficult for new people trying to get familiar with the API. I have mentioned this to Luke many months back but alas it's still unusable. You probably just need to include AirTime in the Fields attribute. What you see above is the default (bare minimum data returned) extra fields need to be requested 2
Angelblue05 4132 Posted January 8, 2015 Author Posted January 8, 2015 Thanks @@im85288! This did the trick! I just needed to attach Fields=AirTime to my JSON request. I am back in business! 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now