A library to consume the Unbounce Api in your Laravel Application.
First require in Composer:
composer require campaigningbureau/unbounce-api-client
The Service Provider is found via Laravel Autodiscovery.
Then publish the config settings:
php artisan vendor:publish
After publishing the config file you can edit them in config/unbounce.php.
Make sure you configure at least api_key.
Load subaccounts as a Collection of Subaccount Objects:
$account_id = 'myAccountId';
$subaccounts = Unbounce::subaccounts($account_id);By default the pages of a subaccount are not loaded. To load them use the following command:
$account_id = 'myAccountId';
$subaccounts = Unbounce::subaccounts($account_id);
$my_subaccount = $subaccounts->first();
$pages = $my_subaccount->getPages();- More Subaccounts informations:
- Domains
- Leads
- Other Resource Routes
- OAuth AuthenticationDriver