getIdentifier

Learn how to get the public identifier of the API key.

This method provides the public identifier of the API key.

Signature

This method has the following signature:

public function getIdentifier(): string

This method returns the public identifier of the key.

Example

Here is a basic example of how to use this method:

<?phpuse Croct\Plug\ApiKey;
$apiKey = ApiKey::parse('f47ac10b-58cc-4372-a567-0e02b2c3d479');
$identifier = $apiKey->getIdentifier();