Skip to content

HubSpotOAuthApi Authorize and Refresh Methods Return Null Token with Valid Input #102

Open

Description

@mdbrooks48

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:

  1. Get a valid Authorization code or Refresh Token (via Postman).
  2. Create an instance of HubSpotApi with valid ClientId, Client Secret, and App Ids for a HubSpot Application.
  3. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions