PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Gaurav Mishra   Opendada ringtone search API Wrapper   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example demonstration of the Class
Class: Opendada ringtone search API Wrapper
Get information about ring tones in dada.net
Author: By
Last change:
Date: 15 years ago
Size: 764 bytes
 

Contents

Class file image Download
<?php
/**
 * Gaurav Mishra | http://phpcollection.com/
 * MSN: gauravtechie@hotmail.com
 * Email: gaurav@hostcurry.com
 * 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");

?>