No lineups return for user

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

No lineups return for user

Post by jose-pr » Tue Mar 24, 2015 4:26 pm

Should lineups added through the schedule direct webpage appear on the get request for /status and /lineups ?
I have created a new user and added a lineup through the webpage but when i ask for the lineups or status it says the user doesn't have any.

Code: Select all

account: {
expires: "2015-03-31T17:12:11Z"
messages: [0]
maxLineups: 4
}-
lineups: [0]
lastDataUpdate: "2015-03-24T23:08:52Z"
notifications: [0]
systemStatus: [1]
0:  {
date: "2015-03-23T18:47:00Z"
status: "Online"
message: "Lineup responses updated. See http://forums.schedulesdirect.org/viewtopic.php?f=17&t=2645&p=8379 for details."
}-
-
serverID: "20141201.web.1"
code: 0
}

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

Re: No lineups return for user

Post by rkulagow » Tue Mar 24, 2015 4:47 pm

No; the XML service (web page, selecting channels, etc) and the JSON service are different.

On the JSON service, it's up to the client to determine which stations to download data for, so you don't need to keep switching between a web page and your client, and if the lineup changes you can present that to the user. If they want a new channel, then you'd download the data. If they don't want a channel, just don't download the data. A single point of administration (your application) is the goal.

See

https://github.com/SchedulesDirect/JSON ... ct-account

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

Re: No lineups return for user

Post by jose-pr » Tue Mar 24, 2015 4:59 pm

oh, i thought at least the lineups sync up. I do only pull data for only the channels that the client has but i haven't implemented a method to add a new lineup yet and thought lineups where the same in both. Thanks.

Post Reply