Suggestions for API-20141201

Suggestions for API-20141201

Postby achuk » Sun Mar 15, 2015 6:33 pm

Thought I'd start a new thread for suggestions for the new API-20141201.

Please standardize references to lineups. Mostly I'd like to see the ID property (instead of lineup property) standardized across all returned lineups.

Status currently returns lineups as:

{
"ID": "USA-OTA-60030",
"modified": "2014-05-17T15:47:42Z",
"uri": "/20140530/lineups/USA-OTA-60030"
}

List of headends in a postal code currently returns lineups as:

{
"name": "Antenna",
"uri": "/20140530/lineups/USA-OTA-60030"
}

and listing subscribed lineups currently returns lineups as:

{
"lineup": "BRA-0003288-X",
"name": "Nossa TV Brasileira - Digital",
"type": "Cable",
"location": "Brazil",
"uri": "/20140530/lineups/BRA-0003288-X"
}

Adrian

Edit - Refer to the correct new API version.
Last edited by achuk on Wed Mar 18, 2015 3:12 pm, edited 1 time in total.
achuk
 
Posts: 17
Joined: Mon May 19, 2014 7:48 pm

Re: Suggestions for API-20140530

Postby achuk » Sun Mar 15, 2015 6:38 pm

The wiki doesn't currently offer any hints to the format of possible notifications in the returned status api call - except for the fact it's an array.

I believe the same goes for messages.

Adrian
achuk
 
Posts: 17
Joined: Mon May 19, 2014 7:48 pm

Re: Suggestions for API-20140530

Postby rkulagow » Sun Mar 15, 2015 9:01 pm

I think you mean 20141201? I will look at standardizing the names and will let you know.
rkulagow
SD Staff
 
Posts: 911
Joined: Tue Aug 14, 2007 3:15 pm

Re: Suggestions for API-20141201

Postby achuk » Wed Mar 18, 2015 3:25 pm

Doh! Sorry about that. I've updated the title to reflect the correct version.

I also wanted to mention that the lineup metadata from the /lineup/{COUNTRY}-{LINEUP}-{DEVICE} endpoint returns a 'transport' property versus the /lineups endpoint returning it as 'type' (assuming that it is the same property).

I hope it doesn't sound like I'm nit-picking. I just like consistency.

Adrian
achuk
 
Posts: 17
Joined: Mon May 19, 2014 7:48 pm

Re: Suggestions for API-20141201

Postby rkulagow » Mon Mar 23, 2015 12:49 pm

Please see

viewtopic.php?f=17&t=2645&p=8379

and let me know if you're still seeing discrepancies in the responses.
rkulagow
SD Staff
 
Posts: 911
Joined: Tue Aug 14, 2007 3:15 pm


Return to Developer

Who is online

Users browsing this forum: No registered users and 4 guests

cron