anakadote/bamlt-referrals

Interface with the BAM Lead Tracker Customer Referrer web service.
69
Install
composer require anakadote/bamlt-referrals
PHP:>=5.4.0
Last Updated:Mar 17, 2022
Links: GitHub  ·  Packagist
Maintainer: anakadote

BAM Lead Tracker Service Class

Interface with the BAM Lead Tracker Customer Referrer web service.

Begin by installing this package through Composer. Edit your project's composer.json file to require anakadote/bamlt-referrals.

"require": {
	"anakadote/bamlt-referrals": "dev-master"
}

Next, update Composer from the Terminal:

composer update

Usage / Methods

getReferrerToken(string $uri, bool $is_client_uri = false)

  • $uri - (required) BAM Lead Tracker URI

  • $is_client_uri - true for a Client URI, false for a Store URI

      (new BAMLTReferrals)->getReferrerToken(BAMLT_URI);
    

Other methods:

(new BAMLTReferrals)->submit($customer_info, $input, $referrer_token);
(new BAMLTReferrals)->getReferrals($referral_token);
(new BAMLTReferrals)->getReferralConversions($referral_token);
(new BAMLTReferrals)->getReferralAppointmentConversions($referral_token);
(new BAMLTReferrals)->getReferralTransactionConversions($referral_token);

Laravel

To use with Laravel, add the service provider. Open config/app.php and add a new item to the providers array.

Anakadote\BAMLTReferrals\BAMLTReferralsServiceProvider::class

This package is also accessible via a Laravel Facade so to use simply call its methods on the Facade "BAMLTReferrals":

BAMLT::send(env('BAMLT_URI'), env('BAMLT_URI_IS_CLIENT_URI'))

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

641,106,524 9,700
laravel/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

502,645,077 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

418,291,778 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

394,964,158 4,660