When you face {“error”:”unsupported_grant_type”,”error_description”:”grant type not supported”} error, put all the information in the body instead of header. Check the following image for reference.

1. If you are using POST, check whether the Content-Type is set as application/x-www-form-urlencoded
2. Check whether setBody() has correct body data.