src/Image.php
public function getSourceImagesWithBinaryHash($binaryHash, $organization = '')
    {
        $path = self::SOURCEIMAGE_RESOURCE.'/'.$this->getOrganizationName($organization);

        $options['query'] = ['binaryHash' => $binaryHash];
        $contents = $this
            ->call('GET', $path, $options)
            ->getBody()
            ->getContents();

        return SourceImageCollection::createFromJsonResponse($contents);
    }
public function getSourceImagesWithBinaryHash($binaryHash, $organization = '')
    {
        $path = self::SOURCEIMAGE_RESOURCE.'/'.$this->getOrganizationName($organization);

        $options['query'] = ['binaryHash' => $binaryHash];
        $contents = $this
            ->call('GET', $path, $options)
            ->getBody()
            ->getContents();

        return SourceImageCollection::createFromJsonResponse($contents);
    }
public function getSourceImagesWithBinaryHash ( $ binaryHash , $ organization = '' ) { $ path = self :: SOURCEIMAGE_RESOURCE . '/' . $ this -> getOrganizationName ( $ organization ) ; $ options [ 'query' ] = [ 'binaryHash' => $ binaryHash ] ; $ contents = $ this -> call ( 'GET' , $ path , $ options ) -> getBody ( ) -> getContents ( ) ; return SourceImageCollection :: createFromJsonResponse ( $ contents ) ; }
Loads source images metadata from Rokka by binaryhash.

Since the same binaryhash can have different images in rokka, this may return more than one picture.

@param string $binaryHash   Hash of the image
@param string $organization Optional organization name

@throws GuzzleException
@throws \RuntimeException

@return SourceImageCollection
Loads source images metadata from Rokka by binaryhash .