Discogs class
Possible Methods
__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
Search something on Discogs
Parameters
- term string
- type string (optional)
- page int (optional)
Return
array