public TasteProfileExample() throws EchoNestException {
en = new EchoNestAPI();
}
public boolean addArtists(ArtistCatalog tp, String[] names) throws EchoNestException {
CatalogUpdater updater = new CatalogUpdater();
int id = 1;
for (String name : names) {
ArtistCatalogItem item = new ArtistCatalogItem("id-" + id);
item.setArtistName(name);
updater.update(item);
id++;
}
String ticket = tp.update(updater);
return tp.waitForUpdates(ticket, 30000);
}