<?php
/*
To get the Sample mp3 files of given ASIN from Amazon using Amazon APIs.
From : Prabhjit Singh
Company : Xoriant Solution.
*/
ini_set('max_execution_time',0);
include_once ("include/amazon_music_album_api_class.php");
$asin=$_REQUEST['q'];
$obj = new AmazonProductAPI ( );
try {
$response=$obj->GetMusicTracks($asin);
echo "<pre>";
print_r(json_decode($response));
} catch (Exception $e) {
echo 'Caught exception: ', $e->getMessage(), "\n";
}
?>
|