PHP code example of robertogallea / restado

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

    

robertogallea / restado example snippets


    Robertogallea\Restado\RestadoServiceProvider::class,
    

    'Restado' => Robertogallea\Restado\Facades\Restado::class,
    

    TADO_CLIENT_ID=<TADO_APP_ID>       // defaults to 1bb50063-6b0c-4d11-bd99-387f4a91cc46
    

    composer update robertogallea/restado
    

php artisan vendor:publish --provider="Robertogallea\Restado\RestadoServiceProvider" --tag=config

    $verificationData = Restado::getVerificationUrl();
    

    $access_token = Restado::authorize(['device_code' => $verificationData['device_code']]);
    

    $me = Restado::me($access_token);