getAppId

Learn how to get the application ID.

This method provides the ID of the application the SDK is connected to.

Signature

This method has the following signature:

public function getAppId(): string

This method returns the application ID as a string.

Example

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

<?phpuse Croct\Plug\Croct;
$croct = Croct::fromDotenv();$appId = $croct->getAppId();