510 B
510 B
Auto confirm TGVMax travels
How to ?
- Copy
src/example_config.py
tosrc/config.py
- Fill in the blanks
- Use the following python code: (within
python -i src/main.py
)
travels = [Travel(i) for i in r_to_data(travel_consultation(s, headers))]
travels[0].confirm(s, headers)
However, the response from the server is the same if the travel is successfully validated or not, but I didn't had any issue for now. Be sure to check if you receive any mail warning that it is not confirmed !