Download the PHP package iammordaty/beatport-oauth-middleware without Composer
On this page you can find all versions of the php package iammordaty/beatport-oauth-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download iammordaty/beatport-oauth-middleware
More information about iammordaty/beatport-oauth-middleware
Files in iammordaty/beatport-oauth-middleware
Package beatport-oauth-middleware
Short Description Guzzle 6.x OAuth middleware for [Beatport](http://beatport.com) API. Allows server-side querying and access token caching.
License MIT
Informations about the package beatport-oauth-middleware
beatport-oauth-middleware
Guzzle 6.x OAuth middleware for Beatport API. Allows server-side querying and access token caching.
Table of Contents
- Installation
- Requirements
- Usage
- Tests
- Further information
- License
Installation
The easiest way to install this middleware is via composer:
Requirements
- PHP 7.1+
- Beatport's Consumer Key, Consumer Secret and account credentials
For more information about Consumer Key, Consumer Secret see Beatport announcement and visit Beatport API documentation.
Usage
The following example demonstrates how to initialize a Guzzle client with middleware, and then retrieve information from Beatport API about the track based on its ID.
In addition, it is also possible to cache access token for later use.
Tests
Copy phpunit.xml.dist
file to phpunit.xml
and fill in the missing parameters.
Now you can test middleware by running the following command:
Further information
- Beatport API documentation
- Beatport announcement of API key acquisition
License
iammordaty/beatport-oauth-middleware is licensed under the MIT License.
All versions of beatport-oauth-middleware with dependencies
ext-json Version *
guzzlehttp/guzzle Version >=6.0
guzzlehttp/oauth-subscriber Version ^0.3.0
iammordaty/guzzle-urlencoded-response-middleware Version ^0.1.0
iammordaty/guzzlehttp-factory Version ^1.0
psr/simple-cache Version ^1.0