Package com.rdio.simple

Examples of com.rdio.simple.RdioCoreClient.call()


        // String q = URLEncoder.encode(artist + " " + album, "UTF-8");
        String q = artist + " " + album;
        logger.debug("Querying Rdio for: {}", q);

        RdioClient rdio = new RdioCoreClient(new RdioClient.Consumer(Rdio.KEY, Rdio.SHARED_SECRET));
        String response = rdio.call("search", Parameters.build("query", q).and("types", "Album").and("extras", "icon400,isCompilation"));

        logger.trace("Response from Rdio: {}", response);
        JSONObject json = new JSONObject(response);

        String status = json.getString("status");
View Full Code Here


                + "     {\"field\":\"artist\"},"
                + "     {\"field\":\"trackNum\"}]"
                + "}]";
        //@formatter:on
        logger.debug("Getting album {} [{}] from Rdio", rdioAlbum.getTitle(), rdioAlbum.getId());
        String response = rdio.call("get", Parameters.build("keys", rdioAlbum.getId()).and("extras", extras));
        logger.trace("Response from Rdio: {}", response);

        JSONObject json = new JSONObject(response);
        if ("ok".equalsIgnoreCase(json.getString("status"))) {
            JSONObject result = json.getJSONObject("result");
View Full Code Here

        String id = rdioAlbum.getId();

        logger.debug("Querying Rdio for album art for: {} - {}", rdioAlbum.getArtist(), rdioAlbum.getTitle());

        RdioClient rdio = new RdioCoreClient(new RdioClient.Consumer(Rdio.KEY, Rdio.SHARED_SECRET));
        String response = rdio.call("get", Parameters.build("keys", id).and("extras", "-*,icon,icon400"));

        logger.trace("Response from Rdio: {}", response);

        JSONObject json = new JSONObject(response);
        if ("ok".equalsIgnoreCase(json.getString("status"))) {
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.