diff --git a/composer.json b/composer.json index 1b4c4d5..a174c7f 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,11 @@ "require": { "php": "^8.4", "spatie/laravel-package-tools": "^1.16", - "illuminate/contracts": "^10.0||^11.0||^12.0" + "illuminate/contracts": "^10.0||^11.0||^12.0", + "ext-curl": "*", + "ext-json": "*", + "league/oauth2-client": "^2", + "guzzlehttp/guzzle": "7.x" }, "require-dev": { "laravel/pint": "^1.14", @@ -71,4 +75,4 @@ }, "minimum-stability": "dev", "prefer-stable": true -} \ No newline at end of file +} diff --git a/config/sendy.php b/config/sendy.php index 37c4bb3..7c29c3f 100644 --- a/config/sendy.php +++ b/config/sendy.php @@ -1,6 +1,27 @@ env('SENDY_INSTALLATION_URL', 'https://your-sendy-installation.com'), + /* + |-------------------------------------------------------------------------- + | Sendy API Key + |-------------------------------------------------------------------------- + | + | This key is used to authenticate your application with the Sendy + | installation. You can find your API key in the Sendy settings. + | Make sure to keep this key secure and do not share it with anyone. + | It is recommended to use environment variables to store sensitive + | information like API keys. You can set the SENDY_API_KEY + */ + 'sendy_api_key' => env('SENDY_API_KEY', 'your-sendy-api-key'), ]; diff --git a/database/factories/ModelFactory.php b/database/factories/ModelFactory.php deleted file mode 100644 index b744bcc..0000000 --- a/database/factories/ModelFactory.php +++ /dev/null @@ -1,19 +0,0 @@ -id(); - - // add fields - - $table->timestamps(); - }); - } -}; diff --git a/resources/views/.gitkeep b/resources/views/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/src/Commands/LaravelSendyCommand.php b/src/Commands/LaravelSendyCommand.php deleted file mode 100644 index 4fbe7f4..0000000 --- a/src/Commands/LaravelSendyCommand.php +++ /dev/null @@ -1,19 +0,0 @@ -comment('All done'); - - return self::SUCCESS; - } -} diff --git a/src/DTOs/CompaignDTO.php b/src/DTOs/CompaignDTO.php new file mode 100644 index 0000000..67fd6e9 --- /dev/null +++ b/src/DTOs/CompaignDTO.php @@ -0,0 +1,10 @@ +name('laravel-sendy') - ->hasConfigFile() - ->hasViews() - ->hasMigration('create_laravel_sendy_table') - ->hasCommand(LaravelSendyCommand::class); + ->hasConfigFile(); } } diff --git a/src/Resources/Brands.php b/src/Resources/Brands.php new file mode 100644 index 0000000..c7f9d2b --- /dev/null +++ b/src/Resources/Brands.php @@ -0,0 +1,11 @@ +