定制 pel/freesound-api 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pel/freesound-api

Composer 安装命令:

composer require pel/freesound-api

包简介

A class to consume freesound's API.

关键字:

README 文档

README

Build Status

freesound-api

About

A PSR-4 PHP class to consume freesound's API.

http://www.freesound.org/

Usage

Here's an example of how to use the freesound-api class.

include('FreesoundAPI.php');

$api_key = 'g1d11a5117a4143be0f5f';
$curl_options = array();

$api = new Pel\Helper\FreesoundAPI($api_key, $curl_options);

$result = $api->sound(123);

if ($result === FALSE) {
    echo 'Error code = ' . $api->error['code'] . '<br/>';
    echo 'Error message = ' . $api->error['message'] . '<br/>';
} else {
    var_dump($result);
}

Take a look at the class's source code to see all the possible API calls.

统计信息

  • 总下载量: 6
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-20