You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use TomorrowIdeas\Plaid\Plaid;
$plaid = new \TomorrowIdeas\Plaid\Plaid("6..............572", 'd2db9e................", "sandbox");
$token = $plaid->tokens->create('client_name', 'en', ["US"], 22, ['auth']);
echo $token ;
[2022-07-28T13:01:13.333760+00:00] log.DEBUG: Slim Application Error Type: TypeError Code: 0 Message: TomorrowIdeas\Plaid\Resources\Tokens::create(): Argument #4 ($user) must be of type TomorrowIdeas\Plaid\Entities\User, int given, called in /home/finance/public_html/views/PlaidCreateLinkToken.php on line 21 File: /home/finance/public_html/vendor/tomorrow-ideas/plaid-sdk-php/src/Resources/Tokens.php Line: 30 Trace: #0 /home/finance/public_html/views/PlaidCreateLinkToken.php(21): TomorrowIdeas\Plaid\Resources\Tokens->create('client_name', 'en', Array, 22, Array) #1
If I use
$item = $plaid->createLinkToken('name of user', 'en', ['US'],'14',["auth"]);
print_r($item);
Can we optimize the Tokens create function to support more parameters?
The text was updated successfully, but these errors were encountered: