You are here

public function EmailTemplates::get in Auth0 Single Sign On 8.2

Get an email template by name. See docs @link below for valid names and fields. Required scope: "read:email_templates"

@link https://auth0.com/docs/api/management/v2#!/Email_Templates/get_email_tem...

Parameters

string $templateName - the email template name to get (see constants defined for this class).:

Return value

array

Throws

\Exception - if a 200 response was not returned from the API.

File

vendor/auth0/auth0-php/src/API/Management/EmailTemplates.php, line 85

Class

EmailTemplates
Class EmailTemplates. Handles requests to the Email Templates endpoint of the v2 Management API.

Namespace

Auth0\SDK\API\Management

Code

public function get($templateName) {
  return $this->apiClient
    ->method('get')
    ->addPath('email-templates', $templateName)
    ->call();
}