lib/Imgur/Api/AlbumOrImage.php
public function find($imageIdOrAlbumId)
    {
        try {
            return $this->get('image/' . $imageIdOrAlbumId);
        } catch (ExceptionInterface $e) {
            if (404 !== $e->getCode()) {
                throw $e;
            }
        }

        try {
            return $this->get('album/' . $imageIdOrAlbumId);
        } catch (ExceptionInterface $e) {
            if (404 !== $e->getCode()) {
                throw $e;
            }
        }

        throw new ErrorException('Unable to find an album OR an image with the id, ' . $imageIdOrAlbumId);
    }
public function find($imageIdOrAlbumId)
    {
        try {
            return $this->get('image/' . $imageIdOrAlbumId);
        } catch (ExceptionInterface $e) {
            if (404 !== $e->getCode()) {
                throw $e;
            }
        }

        try {
            return $this->get('album/' . $imageIdOrAlbumId);
        } catch (ExceptionInterface $e) {
            if (404 !== $e->getCode()) {
                throw $e;
            }
        }

        throw new ErrorException('Unable to find an album OR an image with the id, ' . $imageIdOrAlbumId);
    }
public function find ( $ imageIdOrAlbumId ) { try { return $ this -> get ( 'image/' . $ imageIdOrAlbumId ) ; } catch ( ExceptionInterface $ e ) { if ( 404 !== $ e -> getCode ( ) ) { throw $ e ; } } try { return $ this -> get ( 'album/' . $ imageIdOrAlbumId ) ; } catch ( ExceptionInterface $ e ) { if ( 404 !== $ e -> getCode ( ) ) { throw $ e ; } } throw new ErrorException ( 'Unable to find an album OR an image with the id, ' . $ imageIdOrAlbumId ) ; }
Try to find an image or an album using the given parameter.

@param string $imageIdOrAlbumId

@return array Album (@see https://api.imgur.com/models/album) OR Image (@see https://api.imgur.com/models/image)
Try to find an image or an album using the given parameter .