Reputation: 11
I'm trying to check my Coinbase API. I have tried making a bunch of different API keys, keep getting the same error:
this is my Code
<?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";
?>
and the error
{"errors":[{"id":"authentication_error","message":"invalid api key"}]}
Upvotes: 0
Views: 580