Private apps support
kk-no opened this issue · 1 comments
kk-no commented
Is your feature request related to a problem? Please describe.
HubSpot added private apps (scoped api key) auth.
go-hubspot needs to support this as well.
https://developers.hubspot.com/docs/api/private-apps
Sample of the api call using private apps from HubSpot.
axios.get('https://api.hubapi.com/crm/v3/objects/contacts',
{
headers: {
'Authorization': `Bearer ${YOUR_TOKEN}`,
'Content-Type': 'application/json'
}
},
(err, data) => {
// Handle the API response
}
);
Describe the solution you'd like
As with API key and OAuth, we should be able to pass private apps token to the client in the form of an Option.
Describe alternatives you've considered
Additional context
On another note, APIKey will be discontinued on November 30 2022.
https://developers.hubspot.com/changelog/upcoming-api-key-sunset