PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Er. Rochak Chauhan   PHP Yahoo Music API   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example Script
Class: PHP Yahoo Music API
Search for music using the Yahoo Music API
Author: By
Last change:
Date: 16 years ago
Size: 488 bytes
 

Contents

Class file image Download
<?php
// Sign up for your feee API key at: http://developer.yahoo.com/music/
$apiKey="[YOUR API KEY HERE]";
require_once(
"PhpYahooMusicApi.inc.php");
$yahooMusicApi=new YahooMusicApi($apiKey);

$artistInfo=$yahooMusicApi->searchArtist($artistName);
$trackInfo=$yahooMusicApi->searchTrack($trackName);
$trackInfo=$yahooMusicApi->getTrackInfo($trackId);
$tracksByArtistInfo=$yahooMusicApi->getTracksByArtist($artistId);
$releaseInfo=$yahooMusicApi->getReleaseInfo($releaseId);
?>