I’m attempting to build and application utilizing oauth2 using WeatherFlow Tempest OAuth 2.0 Support. I am able to get Step 2 of the oauth2 setup, but when I POST to the endpoint to get the access key, I receive
{"error":"invalid_request","error_description":"Required input missing","status":{"status_code":2,"status_message":"Required input missing"},"errors":[{"message":"Required input missing"}]}
This is the curl command I use.
curl -X POST -H 'Content-Type: application/x-www-form-urlencoded' "https://swd.weatherflow.com/id/oauth2/token?grant_type=authorization_code&code=CODE_HERE&client_secret=CODE_HERE"
I get the same output regardless of what I POST.
Any help you could give would be greatly appreciated.