PHP code example of palpalani / bayrewards-laravel
1. Go to this page and download the library: Download palpalani/bayrewards-laravel library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
palpalani / bayrewards-laravel example snippets
use Palpalani\BayRewards\Facades\BayRewards;
$bayRewards = BayRewards::client();
use Palpalani\BayRewards\BayRewards;
class YourController
{
public function index()
{
$bayRewards = BayRewards::client();
// Use $bayRewards...
}
}
use Palpalani\BayRewards\Facades\BayRewards;
$bayRewards = BayRewards::client();
$store = $bayRewards->storeDetails()->get('<Store-Access-Token>');
use Palpalani\BayRewards\Facades\BayRewards;
$bayRewards = BayRewards::client();
$features = $bayRewards->getStoreFeatures()->get('<Store-Access-Token>');