You are here

public function SendinblueApiV3::getTemplate in SendinBlue 8

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

Get template by id.

Parameters

string $id: A template identification.

Return value

\Drupal\sendinblue\Tools\Model\GetSmtpTemplateOverview A template.

Overrides SendInBlueApiInterface::getTemplate

File

src/Tools/Api/SendinblueApiV3.php, line 197

Class

SendinblueApiV3
Sendinblue REST client.

Namespace

Drupal\sendinblue\Tools\Api

Code

public function getTemplate($id) {
  return new GetSmtpTemplateOverview(Json::decode($this->sibTransactionalEmailsApi
    ->getSmtpTemplate($id)));
}