You are here

public function SendinblueApiV2::getAccessTokens in SendinBlue 8

Same name and namespace in other branches
  1. 8.2 src/Tools/Api/SendinblueApiV2.php \Drupal\sendinblue\Tools\Api\SendinblueApiV2::getAccessTokens()

Get the access token.

Return value

string An access token information.

Overrides SendInBlueApiInterface::getAccessTokens

File

src/Tools/Api/SendinblueApiV2.php, line 291

Class

SendinblueApiV2
Sendinblue REST client.

Namespace

Drupal\sendinblue\Tools\Api

Code

public function getAccessTokens() {
  return $this->sIBHttpClient
    ->get("account/token", "")['data']['access_token'];
}