Package Data | |
---|---|
Maintainer Username: | anakadote |
Maintainer Contact: | hello@endif.io (Taylor Collins) |
Package Create Date: | 2017-08-15 |
Package Last Update: | 2022-03-17 |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-11-15 15:01:46 |
Package Statistics | |
---|---|
Total Downloads: | 66 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
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
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
with(new BAMLTReferrals)->getReferrerToken(BAMLT_URI);
Other methods:
with(new BAMLTReferrals)->submit($customer_info, $input, $referrer_token);
with(new BAMLTReferrals)->getReferrals($referral_token);
with(new BAMLTReferrals)->getReferralConversions($referral_token);
with(new BAMLTReferrals)->getReferralAppointmentConversions($referral_token);
with(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.
Anakadote\BAMLTReferrals\BAMLTReferralsProvider::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'))