HubSpot/hubspot-cli

Switch from using API Key auth to Private App Token auth

techieshark opened this issue · 0 comments

Description and Context

Hubspot has discontinued support for API Keys (as you know: #701).

Looking here, I don't see support for private app tokens.

Using hs cli 4.0.0

Steps to reproduce

Run

HUBSPOT_PORTAL_ID=your-id HUBSPOT_API_KEY=your-key hs fetch / ./hubspot-files --overwrite --use-env

and observe that it fails because api keys were deprecated.

Expected behavior

So now we'd expect something like this to work:

HUBSPOT_PORTAL_ID=your-id HUBSPOT_PRIVATE_APP_TOKEN=pat-xxxxx hs fetch / ./hubspot-files --overwrite --use-env

but it doesn't

Screenshots

Who to Notify