Jump to content

Can't figure how to get the AirTime


Recommended Posts

Angelblue05
Posted

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.

Posted

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
Posted (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"

 

 54af0f1c004ba_UpcomingHelp.jpg

 

I don't see the AirTime key within my request. Am I missing something?

Edited by Angelblue05
im85288
Posted

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

  • Like 2
Angelblue05
Posted

Thanks @@im85288! This did the trick! I just needed to attach Fields=AirTime to my JSON request. I am back in business! :D

  • Like 1
im85288
Posted

Great, glad it worked :)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...