PHP code example of nikapps / bazaar-push

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

    

nikapps / bazaar-push example snippets


"credentials" => [
       [
           "email" => "[email protected]",
           "password" => "secret"
       ],
       [
           "email" => "[email protected]",
           "password" => "top secret"
       ], 
       .
       .
       .
   ]

"pushbulletKeys" => [
       [
           "key" => "FirstAccountKey",
           "accounts" => ['[email protected]'] // declare CafeBazaar accounts as an array which you want to get reports from them
           "devices" => ['LGENexus 4'] // declare your devices as an array which you want to get pushes on them
       ],
       [
           "key" => "SecondAccountKey",
           "accounts" => null, // you can pass null to get reports from all of your declared CafeBazaar accounts in credentials section
           "devices" => null // you can pass null to get pushes on all of the devices associated with this PushBullet account.
       ],
       .
       .
       .
   ],

php artisan migrate --package="nikapps/bazaar-push"

php artisan config:publish nikapps/bazaar-push

php artisan

*/20 * * * * php /absolute/path/to/your/artisan bazaarpush:sale >/dev/null 2>&1