Examples of CatalogUpdater


Examples of com.echonest.api.v4.CatalogUpdater

    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);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.