netsensia/pinnacle-sports-api
Composer 安装命令:
composer require netsensia/pinnacle-sports-api
包简介
API Wrapper for the Pinnacle Sports API
README 文档
README
A PHP Client wrapper for the Pinnacle Sports API (https://www.pinnacle.com/en/api/manual)
You will need an API key to use this client. This is the Base64 value of UTF-8 encoded username:password
Add to project using Composer
composer require "netsensia/pinnacle-sports-api:1.0.0"
Usage
$client = new Client($apiKey);
$sports = $client->getSports();
$leagues = $client->getLeagues(33); // 33 is the id for tennis, as obtained from getSports()
$fixtures = $client->getFixtures(33);
$odds = $client->getOdds(33);
A full list of available calls can be found by examining the ClientSpec.php file which contains the spec tests. Additional parameters can be seen in the Client.php file.
Development
Clone the repo and compose
git clone git@github.com:netsensia/pinnacle-sports-api
cd pinnacle-sports-api
php composer.phar install
Run the tests
Create a file called .apiKey in the root of the project and add your api key to it.
bin/phpspec run --format=pretty -vvv --stop-on-failure
netsensia/pinnacle-sports-api 适用场景与选型建议
netsensia/pinnacle-sports-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 138 次下载、GitHub Stars 达 0, 最近一次更新时间为 2016 年 11 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 netsensia/pinnacle-sports-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 netsensia/pinnacle-sports-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 138
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-10