Exeu/Amazon-ECS-PHP-Library — Issue #28: price issue
Author: xofth
Created: 2012-01-21 08:34:54+00:00
State: open

in responce i'm getting all responce.. but i'm unable to get the price...
i try as your demo is...
can u share your demo code.. here is mine..
i'm begginer so this is my logic.. all things are working fine except price
associateTag(AWS_ASSOCIATE_TAG);

// Want to have more Repsonsegroups? And Maybe you want to start with resultpage 2?
$response = $amazonEcs->responseGroup('Small,Images')->optionalParameters(array('ItemPage' => $page))->category($category)->search($q);
$response=json_encode($response);
$data = json_decode($response);

$final="[";
for($i=0;$iItems->Item);$i++){

$title=$data->Items->Item[$i]->ItemAttributes->Title;//getting for limited charecters

$final.='{"Title":"'.substr($title,0,22).'..",
"url":"'.$data->Items->Item[$i]->DetailPageURL.'",
"img":"'.$data->Items->Item[$i]->MediumImage->URL.'",
"price":"'.$data->Items->Item[$i]->ItemAttributes->ListPrice->FormattedPrice.'"
},';
}
$final = substr($final, 0, -1); //trim last comma from string
$final.="]";
echo $final;
exit();
}
catch(Exception $e)
{
echo $e->getMessage();
}
?>