Skip to content

Tinysong (www.tinysong.com) is a minimal API to search and listen musics in Grooveshark(www.grooveshark.com). This Library allows Codeigniter to search, obtain a URL and metadata from songs and also explores the FlashWidgets provided by Grooveshark. This library was first build for www.musicine.com

Notifications You must be signed in to change notification settings

2dpodcast/codeigniter-tinysong

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Welcome to TinySong Library!
Hey all!

This is my Tinysong Library for CodeIgniter! you`re welcome to download and try!
This project was first build to work with www.musicine.com

How it works ?

You have to follow those simple steps:

Go to http://tinysong.com/api and REQUEST your own API key
Download my Library at Download button at the top
Try it in a new install of Codeigniter and then apply to your project
Remember there is no Garantee!
How to use it:

As much as any library in Codeigniter you can load as:

$this->load->library("Tinysong");
After this you can use it as any library:

$this->Tinysong->getSongURL("songname");
You can also read the Tinysong API to be sure what is be doing just follow the link http://tinysong.com/api Tinysong implements 3 simple methods

Tinysong Library easy works with the same 3 methods

GetSongURL returns the same as /a/

$this->Tinysong->getSongURL("Song name");
GetSongMeta returns the same as /b/

$this->Tinysong->getSongMeta("Song name");
GetSongs returns the same as /s/

$this->Tinysong->getSongs("Song name");
FlashWidgets:

Restrictions and Purpose Widgets are designed to easily allow developers and users to add music to their website for their visitors to enjoy. They cannot be controlled via Javascript and there are no hooks to listen for when a song ends or begins. They are based on prior knowledge of songIDs or playlistIDs. They can be generated a customized from the Grooveshark website. So you can use methods above to get the SongsIDs.
To load a simple song with flash Widget

$this->Tinysong->getFlashWidget("Name of song");
And to use the List flash widget

$this->Tinysong->getFlashListWidget(ID of the PlayList);
Some considerations:

You can use a config file to load default configs its turns easy when you have to use this library in more then one controller. or you can simply change some values on the fly Spent some time reading the de TinySong Library under the Library path.
$this->Tinysong->setWidth("200");
$this->Tinysong->setHeight("200");

About

Tinysong (www.tinysong.com) is a minimal API to search and listen musics in Grooveshark(www.grooveshark.com). This Library allows Codeigniter to search, obtain a URL and metadata from songs and also explores the FlashWidgets provided by Grooveshark. This library was first build for www.musicine.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published