Simple tutorial #40
Unanswered
CesarSilvaCP
asked this question in
Q&A
Replies: 1 comment 7 replies
-
|
So, the api is looking for a user object and you are trying to pass the $user_id instead. You might need to do this first: And then your call: |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! Glad to find a PHP version!
I'm trying to do the first task, this is my code:
======
$plaid = new Plaid(
'.....',
'...',
'sandbox'
);
$token = $plaid->tokens->create("Plaid App", "es", ["US","CA"], $user_id,["auth"]);
=====
But I'm having the following error:
Fatal error: Uncaught TypeError: Argument 4 passed to TomorrowIdeas\Plaid\Resources\Tokens::create() must be an instance of TomorrowIdeas\Plaid\Entities\User, null given, called in C:\xampp\htdocs\agint\index.php on line 22 and defined in C:\xampp\htdocs\agint\vendor\tomorrow-ideas\plaid-sdk-php\src\Resources\Tokens.php:27 Stack trace: #0 C:\xampp\htdocs\agint\index.php(22): TomorrowIdeas\Plaid\Resources\Tokens->create('Plaid App', 'es', Array, NULL, Array) #1 C:\xampp\htdocs\agint\index.php(26): CalTok() #2 {main} thrown in C:\xampp\htdocs\agint\vendor\tomorrow-ideas\plaid-sdk-php\src\Resources\Tokens.php on line 27
======
I'm certainly doing something wrong, I'm searching google if I find any examples using this repository, but I haven't found any examples.
==
Are there any examples available?
Beta Was this translation helpful? Give feedback.
All reactions