|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.echonest.api.v4.EchoNestAPI
public class EchoNestAPI
The main interface to the Echo Nest API
| Constructor Summary | |
|---|---|
EchoNestAPI()
Creates a new EchoNestAPI. |
|
EchoNestAPI(java.lang.String apiKey)
Creates a new EchoNestAPI with the given API key |
|
| Method Summary | |
|---|---|
ArtistCatalog |
createArtistCatalog(java.lang.String name)
Creates an artist catalog |
Playlist |
createBasicPlaylist(Params p)
create a basic playlist |
Playlist |
createDynamicPlaylist(Params p)
Creates a dynamic playlist. |
SongCatalog |
createSongCatalog(java.lang.String name)
Creates a song catalog |
Playlist |
createStaticPlaylist(Params p)
create a static playlist |
ArtistCatalog |
getArtistCatalogByID(java.lang.String id)
Gets a previously created artist catalog by ID |
ArtistCatalog |
getArtistCatalogByName(java.lang.String name)
Gets a previously created artist catalog by name |
Track |
getKnownTrack(java.io.File file)
Determines whether or not the track is known by the echo nest |
Track |
getKnownTrack(java.lang.String md5)
Determines whether or not the track is known by the echo nest |
int |
getMinCommandTime()
Gets the minimum time between commands |
Playlist |
getNextInDynamicPlaylist(java.lang.String sessionID)
Gets the next song in the dynamic playlist |
Playlist |
getNextInDynamicPlaylist(java.lang.String sessionID,
int rating)
Gets the next song in the dynamic playlist |
Playlist |
getNextInDynamicPlaylist(java.lang.String sessionID,
int rating,
int testMode)
|
java.util.List<Artist> |
getSimilarArtists(Params p)
Gets similar artists given a set of params (See ArtistParams) |
SongCatalog |
getSongCatalogByID(java.lang.String id)
Gets a previously created song catalog by ID |
SongCatalog |
getSongCatalogByName(java.lang.String name)
Gets a previously created song catalog by name |
java.util.List<Song> |
getSongs(Params p)
Get info for songs based on a set of params (See SongParams) |
java.util.List<Term> |
getTopTerms(int count)
Gets the most frequently occurring top terms |
java.util.List<Song> |
identifySongs(Params p)
Identify a song given codes from the Echo Nest Fingerprinter |
java.util.List<ArtistCatalog> |
listArtistCatalogs()
List all artist catalogs created with this API key |
java.util.List<SongCatalog> |
listSongCatalogs()
List all song catalogs created with this API key |
Artist |
newArtistByID(java.lang.String id)
Creates a new artist given the artist ID |
Artist |
newArtistByName(java.lang.String name)
Creates a new artist given the artist name |
Track |
newTrackByID(java.lang.String id)
Creates a track from a track ID |
Track |
newTrackByMD5(java.lang.String md5)
Creates a track from a track ID |
java.util.List<Artist> |
searchArtists(Params p)
Search for artists given a set of params (See ArtistParams) |
java.util.List<Artist> |
searchArtists(java.lang.String name)
Search for artists by name |
java.util.List<Artist> |
searchArtists(java.lang.String name,
int count)
Search for artists by name and count |
java.util.List<Song> |
searchSongs(Params p)
Search for songs given a set of params (See SongParams) |
void |
setHostName(java.lang.String hostName)
Sets the host to use for the API. |
void |
setMinCommandTime(int minTime)
Sets the minimum time between Echo Nest commands |
void |
setTraceRecvs(boolean traceRecvs)
Enables / disables traccing of responses |
void |
setTraceSends(boolean traceSends)
Enables / disables tracing of sent commands |
void |
showStats()
Shows performance and error statistics for the API |
java.util.List<Song> |
similarSongs(Params p)
Get similar songs based on a set of params (See SongParams) |
java.util.List<Artist> |
suggestArtists(Params p)
Suggest artists given a set of params (See ArtistParams) |
java.util.List<Artist> |
suggestArtists(java.lang.String name)
Suggest artists by name |
java.util.List<Artist> |
topHotArtists(int count)
Gets the top hotttest artists |
java.util.List<Artist> |
topHotArtists(int start,
int count)
Gets the top hotttest artists |
java.util.List<Artist> |
topHotArtists(Params p)
Gets the top hotttest artists based on params |
Track |
uploadTrack(java.io.File audioFile,
boolean wait)
Upload a track |
Track |
uploadTrack(java.net.URL trackUrl,
boolean wait)
Upload a track |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EchoNestAPI()
throws EchoNestException
EchoNestExceptionpublic EchoNestAPI(java.lang.String apiKey)
apiKey - the developer api key| Method Detail |
|---|
public Artist newArtistByID(java.lang.String id)
throws EchoNestException
id -
EchoNestException
public Artist newArtistByName(java.lang.String name)
throws EchoNestException
name -
EchoNestExceptionpublic void setHostName(java.lang.String hostName)
hostName - public void setMinCommandTime(int minTime)
minTime - public int getMinCommandTime()
public void setTraceSends(boolean traceSends)
traceSends - public void setTraceRecvs(boolean traceRecvs)
traceRecvs - public void showStats()
public java.util.List<Artist> getSimilarArtists(Params p)
throws EchoNestException
p -
EchoNestException
public java.util.List<Artist> searchArtists(Params p)
throws EchoNestException
p -
EchoNestException
public java.util.List<Artist> suggestArtists(Params p)
throws EchoNestException
p -
EchoNestException
public java.util.List<Artist> suggestArtists(java.lang.String name)
throws EchoNestException
name -
EchoNestException
public java.util.List<Term> getTopTerms(int count)
throws EchoNestException
count - the number of terms to return
EchoNestException
public java.util.List<Artist> searchArtists(java.lang.String name)
throws EchoNestException
name -
EchoNestException
public java.util.List<Artist> searchArtists(java.lang.String name,
int count)
throws EchoNestException
name - count -
EchoNestException
public java.util.List<Artist> topHotArtists(int count)
throws EchoNestException
count -
EchoNestException
public java.util.List<Artist> topHotArtists(int start,
int count)
throws EchoNestException
start - the starting indexcount - the count
EchoNestException
public java.util.List<Artist> topHotArtists(Params p)
throws EchoNestException
p -
EchoNestException
public java.util.List<Song> searchSongs(Params p)
throws EchoNestException
p -
EchoNestException
public java.util.List<Song> similarSongs(Params p)
throws EchoNestException
p -
EchoNestException
public java.util.List<Song> identifySongs(Params p)
throws EchoNestException
p -
EchoNestException
public java.util.List<Song> getSongs(Params p)
throws EchoNestException
p -
EchoNestException
public Track uploadTrack(java.net.URL trackUrl,
boolean wait)
throws EchoNestException
trackUrl - the url of the trackwait - if true, wait for the analysis
EchoNestException
public Track uploadTrack(java.io.File audioFile,
boolean wait)
throws EchoNestException,
java.io.IOException
trackFile - the file to uploadwait - if true, wait for the analysis
com.echonest.api.v3.artist.EchoNestException
EchoNestException
java.io.IOException
public Track getKnownTrack(java.lang.String md5)
throws EchoNestException
md5 - of the track
EchoNestException
public Track getKnownTrack(java.io.File file)
throws java.io.IOException,
EchoNestException
file - the file to test
java.io.IOException
EchoNestException
public Track newTrackByID(java.lang.String id)
throws EchoNestException
id - the ID or MD5 of the track
EchoNestException
public Track newTrackByMD5(java.lang.String md5)
throws EchoNestException
id - the ID or MD5 of the track
EchoNestException
public Playlist createBasicPlaylist(Params p)
throws EchoNestException
p - the playlist params (see PlaylistParams)
EchoNestException
public Playlist createStaticPlaylist(Params p)
throws EchoNestException
p - the playlist params (see PlaylistParams)
EchoNestException
public Playlist createDynamicPlaylist(Params p)
throws EchoNestException
p - the params for the playlist (see PlaylistParams)
EchoNestException
public Playlist getNextInDynamicPlaylist(java.lang.String sessionID,
int rating)
throws EchoNestException
sessionID - the session idrating - a rating of 1 to 5 (zero means no rating)
EchoNestException
public Playlist getNextInDynamicPlaylist(java.lang.String sessionID,
int rating,
int testMode)
throws EchoNestException
EchoNestException
public ArtistCatalog createArtistCatalog(java.lang.String name)
throws EchoNestException
name - the name of the catalog
EchoNestException
public ArtistCatalog getArtistCatalogByID(java.lang.String id)
throws EchoNestException
id - the catalog ID
EchoNestException
public ArtistCatalog getArtistCatalogByName(java.lang.String name)
throws EchoNestException
name - the catalog name
EchoNestException
public SongCatalog getSongCatalogByID(java.lang.String id)
throws EchoNestException
id - the catalog ID
EchoNestException
public SongCatalog getSongCatalogByName(java.lang.String name)
throws EchoNestException
name - the catalog name
EchoNestException
public java.util.List<ArtistCatalog> listArtistCatalogs()
throws EchoNestException
EchoNestException
public SongCatalog createSongCatalog(java.lang.String name)
throws EchoNestException
name - the name of the catalog
EchoNestException
public java.util.List<SongCatalog> listSongCatalogs()
throws EchoNestException
EchoNestException
public Playlist getNextInDynamicPlaylist(java.lang.String sessionID)
throws EchoNestException
sessionID - the session id
EchoNestException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||