1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-22 09:21:34 +02:00
invoiceninja/app/Http/Controllers/Bank/YodleeController.php
David Bomba c5269832f9 Padding
2022-08-06 18:11:43 +10:00

41 lines
949 B
PHP

<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Http\Controllers\Bank;
use App\Helpers\Bank\Yodlee\Yodlee;
use App\Http\Controllers\BaseController;
use Illuminate\Http\Request;
class YodleeController extends BaseController
{
public function auth(Request $request)
{
// create a user at this point
// use the one time token here to pull in the actual user
//store the user_account_id on the accounts table
$yodlee = new Yodlee(true);
$data = [
'access_token' => $yodlee->getAccessToken('sbMem62e1e69547bfb1'),
'fasttrack_url' => $yodlee->fast_track_url
];
return view('bank.yodlee.auth', $data);
}
}