Page 5 of 6

Re: DRAFT: Delta between API 20140530 and 20141201

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

Re: DRAFT: Delta between API 20140530 and 20141201

Posted: Tue Apr 21, 2015 4:01 pm
by jose-pr
Yes that look good thanks.

Re: DRAFT: Delta between API 20140530 and 20141201

Posted: Tue Apr 21, 2015 4:42 pm
by rkulagow
Excellent.

Re: DRAFT: Delta between API 20140530 and 20141201

Posted: Tue Apr 21, 2015 6:07 pm
by rkulagow
Please look at

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

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

Re: DRAFT: Delta between API 20140530 and 20141201

Posted: Tue Apr 21, 2015 6:29 pm
by rkulagow
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?

Re: DRAFT: Delta between API 20140530 and 20141201

Posted: Tue Apr 21, 2015 6:37 pm
by jose-pr
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?

Re: DRAFT: Delta between API 20140530 and 20141201

Posted: Tue Apr 21, 2015 6:53 pm
by rkulagow
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.

Re: DRAFT: Delta between API 20140530 and 20141201

Posted: Sat Apr 25, 2015 9:57 pm
by rkulagow
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.

Re: DRAFT: Delta between API 20140530 and 20141201

Posted: Sun Apr 26, 2015 8:45 am
by GameGod
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.

Re: DRAFT: Delta between API 20140530 and 20141201

Posted: Sun Apr 26, 2015 8:53 am
by rkulagow
OK; I've been working on the documentation and must have missed that. I will update.