<?php
$papiuser = '<Insert User ID>';
$papisecret = '<Insert User Secret>';

require_once('spinpapi.inc.php');

array_shift($argv);
$p['station'] = "wmfo";
$p['method']  = "getSong";

$data = spin_papi_query($p, $papiuser, $papisecret);

$output = $data -> results -> SongName . " by " . $data -> results -> ArtistName . ", from " . $data -> results -> DiskName;

echo rawurlencode($output) . "\n";

?>
