Hi there,
As a NOOB is anyone able to give me any advice on the syntax I need to follow, using the GetDepartureBoard response (found here
https://lite.realtime.nationalrail.co.uk/OpenLDBWS/) so I could just print the response locally to start with, given the following:
1. I'm running this from a raspberry pi using python.
2. I've received from token from national rail
3. I've executed the line of python code below and received a <Response [200]> back, which from the HTTP status code definitions gives me small hope!
token = "MyPrivateTokenWouldGoHere"
url = "
https://lite.realtime.nationalrail.co.uk/OpenLDBWS/wsdl.aspx?ver=2015-05-14"
import requests
r = requests.get(url,auth=(token,''))
print r
I have tried a variety of different ways to include the GetDepartureBoard response, either as a separate call that follows on immediately after r = r.requests.get(url,auth=(token1,'')) or within the parenthesis of the command.
Thanks
Chris