Login   Register  
PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Prabhjit Singh  >  Music Albums from Amazon  >  test.php  >  Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Testing Class
Class: Music Albums from Amazon
Retrieve information about music tracks on Amazon
Author: By
Last change:
Date: 2010-05-09 23:09
Size: 498 bytes
 

Contents

Class file image Download
<?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";
}
    
?>