Tado - turn on/off user Geolocation

I’m migrating off Domoticz onto HASS an need to be able to turn Tado user Geolocation on/off for a specific user at specific times.

This can be done using the Tado V2 API as described here by turning off/on geoTrackingEnabled, but you need to do an OAUTH authentication first and get an authorisation token.

How would I do this in HASS (running on Docker)?