public function Command::getToken in Twilio 8
Get the Twilio Auth Token.
Return value
string The configured Twilio Auth Token.
1 call to Command::getToken()
- Command::__construct in src/
Services/ Command.php - Initialize properties.
File
- src/
Services/ Command.php, line 46
Class
- Command
- Service class for Twilio API commands.
Namespace
Drupal\twilio\ServicesCode
public function getToken() {
if (empty($this->token)) {
$this->token = \Drupal::config('twilio.settings')
->get('token');
}
return $this->token;
}