andig/spotify-web-api-extensions

Guzzle Adapter for use with SpotifyWebApi

dev-master 2016-09-23 07:52 UTC

This package is auto-updated.

Last update: 2024-10-25 07:44:26 UTC


README

Guzzle Adapter for use with SpotifyWebApi (https://github.com/jwilsson/spotify-web-api-php)

Installation

To install run:

composer require andig/spotify-web-api-extensions:dev-master

Usage

See example.php for how to use Guzzle as HTTP client for SpotifyWebApi:

$guzzleAdapter = new GuzzleRequestAdapter(
	GuzzleClientFactory::create(
		new FilesystemCache(__DIR__ . '/cache')
	)
);

$api = new SpotifyWebAPI($guzzleAdapter);
print_r($api->search('Nothing else matters', ['track'], ['market' => 'DE']));