PHP code example of eliksir / mailmojo-php-sdk
1. Go to this page and download the library: Download eliksir/mailmojo-php-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
eliksir / mailmojo-php-sdk example snippets
onfigure OAuth2 access token for authorization: mailmojo_auth
MailMojo\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$api_instance = new MailMojo\Api\WebhookApi();
$id = 56; // int | ID of the webhook.
try {
$api_instance->deleteWebhook($id);
} catch (Exception $e) {
echo 'Exception when calling WebhookApi->deleteWebhook: ', $e->getMessage(), PHP_EOL;
}
{
""eliksir/mailmojo-php-sdk": "0.5.0"
}
}