Describe the bug
The HubSpotOAuthApi Authorize and Refresh methods return null with valid authorization codes and refresh token values.
The root cause is that RestSharp is returning UnsupportedMediaType (415) response code.
Repro Steps
Steps to reproduce the behavior:
Get a valid Authorization code or Refresh Token (via Postman).
Create an instance of HubSpotApi with valid ClientId, Client Secret, and App Ids for a HubSpot Application.
Call Authorize with the Authorization Code or Refresh with a valid Refresh Token (or a new instance of HubSpotToken with a RefreshToken property with a valid Refresh Token).
Expected behavior
A valid HubSpotToken with the RefreshToken and AccessToken properties populated
Describe the bug The HubSpotOAuthApi Authorize and Refresh methods return null with valid authorization codes and refresh token values. The root cause is that RestSharp is returning UnsupportedMediaType (415) response code.
Repro Steps Steps to reproduce the behavior:
Expected behavior A valid HubSpotToken with the RefreshToken and AccessToken properties populated