You've already forked grav-plugin-listmonk
Initial commit
This commit is contained in:
20
vendor/adnanhussainturki/listmonk-php/test/init.php
vendored
Normal file
20
vendor/adnanhussainturki/listmonk-php/test/init.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
// Read files from .credentials
|
||||
try {
|
||||
$credentials = json_decode(file_get_contents(__DIR__ . '/.credentials'), true);
|
||||
} catch (\Throwable $th) {
|
||||
echo "Error reading credentials file: " . $th->getMessage();
|
||||
exit;
|
||||
}
|
||||
|
||||
// Create a new ListMonk instance
|
||||
$listMonk = new \AdnanHussainTurki\ListMonk\ListMonk(
|
||||
$credentials['serverUrl'],
|
||||
$credentials['username'],
|
||||
$credentials['password']
|
||||
);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user