官方coinbase-php库中的“ 401未经授权:无效签名”

时间:2019-05-31 19:56:24

标签: php coinbase-api coinbase-php

我正在尝试定义coinbase客户端,但是API始终会发送auth错误。

密钥和机密是API仪表板上的密钥和机密,已选中。 没有ipwhitelist。

 $configuration = Configuration::apiKey("xx", "xx");

 $this->client = Client::create($configuration);

我收到以下错误消息:

Fatal error: Uncaught GuzzleHttp\Exception\ClientException: 
Client error: `GET https://api.coinbase.com/v2/accounts/` resulted in a     
`401 Unauthorized` response: {"errors": 
[{"id":"authentication_error","message":"invalid signature"}]}

0 个答案:

没有答案