andig / spotify-web-api-extensions
用于与 SpotifyWebApi 一起使用的 Guzzle 适配器
dev-master
2016-09-23 07:52 UTC
Requires
- doctrine/cache: ^1.6
- guzzlehttp/guzzle: ^6.2
- jwilsson/spotify-web-api-php: ^1.3.4
- kevinrob/guzzle-cache-middleware: ^1.4
This package is auto-updated.
Last update: 2024-08-25 07:22:54 UTC
README
用于与 SpotifyWebApi 一起使用的 Guzzle 适配器 (https://github.com/jwilsson/spotify-web-api-php)
安装
要安装,请运行
composer require andig/spotify-web-api-extensions:dev-master
使用方法
请参阅 example.php
了解如何使用 Guzzle 作为 SpotifyWebApi 的 HTTP 客户端
$guzzleAdapter = new GuzzleRequestAdapter(
GuzzleClientFactory::create(
new FilesystemCache(__DIR__ . '/cache')
)
);
$api = new SpotifyWebAPI($guzzleAdapter);
print_r($api->search('Nothing else matters', ['track'], ['market' => 'DE']));