No lineups return for user

No lineups return for user

Postby 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
}
jose-pr
 
Posts: 20
Joined: Sat Mar 21, 2015 1:40 pm

Re: No lineups return for user

Postby 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
rkulagow
SD Staff
 
Posts: 910
Joined: Tue Aug 14, 2007 3:15 pm

Re: No lineups return for user

Postby 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.
jose-pr
 
Posts: 20
Joined: Sat Mar 21, 2015 1:40 pm


Return to Developer

Who is online

Users browsing this forum: No registered users and 3 guests