dev-master
9999999-dev https://github.com/ericlagarda/beatportapiBeatport Api Class
WTFPL
The Requires
by Eric Lagarda
beatport
1.0
1.0.0.0 https://github.com/ericlagarda/beatportapiBeatport Api Class
WTFPL
The Requires
by Eric Lagarda
beatport
Wallogit.com
2017 © Pedro Peláez
Beatport Api Class
A simple PHP class to query the Beatport API via Oauth, server side., (*1)
The use case is for a server to server context - for example I used it to build a simple Beatport RSS feed for my label. The library handles the three legged Oauth1a flow, submitting what would be the client side login/confirmation process via the server. Beatport does advertise a simpler Direct Access Token, but you need additional permissions, and this library works without that., (*2)
The class essentially just returns an array which you can then manipulate as you please., (*3)
This is originally based on the following people's work:, (*4)
composer require moussaclarke/beatportapi
use MoussaClarke\BeatportApi; // auth parameters $parameters = [ 'consumer'=> 'CONSUMERKEY', // Your Beatport API Key 'secret' => 'SECRETKEY', // Your Beatport Secret Key 'login' => 'BEATPORTLOGIN', // Your Beatport Login Name 'password' => 'BEATPORTPASSWORD' // Your Beatport Password ]; // query parameters $query = [ 'facets' => 'labelId:xyz', // The filter type 'method' => 'releases', // The Beatport API Method 'perPage' => '150' // Number of results per page ]; $api = new BeatportApi ($parameters); // initialise $response = $api->queryApi ($query); // run the query print_r ($response); // do something with response
You can check the Beatport API documentation for which queries you can make and which parameters are required, although they are currently untested much beyond the above example, and not everything is documented, so your mileage may vary., (*5)
Totally and utterly alpha, and likely to break at any point. Not guaranteed to work as intended in any way, so use at your own risk., (*6)
By Moussa Clarke, (*7)
Would be cool to improve this, so feel free to submit bug reports, suggestions and pull requests. Can't guarantee I've got enough time to do very much though! Alternatively just fork it and make your own thing., (*8)
WFTPL, insofar as those other guys are cool with that., (*9)
Outside of geekdom, I'm a DJ, producer and label manager, go check me out:, (*10)
Beatport Api Class
WTFPL
beatport
Beatport Api Class
WTFPL
beatport