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 » Tue Apr 21, 2015 1:10 pm

Another developer pointed out that I mis-read your issue. Will this work:

Code: Select all

[
    {
        "programID": "SH00712240",
        "data": [
            {
                "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"
            },
<snip>
{
                "width": "180",
                "height": "135",
                "uri": "assets/p282288_b_h5_aa.jpg",
                "size": "Sm",
                "aspect": "4x3",
                "category": "Banner-L3",
                "text": "yes",
                "primary": "true",
                "tier": "Series"
            }
        ]
    },
    {
        "programID": "EP00385190",
        "data": [
            {
                "width": "540",
                "height": "720",
                "caption": {
                    "content": "Alexis Bledel as Rory Gilmore",
                    "lang": "en"
                },
                "uri": "assets/p184655_n183495_cc_v4_aa.jpg",
                "size": "Lg",
                "aspect": "3x4",
                "category": "Cast in Character",
                "text": "no",
                "primary": "true",
                "tier": "Series"
            },
            {
                "width": "240",
                "height": "360",
                "caption": {
                    "content": "Gilmore Girls",
                    "lang": "en"
                },
                "uri": "assets/p184655_i_v5_aa.jpg",
                "size": "Md",
                "aspect": "2x3",
                "category": "Iconic",
<etc>

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

Re: DRAFT: Delta between API 20140530 and 20141201

Post by jose-pr » Tue Apr 21, 2015 4:01 pm

Yes that look good thanks.

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 4:42 pm

Excellent.

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 6:07 pm

Please look at

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

I think it's going to have the same issue, correct?

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 6:29 pm

Also, can you explain a little more about what's happening? I've had other developers that code in C# tell me that they're not running into the same issue. Which parser are you using?

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

Re: DRAFT: Delta between API 20140530 and 20141201

Post by jose-pr » Tue Apr 21, 2015 6:37 pm

I don't have a need for that one yet. I use a parser provided to me by the main program, as i am not an expert in C# it may be possible but i don't know.
Question is there documentation for all the possible values for image types, genres and other field in the responses?

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 6:53 pm

Understood, but if I can fix this now for you, and it doesn't cause a heartache for other developers then I'd rather get it done now then in the next API!

Since it's a new feature there's not a lot of existing code bases that would need to be updated.

Regarding the images, I'm writing that documentation now.

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 25, 2015 9:57 pm

Updated documentation at
https://github.com/SchedulesDirect/JSON ... nformation

It details two error conditions that may occur when you request a programID. Either the programID is valid but not yet generated on the server, so your code should retry, or it's invalid or misformatted.

Please update your client to look for an element named "code" in the program response. As of right now I haven't included code "0" for "OK" yet because it's late and I don't want to break things.

GameGod
Posts: 60
Joined: Fri Aug 17, 2007 12:26 pm

Re: DRAFT: Delta between API 20140530 and 20141201

Post by GameGod » Sun Apr 26, 2015 8:45 am

I was in the process of transitioning my client to the new API, when I noticed that the schedule response is not yet documented for this version. The link (https://github.com/SchedulesDirect/JSON ... e-Response redirects to the home page.

I am hoping the new version will return an array of objects (one for each station), each of which has a "code" member in case there are any errors.

Thanks.

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

Re: DRAFT: Delta between API 20140530 and 20141201

Post by rkulagow » Sun Apr 26, 2015 8:53 am

OK; I've been working on the documentation and must have missed that. I will update.

Post Reply