Skip to content

pawonpawon/unbounce-api-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unbounce Api Client

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

About

A Laravel Package to communicate with the Unbounce API

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PHP 100.0%