Can no longer refresh access token


#1

Recently we realized our automated process to pull contacts, companies, and deals was no longer getting extracts, apparently we were no longer able to generate an access token from our refresh token. The last successful pull was 2018-01-04. I believe this is due to the implementation of oauth2 and deprecation of the old OAuth v1. In testing what I believe should be a valid request I get a '400' 'Bad Request' errror. Here are the connection parameters:
Header: 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'
HTTPS Post to api.hubapi.com/oauth/v1/token
Body: grant_type=refresh_token&client_id=xxxxxxxxxxxx&client_secret=yyyyyyyyyyyyyy&redirect_uri=http://www.businessol.com/&refresh_token=zzzzzzzzzzzzzz

Also it would seem I can no longer access the app that I created years ago for the api.


#2

Hi @dgg,

You're correct, OAuth1 has been deprecated in favor of OAuth2 (see below). That request appears to be valid for OAuth2 though; are you using your OAuth1 refresh token with that endpoint? OAuth1 refresh tokens are incompatible with OAuth2; you'll need to re-auth your app to obtain an OAuth2 refresh token.

I can help with accessing your developer account. Can you direct message me the Hub ID / app ID / client ID associated with the developer account?


#3

Hi Derek, did you get this?
reference: Can no longer refresh access token

I created the app some time ago and really have had no cause to revisit the developer site for quite a while.
I used dana.gray@businessol.com login to get to my developer app before, now when I log in I get

https://app.hubspot.com/myaccounts-beta by which I can access a couple of domains.
One of the domains takes me to : https://app.hubspot.com/developer/4392941
But I don't think that is correct

App Name: bol_access
App TypeCustom
App ID: 29193
Portal
897446 - developer-portal-956c3664-c8d3-43b2-bd66-157b953c2f6e.com
Client ID
8f233066-45ea-11e5-848c-210d749c2f57

Thanks for your help on this matter!
Dana

Any news?