Skip to content

Latest commit

 

History

History
executable file
·
38 lines (24 loc) · 815 Bytes

File metadata and controls

executable file
·
38 lines (24 loc) · 815 Bytes

whatcd-php

PHP class used to access the What.CD API

A list of all currently available methods can be found at the link below: https://github.com/WhatCD/Gazelle/wiki/JSON-API-Documentation

Requirements

libcurl

Example usage

require_once('whatcd.class.php');

$WhatCD = new WhatCD('USERNAME_HERE', 'PASSWORD_HERE');

$response = $WhatCD->request(
	'artist', array(
		'artistname' => 'The XX'
	)
);

print_r($response);

License

This software is distributed under the BSD 2-clause license, more information can be found at http://opensource.org/licenses/bsd-license.php

Notes

There is no reason why this class won't support other Gazelle websites, however they are not officially supported by this code, and adjustments will be required.