Examples of ArtistCatalog


Examples of com.echonest.api.v4.ArtistCatalog

            }
        });

        shell.add("aCatName", new ShellCommand() {
            public String execute(Shell ci, String[] args) throws Exception {
                ArtistCatalog ac = en.getArtistCatalogByName(args[1]);
                if (ac != null) {
                    System.out.printf("%s %s\n", ac.getID(), ac.getName());
                }
                return "";
            }

            public String getHelp() {
                return "get an artist catalog by name";
            }
        });

        shell.add("aCatID", new ShellCommand() {
            public String execute(Shell ci, String[] args) throws Exception {
                ArtistCatalog ac = en.getArtistCatalogByID(args[1]);
                if (ac != null) {
                    System.out.printf("%s %s\n", ac.getID(), ac.getName());
                }
                return "";
            }

            public String getHelp() {
                return "get an artist catalog by id";
            }
        });


        shell.add("sCatName", new ShellCommand() {
            public String execute(Shell ci, String[] args) throws Exception {
                SongCatalog ac = en.getSongCatalogByName(args[1]);
                if (ac != null) {
                    System.out.printf("%s %s\n", ac.getID(), ac.getName());
                }
                return "";
            }

            public String getHelp() {
                return "get an song catalog by name";
            }
        });

        shell.add("sCatID", new ShellCommand() {
            public String execute(Shell ci, String[] args) throws Exception {
                SongCatalog ac = en.getSongCatalogByID(args[1]);
                if (ac != null) {
                    System.out.printf("%s %s\n", ac.getID(), ac.getName());
                    for (SongCatalogItem sci : ac.read(0, 30)) {
                        System.out.println(sci);
                    }
                }
                return "";
            }
View Full Code Here

Examples of com.echonest.api.v4.ArtistCatalog

        return tp.waitForUpdates(ticket, 30000);
    }

    public ArtistCatalog createTasteProfile(String name) throws EchoNestException {
        System.out.println("Creating Taste Profile " + name);
        ArtistCatalog tp = en.createArtistCatalog(name);
        String[] artists = {"weezer", "the beatles", "ben folds", "explosions in the sky",
            "this will destroy you", "muse", "bjork"};
        addArtists(tp, artists);
        return tp;
    }
View Full Code Here

Examples of com.echonest.api.v4.ArtistCatalog

    public static void main(String[] args) throws EchoNestException {
        String tpName = "Some of my Favorite Artists";
        TasteProfileExample tpe = new TasteProfileExample();

        ArtistCatalog tp = tpe.findTasteProfile(tpName);
        if (tp == null) {
            tp = tpe.createTasteProfile(tpName);
        }
        tpe.createPlaylist(tp);
    }
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.