public function SendinblueManager::updateAccessToken in SendinBlue 8
Same name and namespace in other branches
- 8.2 src/SendinblueManager.php \Drupal\sendinblue\SendinblueManager::updateAccessToken()
Update access token.
Return value
string An access token information.
3 calls to SendinblueManager::updateAccessToken()
- SendinblueManager::generateCampaignLogin in src/
SendinblueManager.php - Generate Campaign page when log in.
- SendinblueManager::generateListLogin in src/
SendinblueManager.php - Generate List page when log in.
- SendinblueManager::generateStatisticLogin in src/
SendinblueManager.php - Generate Statistic page when log in.
File
- src/
SendinblueManager.php, line 407
Class
- SendinblueManager
- Basic manager of module.
Namespace
Drupal\sendinblueCode
public function updateAccessToken() {
$config = $this->configFactory
->getEditable('sendinblue.settings');
// Get new access_token.
$access_token = $this->sendinblueMailin
->getAccessTokens();
$config
->set(self::ACCESS_TOKEN, $access_token);
return $access_token;
}