Got it. So here’s my POST command in the code:
client.print(String(“POST “) + OAUTHURL + “?client_id=” + CLIENTID + “&client_secret=” + CLIENTSECRET +”&grant_type=client_credentials\r\n” +
“Content-Type: application/json” +
“Accept: application/json”);
Have I messed something up there? Or missed something? Or should the string I send the https connection read more:
curl -X POST …
with some -H lines as well?