DRAFT: Delta between API 20140530 and 20141201

rkulagow
SD Staff
Posts: 915
Joined: Tue Aug 14, 2007 3:15 pm

Re: DRAFT: Delta between API 20140530 and 20141201

Post by rkulagow » Thu Apr 02, 2015 7:01 pm

Yes, but these are the low-hanging fruit. Let me trace back to the root cause.

rkulagow
SD Staff
Posts: 915
Joined: Tue Aug 14, 2007 3:15 pm

Re: DRAFT: Delta between API 20140530 and 20141201

Post by rkulagow » Sat Apr 04, 2015 12:17 pm

For program metadata regarding season and episode, "Tribune" -> "Gracenote" to reflect the name change of the parent company.

gtb
Posts: 88
Joined: Thu Oct 02, 2014 2:07 pm

Re: DRAFT: Delta between API 20140530 and 20141201

Post by gtb » Tue Apr 07, 2015 11:11 am

rkulagow wrote:For program metadata regarding season and episode, "Tribune" -> "Gracenote" to reflect the name change of the parent company.
Good luck finding all the places Tribune is buried in the docs/code (I know, you have to start somewhere). I believe the SD site itself is full of such legacy names too (including the subscription agreement, privacy policy, probably others). Fortunately, most rational contracts use words such as "and successor companies", covering some cases of changes.

rkulagow
SD Staff
Posts: 915
Joined: Tue Aug 14, 2007 3:15 pm

Re: DRAFT: Delta between API 20140530 and 20141201

Post by rkulagow » Tue Apr 07, 2015 11:42 am

PHPStorm (which is what I code in) makes it very easy to do a global search and replace across all files. This was just a matter of not properly documenting it in the API.

rkulagow
SD Staff
Posts: 915
Joined: Tue Aug 14, 2007 3:15 pm

Re: DRAFT: Delta between API 20140530 and 20141201

Post by rkulagow » Fri Apr 10, 2015 9:11 pm

Updated:

New program elements:

"audience" - (Work-in-progress) if the element is included, it will be a string containing the intended audience. Possible values are
Children
Adults only

"holiday" - if the element is included, it will be a free-form string containing the holiday associated with the program.

"animation" - (Work-in-progress) if the element is included, it will be a string containing the following:
Animated
Anime
Live action/animated
Live action/anime

There are also language-specific versions for animation, so you may see:
Dessins animé
Animada
Animado
Animerad/tecknad
Lebhaft
Animé

rkulagow
SD Staff
Posts: 915
Joined: Tue Aug 14, 2007 3:15 pm

Re: DRAFT: Delta between API 20140530 and 20141201

Post by rkulagow » Mon Apr 20, 2015 9:54 am

The code that deals with images should now return proper JSON. Please see the updated documentation at

https://github.com/SchedulesDirect/JSON ... os-banners

rkulagow
SD Staff
Posts: 915
Joined: Tue Aug 14, 2007 3:15 pm

Re: DRAFT: Delta between API 20140530 and 20141201

Post by rkulagow » Mon Apr 20, 2015 4:06 pm

You can download the generic descriptions for a program as a separate call:

https://github.com/SchedulesDirect/JSON ... -a-program

jose-pr
Posts: 20
Joined: Sat Mar 21, 2015 1:40 pm

Re: DRAFT: Delta between API 20140530 and 20141201

Post by jose-pr » Mon Apr 20, 2015 8:51 pm

Can the image response be

Code: Select all

{ "result" : [
      { "programID": "SH00712240",
         "images"    : [
        {
            "width": "135",
            "height": "180",
            "uri": "assets/p282288_b_v2_aa.jpg",
            "size": "Sm",
            "aspect": "3x4",
            "category": "Banner-L3",
            "text": "yes",
            "primary": "true",
            "tier": "Series"
        },
        {
            "width": "720",
            "height": "540",
            "uri": "assets/p282288_b_h6_aa.jpg",
            "size": "Lg",
            "aspect": "4x3",
            "category": "Banner-L3",
            "text": "yes",
            "primary": "true",
            "tier": "Series"
        }
     ]
  }
]}

Basically for the show not to be in the position of the variable, at least in C# the name of the variable has to be static to be able to deserialize the value into a class.

rkulagow
SD Staff
Posts: 915
Joined: Tue Aug 14, 2007 3:15 pm

Re: DRAFT: Delta between API 20140530 and 20141201

Post by rkulagow » Tue Apr 21, 2015 9:28 am

I'm not familiar with C#. Are you saying that it has to have something "anchoring" the sub-arrays?

rkulagow
SD Staff
Posts: 915
Joined: Tue Aug 14, 2007 3:15 pm

Re: DRAFT: Delta between API 20140530 and 20141201

Post by rkulagow » Tue Apr 21, 2015 11:21 am

See if the updated call now does what you need it to do.

Post Reply