如何使用 Ruby gem 刷新 Hubspot oauth 访问令牌

问题描述 投票:0回答:0

使用 Hubspot Ruby get,16.4.0:https://github.com/HubSpot/hubspot-api-ruby/tree/v16.4.0

我们可以成功oauth,但是不能刷新token:

client = ::Hubspot::Client.new(access_token:  '{oauth-access-token}')
client.o_auth.refresh_tokens_api.get_refresh_token

LoadError: cannot load such file -- hubspot/codegen/oauth/models/token

有什么想法吗?

ruby-on-rails ruby api hubspot hubspot-api
© www.soinside.com 2019 - 2024. All rights reserved.