Code Monkey home page Code Monkey logo

angular-echonest's People

Contributors

kraku avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

angular-echonest's Issues

Artist.getSongs() does not return an accessible value for songs.

Hi,

I have been trying to use the API to access songs for a Artist like so:

Echonest.artists.get({
      name: 'nirvana'
    }).then(function(artist) {
      console.log(artist.getSongs(), "Song get request visible"); 
      artist = artist.getSongs();
      console.log(Artist.songs, "Song get request");
    });
  });

The following code executed in chrome 38.0.2125.104 with angular 1.3.0 will result in a output in the dev-tools that looks like this:

Artist {id: "ARH3S5S1187FB4F76B", name: "Nirvana", getBiographies: function, getBlogs: function, getImages: function…}id: "ARH3S5S1187FB4F76B"name: "Nirvana"songs: Array[15]__proto__: Object "Song get request visible" all.js:44330

undefined "Song get request" 

The object that is returned by Artist.getSong() has no accessible value named songs, i don't know why this is happening but it seems like it's able to set the something to this but the key songs itself is not registered on the this.

Echonest.artists.get({
      name: 'nirvana'
    }).then(function(artist) {
      console.log(artist.getSongs(), "Song get request visible"); 
      artist = artist.getSongs();
      console.log(Object.keys(artist), "Song get request"); // => ["id", "name"] "Song get request"
    });
  });

Any ideas why this is happening or a solution?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.