Discogs class

__construct

Default constructor

Parameters

apiKey string
The API-key that has to be used for authenticating

Return

void

setTimeOut

Set the timeout
After this time the request will stop. You should handle any errors triggered by this.

Parameters

seconds int
The timeout in seconds

Return

void

setUserAgent

Set the user-agent for you application
It will be appended to ours, the result will look like: "PHP Discogs/<version> <your-user-agent>"

Parameters

userAgent string
Your user-agent, it should look like <app-name>/<app-version>

Return

void

getRelease

Get more information about a release

Parameters

releaseId string

Return

array

getArtist

Get more information about an artist

Parameters

name string

Return

array

getLabel

Get more information about a label

Parameters

name string

Return

array

Search something on Discogs

Parameters

term string
type string (optional)
page int (optional)

Return

array

About me?

Well, I'm Tijs Verkoyen, a self employed Belgian PHP-developer at Sumo Coders.

If you want to know more about me, check my blog (Dutch).

If you really like my work and want to support me, feel free to use the donate-button below.

Spoon

At both companies, we use Spoon. Spoon is a PHP5 Library that we use for building all our Web 2.0 applications.

The classes that you can download from this website are standalone, so each developer is free to use a library/framework/… he likes best.