method getAccessToken documentation in bbn\Api\Permissions\MolliePermissionManager

Get access token from authorization code and save it in database for the chosen account name.

function(string $authorization_code, string $account_name) { $tokens = $this->apiPermission->getTokens($authorization_code); $access_token = $tokens['access_token']; $refresh_token = $tokens['refresh_token']; $expires_in = $tokens['expires_in']; // The number of seconds left before the access token expires. $this->saveTokensInDb($access_token, $refresh_token, $expires_in, $account_name); return $access_token; }

Get access token from authorization code and save it in database for the chosen account name. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.