PHP code example of octomated / laravel-vcom-api

1. Go to this page and download the library: Download octomated/laravel-vcom-api 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/ */

    

octomated / laravel-vcom-api example snippets


return [
    'url' => env('MC_VCOM_API_URL', 'https://api.meteocontrol.de'),
    'username' => env('MC_VCOM_API_USERNAME'),
    'password' => env('MC_VCOM_API_PASSWORD'),
    'api_key' => env('MC_VCOM_API_KEY'),
    'auth_mode' => env('MC_VCOM_API_AUTH_MODE', 'oauth'),
];

// let the dependency injection take care of resolving and configuring your VCOM-API client
// __construct(VcomApi $vcomApi)
// or make use of the facade for quick access
dump(VcomApi::systems()->get());

bash
php artisan vendor:publish --tag="laravel-vcom-api-config"