ember cli echonest用于将Echonest API与Ember Data一起使用的适配器
Ember-cli-echonest 使用 Ember 和 Ember CLI 的 Ember 插件。该项目目前仅限于提供一个界面来获取 艺术家 和 歌曲,包括:
Configuration
直接调用 Echonest
推荐用于原型设计,因为它公开了 API 密钥。
// config/environment.js
ENV.echonest = {
api_key: 'MY_API_KEY'
};
通过代理调用
// config/environment.js
ENV.echonest = {
host: 'http://my.echonest.proxy.com',
namespace: 'api/v4'
};
模型
// config/environment.js
ENV.echonest = {
host: 'http://my.echonest.proxy.com',
namespace: 'api/v4'
};
Ember Echonest Adapter 提供以下模型:
-
echonest-artist
-
echonest-song
模型名称以 “echo” 开头。
下载地址
用户评论