Closed bbigras closed 9 years ago
That's odd. I will check to see why it's tagging the station as not in your lineup when it is.
Can you test now? There was a misplaced else.
{
"14786": {
"2015-07-27": {
"code": 0,
"message": "OK",
"lastModified": "2015-07-27T17:05:20Z",
"md5": "Yh7DTySVZHTM9O9nr+F3FA"
}
}
}
It works but there's a small problem. The lastModified's format is not the same when there's an error and when there's none. If the format is the same it's easier to decode using a struct.
On Mon, Jul 27, 2015 at 2:22 PM, Bruno Bigras notifications@github.com wrote:
It works but there's a small problem. The lastModified's format is not the same when there's an error and when there's none. If the format is the same it's easier to decode using a struct.
Should be fixed now.
Nice, thanks!
1: get status
curl --header "token: <mytoken>" https://json.schedulesdirect.org/20141201/status
2: get lineup
curl --header "token: <mytoken>" https://json.schedulesdirect.org/20141201/lineups/CAN-0005993-X
3 : get md5
curl --header "token: <mytoken>" -X POST -d '[{"stationID": "14786", "date": ["2015-07-27"]}]' https://json.schedulesdirect.org/20141201/schedules/md5