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

41 lines
949 B
PHP
Raw Normal View History

2022-07-28 06:09:13 +02:00
<?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;
2022-07-28 08:29:42 +02:00
use App\Helpers\Bank\Yodlee\Yodlee;
2022-07-28 06:09:13 +02:00
use App\Http\Controllers\BaseController;
use Illuminate\Http\Request;
class YodleeController extends BaseController
{
public function auth(Request $request)
{
2022-08-06 10:11:43 +02:00
// 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
2022-07-28 08:29:42 +02:00
$yodlee = new Yodlee(true);
2022-07-28 06:09:13 +02:00
$data = [
2022-07-28 09:33:47 +02:00
'access_token' => $yodlee->getAccessToken('sbMem62e1e69547bfb1'),
2022-07-28 08:29:42 +02:00
'fasttrack_url' => $yodlee->fast_track_url
2022-07-28 06:09:13 +02:00
];
return view('bank.yodlee.auth', $data);
}
}