PHP code example of ljpc / jumboextras

1. Go to this page and download the library: Download ljpc/jumboextras 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/ */

    

ljpc / jumboextras example snippets


$jumboExtraInstance = new \LJPc\JumboExtras\Calls\JumboExtras();
$jumboExtraInstance->login($username, $password);

$jumboExtraInstance = new \LJPc\JumboExtras\Calls\JumboExtras();
$jumboExtraInstance::setAccessToken($accessToken);
$jumboExtraInstance::setRefreshToken($refreshToken);

$jumboExtraInstance->refreshToken();

$balance = $jumboExtraInstance->getBalance();

$savingOffers = $jumboExtraInstance->getSavingOffers();

$redeemOffers = $jumboExtraInstance->getRedeemOffers();

$homescreen = $jumboExtraInstance->getHomescreen();

$profile = $jumboExtraInstance->getProfile();

$jumboExtraInstance->updateProfile( bool $purchaseStamps, bool $promotionStamps, bool $printReceipt );