PHP code example of capeandbay / zingfit

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

    

capeandbay / zingfit example snippets


return [
    'production_url' => 'https://api.zingfit.com',
    'sandbox_url' => 'https://api.zingfitlab.com',
    'client_id' => env('ZINGFIT_CLIENT_ID', '__CLIENT_ID__'),
    'client_secret' => env('ZINGFIT_CLIENT_SECRET', '__SECRET__'),
    'client_tenant_id' => env('ZINGFIT_TENANT_ID', '__TENANT__')
];

    use CapeAndBay\ZingFit\ZingFit;

    public function __construct(ZingFit $zingfit)
    {
        /*  ... code logic here ...*/
    }

    $zingFit->getAllSeriesForSite($region_id, $site_id)

    php artisan vendor:publish --tag="zingfit.migrations"
    

    php artisan migrate
    
bash
php artisan vendor:publish --provider="CapeAndBay\ZingFit\ZingFitServiceProvider" --tag="config"