Skip to content
PHP library for connecting with the Grooveshark API
Find file
Pull request Compare This branch is even with fastest963:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
README
gsAPI.php
gsPlaylist.php
gsSearch.php
gsUser.php

README

To do search:

require("gsAPI.php");

$gsapi = new gsapi('key', 'secret');

$gsapi->startSession();
//please cache this session and use setSession('session')

$gsapi->getCountry($_SERVER['REMOTE_ADDR']);
//just need to call this, it will store itself in gsapi

require("gsSearch.php");

$gsSearch = new gsSearch();
$gsSearch->setTitle('song title');

$results = $gsSearch->songSearchResults();
Something went wrong with that request. Please try again.