小编Par*_*ras的帖子

我试图在PHP中使用亚马逊api代码,但它给了我错误的不支持版本以下是我的代码

以下是我使用PHP与amazon api服务获取xml响应的代码,但它给出了我的错误,如下面的代码所示.

<?php

// Your AWS Access Key ID, as taken from the AWS Your Account page
$aws_access_key_id = "A*********A";

// Your AWS Secret Key corresponding to the above ID, as taken from the AWS Your Account page
$aws_secret_key = "ue*******s+";

// The region you are interested in
$endpoint = "webservices.amazon.in";

$uri = "/onca/xml";

$params = array(
    "Service" => "AWSECommerceService",
    "Operation" => "ItemSearch",
    "AWSAccessKeyId" => "AKIAJYSYWXDOF5CWIK5A",
    "AssociateTag" => "unity0f-21",
    "SearchIndex" => "All",
    "Keywords" => "iphone",
    "ResponseGroup" => "Images,ItemAttributes,Offers"
);

// …
Run Code Online (Sandbox Code Playgroud)

php amazon-s3 amazon-web-services

3
推荐指数
1
解决办法
941
查看次数

标签 统计

amazon-s3 ×1

amazon-web-services ×1

php ×1