Problems with oauth2 token retrieval and severely outdated API documentation

Are you using client type public? Try the request without sending the secret