I am trying to access the Google Tasks API from my Raspberry Pi to synchronize Tasks.
Now comes a bit of a rant:
Because it should run on my headless Raspberry Pi, I cannot use a webbrowser there. In the Tasks API Docs it says I can use an API key. But I tried and it didn't work. I then learned, for the Tasks API, no API keys are allowed. Also stated here. Contradictory information in the docs, but even Google is not perfect. Okay.
Then I tried to use OAuth2 for devices with limited input. I couldn't run a web browser, but getting the device code from logs seemed okay. I could not find info why it shouldn't work so I tried it. But it also didn't work, as there are only a few scopes allowed. I guess I did not look well enough but come on. The docs are super confusing when it comes to authentication and what is allowed. Why would it let me add an OAuth limited-input Client in the Google Console, if it isn't even allowed?
So my question is: How do I authenticate a Google Tasks API App, that cannot open a webbrowser and go through the standard OAuth flow? Is it just not possible? Did I just do something wrong and Google is indeed perfect?