适用于Amazon Instant Video的亚马逊产品API

时间:2013-05-17 15:31:42

标签: php api amazon

使用亚马逊产品API,我希望获得“DVD”和“亚马逊即时视频”类别中的首批产品,并附带关键字“我的电影”。

感谢https://github.com/Exeu/Amazon-ECS-PHP-Library适用于DVD:

$amazonEcs = new AmazonECS(AWS_API_KEY, AWS_API_SECRET_KEY, 'com', AWS_ASSOCIATE_TAG);
$amazonEcs->associateTag(AWS_ASSOCIATE_TAG);
$amazonEcs->returnType(AmazonECS::RETURN_TYPE_ARRAY);
$response = $amazonEcs->responseGroup('Small')->category('DVD')->search('my movie');

但是我找不到用来获取视频点播的类别...

1 个答案:

答案 0 :(得分:0)

好的,我设法做了我想做的事。 VOD没有类别,您必须使用nodeid作为search的第二个参数(但您仍需要先提供类别):

$amazonEcs = new AmazonECS(AWS_API_KEY, AWS_API_SECRET_KEY, 'com', AWS_ASSOCIATE_TAG);
$amazonEcs->associateTag(AWS_ASSOCIATE_TAG);
$amazonEcs->returnType(AmazonECS::RETURN_TYPE_ARRAY);
$response = $amazonEcs->category('DVD')->responseGroup('Large')->search('my movie', 2858905011);