Domsblog
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Naja im Eneffekt sind es nur ein paar Zeilen code:
error_reporting(E_ALL); include('aws_signed_request.php'); $public_key = 'deinpublikkey'; $private_key = 'deinprivatkey'; $associate_tag = 'duhalt-21'; // generate signed URL $request = aws_signed_request('de', array( 'Operation' => 'ItemLookup', 'ItemId' => 'B00T2U7R7I', 'ResponseGroup' => 'Small'), $public_key, $private_key, $associate_tag); // do request (you could also use curl etc.) $response = @file_get_contents($request); if ($response === FALSE) { echo "Request failed.\n"; } else { // parse XML $pxml = simplexml_load_string($xml); $pxml = simplexml_load_string($response); $all = &$pxml->Items->Item; if ($pxml === FALSE) { echo "Response could not be parsed.\n"; } else { //if($xml->Items->Item) foreach($xml->Items->Item as $item) if (isset($pxml->Items->Item->ItemAttributes->Title)) { echo $pxml->Items->Item->ItemAttributes->Title, "\n"; } } }
Hier ist noch die ben?tigte ?nderung der aws_signet_request.php
function aws_signed_request($region, $params, $public_key, $private_key, $associate_tag=NULL, $version='2011-08-01')
so sollte es schon tun ??
Uh ich hab da aber noch etwas zu gefunden schau mal:
https://www.ads-software.com/support/topic/invalid-argument-supplied-for-foreach-pluginswpzonwpzonphp-on-line-149?replies=2Ich hoffe es hilft dir weiter ??
LG Dom
Also ich habe es eben mal bei mir Getestet, bei mir funktioniert es einwandfrei mit deinem Code.
Forum: Plugins
In reply to: [WpZon - Amazon Affiliate Plugin] Can i see demo
Viewing 5 replies - 1 through 5 (of 5 total)