campaigningbureau / unbounce-api-client
A Laravel Package to communicate with the Unbounce API
v0.1
2018-03-05 12:59 UTC
Requires
- guzzlehttp/guzzle: ^6.3
- illuminate/support: ~5
Requires (Dev)
- mockery/mockery: ^0.9.9
- orchestra/testbench: ^3.6
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2024-11-21 22:52:10 UTC
README
Description
A library to consume the Unbounce Api in your Laravel Application.
Installation
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
Configuration
After publishing the config file you can edit them in config/unbounce.php
.
Make sure you configure at least api_key
.
Usage
Subaccounts
Load subaccounts as a Collection of Subaccount
Objects:
$account_id = 'myAccountId'; $subaccounts = Unbounce::subaccounts($account_id);
Pages
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();
Still missing
- More Subaccounts informations:
- Domains
- Leads
- Other Resource Routes
- OAuth AuthenticationDriver