PHP code example of xoxoday / plumapi

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

    

xoxoday / plumapi example snippets



return [
    'xoplum_client_id' => env('xoplum_client_id', 'Set your Client ID'),
    'xoplum_client_secret' => env('xoplum_client_secret', 'Set your Client Secret'),
    'xoplum_env' => env('xoplum_env', 'sandbox'),   //change sandbox to production in case of production site 
    'xoplum_sandbox_url' => env('xoplum_sandbox_url', 'https://stagingaccount.xoxoday.com/chef/v1/'),
    'xoplum_production_url' => env('xoplum_production_url', 'https://accounts.xoxoday.com/chef/v1/'),
    'xoplum_product_id' => env('xoplum_product_id', 'Set Product ID'),
];


sh
$ php artisan vendor:publish  --tag="Plum_files"
sh

$ php artisan migrate