Closed starise closed 9 years ago
Hi @starise
Thanks for reporting this issue. It seems Discogs updated their API and moved all images to a dedicated images cluster: https://www.discogs.com/developers/#page:changelog
I hope I have some time to fix this in the next couple of days. If you have fixed it already don't hesitate to submit a PR.
The old endpoint still works. Make sure you sign the request with OAuth. Try this image:
$response = $discogs->getImage([
'filename' => 'A-20-1138033731.jpeg'
]);
echo $response['image'];
The new images can be fetched like this (without OAuth):
$response = $discogs->getArtist([
'id' => 20
]);
foreach ($response['images'] as $image) {
var_dump((string) $discogs->getHttpClient()->get($image['uri'])->getBody());
}
I receive a [status code] 404 [reason phrase] Not Found, using getImage.
When i send a request using getRelease i can see images passed using a different url like: http://api-img.discogs.com/{....}
Seems like a discogs change in API. Can be this OAuth related?
Thanks.