Compliant with all XBMC addon requirements.
[clinton/xbmc-groove.git] / resources / lib / GroovesharkAPI-test.py
CommitLineData
c52e3923 1# Test
2import sys
3res = []
4groovesharkApi = GrooveAPI()
5res = groovesharkApi.pingService()
6res = groovesharkApi.login(sys.argv[1], sys.argv[2])
7#songIds = []
8#songIds.append('28645456')
9#songIds.append('26579347')
10#res=groovesharkApi.playlistRename(58197714, 'renamed playlist2')
11#res = groovesharkApi.createPlaylist("Test", songIDs)
12#res = groovesharkApi.setPlaylistSongs('58197714',songIds)
13#pprint.pprint(res)
14#res = groovesharkApi.getPlaylistSongs('58197714')
15#res = groovesharkApi.getSongSearchResults('jimmy jazz', 3)
16#res = groovesharkApi.getPopularSongsToday(3)
17#res = groovesharkApi.getSongURLFromSongID('26579347')
18#res = groovesharkApi.getAlbumSearchResults('london calling', 3)
19#res = groovesharkApi.getArtistAlbums('52283')
20#res = groovesharkApi.getArtistSearchResults('the clash', 3)
21res = groovesharkApi.getUserFavoriteSongs()
22#res = groovesharkApi.getUserPlaylists()
23#res = groovesharkApi.getSongInfos('27425375')
24#res = groovesharkApi.getPlaylistSongs(40902662)
25#res = groovesharkApi.addUserFavoriteSong('27425375')
26#res = groovesharkApi.logout()
27#res = groovesharkApi.getUserPlaylistsByUsername('stephendenham')
28#res = groovesharkApi.getArtistPopularSongs('3707')
29#
30pprint.pprint(res)