Hi all, I’m looking to setup the tap-hubspot extra...
# getting-started
s
Hi all, I’m looking to setup the tap-hubspot extractor, but don’t know really how to get started with the OAuth2 token en redirect URI. Does this mean I need to set up some sort of webserver that acts as an intermediary that does the token exchange? Is there a more step-by-step guide available to set up this integration?
v
https://gitlab.com/meltano/meltano/-/issues/3403 Posted this just to note to document this at some point. For redirect URIs in the "oauth2 dance" if you're running this locally / on a server just use a redirect uri of localhost / 127.0.0.1. You do not need a webserver. The redirect uri literally does something like this
https://{redirect_uri}?code=asdlkfj14u109481u0r1f01jf01j
And you normally need to take that code, input it as another call to get a refresh token. The refresh token you store and you shouldn't have to do it again (depending on the apps implementation)
Because this is a one time process there's no need for the complicated web server stuff 🤷 I do think there should be some kind of generic tool that does this for folks each app would need it's own configuration for where its endpoints are and any special rules but that's a seperate idea
s
Thanks for the details, what do you mean by “input it as another call to get a refresh token.“?
v
I have to be a bit handwavy as it depends on the API. Normally you'll input that code above into a refresh token api request http parameter
c
Hey @steven_herweijer! Were you able to get this to work? I'm also getting started and struggling with how to implement this. I'm attempting to get it working in Postman first.