0

我正在尝试检查我的 Coinbase API。我尝试过制作一堆不同的 API 密钥,但总是遇到同样的错误:

这是我的代码

 <?php

//echo  __DIR__ ;
require_once( __DIR__ . '/CoinBaseApi/vendor/autoload.php');
include "sendMoneyByCB.php";

use Coinbase\Wallet\Client;
use Coinbase\Wallet\Configuration;
use Coinbase\Wallet\Enum\CurrencyCode;
use Coinbase\Wallet\Resource\Transaction;
use Coinbase\Wallet\Value\Money;

$apiKey='safgzsggzsg';
$apiSecret='NTf4n7CsgWSQWqlxzgr1Igrzsggzd99';

$configuration = Configuration::apiKey($apiKey, $apiSecret);
$client = Client::create($configuration);

echo "$configuration";
?>

和错误

{"errors":[{"id":"authentication_error","message":"invalid api key"}]}
4

0 回答 0