phpでAmazonWebサービスを利用してみた
Posted by admin | Filed under Api, php
とりあえずphpで読み込んでパースしてみました amazonスイーツランキングWarning: simplexml_load_file(http://ecs.amazonaws.jp/onca/xml?Service=AWSECommerceService&AWSAccessKeyId=0ETC98H2SJYS0Z5YEV02&Version=2008-04-07&AssociateTag=sopeoaff-22&ContentType=text%2Fxml&Operation=ItemSearch&SearchIndex=Grocery&BrowseNode=71314051&ResponseGroup=Medium&Sort=salesrank) [function.simplexml-load-file]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /var/www/html/sopeo/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()'d code on line 21
Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "http://ecs.amazonaws.jp/onca/xml?Service=AWSECommerceService&AWSAccessKeyId=0ETC98H2SJYS0Z5YEV02&Version=2008-04-07&AssociateTag=sopeoaff-22&ContentType=text%2Fxml&Operation=ItemSearch&SearchIndex=Grocery&BrowseNode=71314051&ResponseGroup=Medium&Sort=salesrank" in /var/www/html/sopeo/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()'d code on line 21
XMLパースエラー