Logging and analyzing the flow of bird scooters in cottbus
run
python3 bird_api.py -m yourmail@address.com
this will create access and refresh tokens. After that you can use:
pyhton3 bird_api.py
for requesting and saving Cottbus based bird scooter locations and metadata to database/output_timestamp.json
all explained here in detail https://github.com/ubahnverleih/WoBike/blob/master/Bird.md
-
bird_api.get_validate_token(youremail)
-
the mail should be already registered with bird (at least it did not work to use some disposable mailaddress directly. I was not allowed to create a new account via api)
- bird_api.use_magiclink(validationtoken)
- the access_token is only valid for 1 day and can be refreshed with the refresh_token
- bird_api.get_locations(lat,lon,radius,access_token)
- update_accesstoken(refresh_token)