Interface with the BAM Lead Tracker Customer Referrer web service.
Interface with the BAM Lead Tracker Customer Referrer web service., (*1)
Begin by installing this package through Composer. Edit your project's composer.json
file to require anakadote/bamlt-referrals
., (*2)
"require": { "anakadote/bamlt-referrals": "dev-master" }
Next, update Composer from the Terminal:, (*3)
composer update
getReferrerToken(string $uri, bool $is_client_uri = false), (*4)
$is_client_uri - true for a Client URI, false for a Store URI, (*5)
(new BAMLTReferrals)->getReferrerToken(BAMLT_URI);
Other methods:, (*6)
(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);
To use with Laravel, add the service provider. Open config/app.php
and add a new item to the providers array., (*7)
Anakadote\BAMLTReferrals\BAMLTReferralsServiceProvider::class
This package is also accessible via a Laravel Facade so to use simply call its methods on the Facade "BAMLTReferrals":, (*8)
BAMLT::send(env('BAMLT_URI'), env('BAMLT_URI_IS_CLIENT_URI'))