PHP code example of dynamikaweb / yii2-1doc-api

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

    

dynamikaweb / yii2-1doc-api example snippets

 
'components' => [
        'OneDocApi' => [
            'class' => 'dynamikaweb\api\OneDocApi',
            'client_auth' => '',
            'token' => '',
            'secret' => '',
        ],
],


class DemoController extends MyBaseController
{
    public function actionIndex()
    {   
        $api = Yii::$app->OneDocApi;
   
        $api->find([
            'method' => 'list',
            'documento' => 24,
            'grupo' => 19
        ]);

        return $this->render('index', ['api' => $api->run]);
    }
}