-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
34 lines (25 loc) · 904 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
This is a Javascript library created to interact with the Wave Music API.
To use this library you must include the jQuery library in your app, you may
find it in this repo too.
The library have a constructor that create an instance that you can manage from
the 'wm' object.
The methods implemented are:
Get methods:
- getSongs(callback)
- getSong(id, callback)
- getSongByName(name, callback)
- getPlaylists(callback)
- getPlaylist(id, callback)
Post methods:
- logIn(email, password, callback)
- createPlaylist(name_of_playlist, callback)
- addSongs(playlist_id, songs_id, callback)
// In this case the songs_id is an array of the ids of each
// song you want to add.
Delete methods:
- logOut(user_id, callback)
This is a example for a get method:
wm.getSongs(function(data){
console.log(data);
})
Wich will print the json obteined from the API request.