There is the generateAccessToken method of the ApiClient for generating an access token from the authorization code.
There is also the platform documentation's "Use refresh tokens" section that says that changing the grant_type from authorization_code to refresh_token and supplying a refresh_token instead of code param should make the same flow work for refreshing one.
There is however no way that I can see to refresh a token with the available methods in this package.
Am I just missing it?
Is it not included for a reason? (the php client seems to have it, the java client seems to be also missing it)
There is the generateAccessToken method of the ApiClient for generating an access token from the authorization code.
There is also the platform documentation's "Use refresh tokens" section that says that changing the
grant_type
fromauthorization_code
torefresh_token
and supplying arefresh_token
instead ofcode
param should make the same flow work for refreshing one.There is however no way that I can see to refresh a token with the available methods in this package.