<?php
 
/**
 
 * Gaurav Mishra | http://phpcollection.com/
 
 * MSN: [email protected]
 
 * Email: [email protected]
 
 * Started: 22/08/2009 09:44 (IST) 
 
 * Tested: No
 
 * PHP 4/5: 5
 
 * No warranty is given to code used
 
 */
 
 
/** Include the class*/ 
 
include ("opendada.class.php");
 
 
/** Create a new object , Pass the API key as a parameter */
 
$a = new OpenDada ("YOUR API KEY");
 
/** Search any ringtone*/
 
$search = $a->search_ringtone("beyonce+knowles");
 
 
/** Get top 10 ringtones */
 
$top 10 = $a->top10();
 
 
/** Display a single ringtone , pass artist and title as parameters*/
 
$single_ringtone = $a->display_single_ringtone("beyonce+knowles", "halo");
 
 
/** Get ringtones on the basis of genre*/
 
$get_genre = $a->get_genre("rock");
 
 
?>
 
 |