Ich kann anscheinend von niemandem bei Plaid Hilfe bekommen.
Ich habe Probleme mit Produkten
Code: Select all
$client_id = getenv("PLAID_CLIENT_ID");
$secret = getenv("PLAID_CLIENT_SECRET");
$data = array();
$data["client_id"] = $client_id;
$data["secret"] = $secret;
$data["user"] = array(
"client_user_id" => '1'
);
$data["products"] = ["balance"];
$data["client_name"] = 'Client Name';
$data["country_codes"] = ["US"];
$data["language"] = 'en';
$endpoint = "https://production.plaid.com/link/token/create";
$data = json_encode($data);
$ch = curl_init($endpoint);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 45);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$raw_result = curl_exec($ch);
< /blockquote>
Also habe ich versucht, die Produkte zu ändern
Code: Select all
$client_id = getenv("PLAID_CLIENT_ID");
$secret = getenv("PLAID_CLIENT_SECRET");
$data = array();
$data["client_id"] = $client_id;
$data["secret"] = $secret;
$data["user"] = array(
"client_user_id" => '1'
);
$data["products"] = ["auth"];
$data["client_name"] = 'Client Name';
$data["country_codes"] = ["US"];
$data["language"] = 'en';
$endpoint = "https://production.plaid.com/link/token/create";
$data = json_encode($data);
$ch = curl_init($endpoint);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 45);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$raw_result = curl_exec($ch);
$result_array = json_decode($raw_result);