Skip to content

Commit 7a4335c

Browse files
committed
first commit
0 parents  commit 7a4335c

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

README

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
Welcome to TinySong Library!
2+
Hey all!
3+
4+
This is my Tinysong Library for CodeIgniter! you`re welcome to download and try!
5+
This project was first build to work with www.musicine.com
6+
7+
How it works ?
8+
9+
You have to follow those simple steps:
10+
11+
Go to http://tinysong.com/api and REQUEST your own API key
12+
Download my Library at Download button at the top
13+
Try it in a new install of Codeigniter and then apply to your project
14+
Remember there is no Garantee!
15+
How to use it:
16+
17+
As much as any library in Codeigniter you can load as:
18+
19+
$this->load->library("Tinysong");
20+
After this you can use it as any library:
21+
22+
$this->Tinysong->getSongURL("songname");
23+
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
24+
25+
Tinysong Library easy works with the same 3 methods
26+
27+
GetSongURL returns the same as /a/
28+
29+
$this->Tinysong->getSongURL("Song name");
30+
GetSongMeta returns the same as /b/
31+
32+
$this->Tinysong->getSongMeta("Song name");
33+
GetSongs returns the same as /s/
34+
35+
$this->Tinysong->getSongs("Song name");
36+
FlashWidgets:
37+
38+
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.
39+
To load a simple song with flash Widget
40+
41+
$this->Tinysong->getFlashWidget("Name of song");
42+
And to use the List flash widget
43+
44+
$this->Tinysong->getFlashListWidget(ID of the PlayList);
45+
Some considerations:
46+
47+
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.
48+
$this->Tinysong->setWidth("200");
49+
$this->Tinysong->setHeight("200");

0 commit comments

Comments
 (0)