library 7digital-client
A PHP 7Digital api client
gquemener/7digital-client
A PHP 7Digital api client
- Tuesday, April 29, 2014
- by GildasQ
- Repository
- 3 Watchers
- 5 Stars
- 1,598 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 8 Forks
- 0 Open issues
- 4 Versions
- 0 % Grown
, (*1)
Installation
- Add the following to your composer.json:
"require": {
"gquemener/7digital-client": "~1.0"
}
- Update your deps using `composer.phar update --prefer-dist``
- Start playing!
Usage
<?php
require './vendor/autoload.php';
use SevenDigital\ApiClient;
$client = new ApiClient(/** consumer_key */);
$track = $client->getTrackService(); //Services artist, release and tag are also accessible the same way
$results = $track->search('Queen'); // Use the method name as described in the 7digital api documentation
// (ex: http://api.7digital.com/1.2/static/documentation/7digitalpublicapi.html#track/search)
// Required argument can be passed directly
$results = $track->search(array( // Other arguments must be passed as a hash
'q' => 'Queen', // Method result will be an instance of \SimpleXMLElement (http://fr2.php.net/simplexmlelement)
'pageSize' => 1,
));
If a method is missing, feel free to [contact me](mailto:gildas.quemener at gmail dot com) or send a PR., (*2)
dev-master
9999999-dev
A PHP 7Digital api client
Sources
Download
MIT
The Requires
The Development Requires
v1.0.2
1.0.2.0
A PHP 7Digital api client
Sources
Download
MIT
The Requires
The Development Requires
v1.0.1
1.0.1.0
A PHP 7Digital api client
Sources
Download
MIT
The Requires
The Development Requires
v1.0.0
1.0.0.0
A PHP 7Digital api client
Sources
Download
MIT
The Requires
The Development Requires