Authentication

In order to access API endpoints you can pass your API Token as an Authorization header with type Token.

curl -H 'Authorization: Token YOUR_SERVER_TOKEN' \
'https://tfe-opendata.com/api/v1/timetables/36235979'
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://tfe-opendata.com/api/v1/timetables/36235979');
xhr.setRequestHeader("Authorization", "Token YOUR_SERVER_TOKEN")
xhr.onload = function() {
    if (xhr.status === 200) {
        alert(xhr.responseText);
    }
    else {
        alert('Request failed.  Returned status of ' + xhr.status);
    }
};
xhr.send();

The command above will retrieve the full, current seven-day timetable for the northbound stop at Elm Row.