Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/271.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Php中的新Amazon Alexa.com Rank API中设置凭据?_Php_Json_Amazon Web Services_Alexa - Fatal编程技术网

如何在Php中的新Amazon Alexa.com Rank API中设置凭据?

如何在Php中的新Amazon Alexa.com Rank API中设置凭据?,php,json,amazon-web-services,alexa,Php,Json,Amazon Web Services,Alexa,我正在开发新的Alexa.com Api并对其进行测试,但在其中设置凭据时遇到了问题。我有一个访问密钥和秘密密钥,但没有会话令牌和过期。Idk从何处获取它们。 你也看到了吗 $awsCredentials = $result->get('Credentials'); 我找不到它的根来设置凭据 我有AlexaAPI调用的访问密钥和密钥。我已经为PHP3安装了AWS SDK protected function SetCredentials($awsCredentials) {

我正在开发新的Alexa.com Api并对其进行测试,但在其中设置凭据时遇到了问题。我有一个访问密钥和秘密密钥,但没有会话令牌和过期。Idk从何处获取它们。 你也看到了吗

$awsCredentials = $result->get('Credentials'); 
我找不到它的根来设置凭据

我有AlexaAPI调用的访问密钥和密钥。我已经为PHP3安装了AWS SDK

protected function SetCredentials($awsCredentials) {
      $this->accessKeyId = $awsCredentials["AccessKeyId"];
      $this->secretAccessKey = $awsCredentials["SecretKey"];
      $this->sessionToken = $awsCredentials["SessionToken"];
      $this->expiration = $awsCredentials["Expiration"];
    }
如何设置凭据

以下是urlinfo.php代码:


您的php版本有问题,或者您的帐户未经验证