PHP code example of mailium / oauth-client-laravel

1. Go to this page and download the library: Download mailium/oauth-client-laravel 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/ */

    

mailium / oauth-client-laravel example snippets


    protected $middlewareGroups = [
        'web' => [
            \App\Http\Middleware\EncryptCookies::class,
            \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
            \Illuminate\Session\Middleware\StartSession::class,
            \Illuminate\View\Middleware\ShareErrorsFromSession::class,
            \App\Http\Middleware\VerifyCsrfToken::class,
            \MailiumOauthClient\MailiumOauthClientLaravel\MailiumOauthClientMiddleware::class,
        ],

php artisan vendor:publish

php artisan migrate

      $this->accId = $request->attributes->get('mailium_app_accid');

      $this->mailiumAppUser = $request->attributes->get('mailium_app_user');

      $this->justInstalled = $request->attributes->get('mailium_app_just_installed');

      $this->apiClient = $request->attributes->get('mailium_api_client');

      $this->apiClient->run('List.GetList',array());