Custom Lineup Not Appearing in /status Route

Custom Lineup Not Appearing in /status Route

Postby mstone121 » Sat Jun 02, 2018 10:11 am

Hello,

I have an OTA line up with all the channels I can get from my location enabled and all the others disabled:

Image

When I make a GET request to https://json.schedulesdirect.org/20141201/status, I don't see my line up:

Code: Select all
{
  "account": {
    "expires": "2018-06-08T20:14:52Z",
    "messages": [
     
    ],
    "maxLineups": 4
  },
  "lineups": [
   
  ],
  "lastDataUpdate": "2018-06-02T04:18:24Z",
  "notifications": [
   
  ],
  "systemStatus": [
    {
      "date": "2015-09-08T00:00:00Z",
      "status": "Online",
      "message": "No known issues."
    }
  ],
  "serverID": "20141201.web.X",
  "datetime": "2018-06-02T17:03:50Z",
  "code": 0
}


I know there is functionality within the api to register a line up to a user, but I was hoping the custom line up would be added automatically to save me the effort of writing out each channel individually. Is there a way to export a custom line up from http://www.schedulesdirect.org?

Also, entirely unrelated, but the /token route is not returning a "Access-Control-Allow-Origin" header which means requests from anywhere outside of json.schedulesdirect.org are blocked by any modern browser.

Matt
mstone121
 
Posts: 5
Joined: Sat Jun 02, 2018 8:40 am

Re: Custom Lineup Not Appearing in /status Route

Postby rmeden » Tue Jun 05, 2018 8:48 pm

The lineup add and edit feature is for use with the older datadirect service (SD-DD), not the JSON service.

You need to add a lineup using the JSON API.

Robert
rmeden
SD Board Member
 
Posts: 1507
Joined: Tue Aug 14, 2007 2:31 pm
Location: Cedar Hill, TX

Re: Custom Lineup Not Appearing in /status Route

Postby mstone121 » Wed Jun 06, 2018 7:33 am

Ah, okay. I'll look into that.

Is there anything that can be done about the "Access-Control-Allow-Origin" header? I noticed that the '/lineups' route also doesn't allow cross origin requests.

Matt
mstone121
 
Posts: 5
Joined: Sat Jun 02, 2018 8:40 am


Return to Developer

Who is online

Users browsing this forum: No registered users and 4 guests

cron