Integration through Apex
I am trying to make an integration between Salesforce and HubSpot via APIs.
I'm not understanding how to get HubSpot Access Token through APEX.
When I make API Call to this endpoint : https://app.hubspot.com/oauth/authorize?grant_type=authorization_code. I am getting 200 status code but response body is returned with some html code.
I'm trying to achieve this integration using batch class in apex.