public function saveOriginalImage($pinId, $path)
    {
        $pinInfo = $this->info($pinId);
        if (!isset($pinInfo['images']['orig']['url'])) {
            return false;
        }

        $originalUrl = $pinInfo['images']['orig']['url'];
        $destination = $path . DIRECTORY_SEPARATOR . basename($originalUrl);

        FileHelper::saveTo($originalUrl, $destination);

        return $destination;
    }
public function saveOriginalImage($pinId, $path)
    {
        $pinInfo = $this->info($pinId);
        if (!isset($pinInfo['images']['orig']['url'])) {
            return false;
        }

        $originalUrl = $pinInfo['images']['orig']['url'];
        $destination = $path . DIRECTORY_SEPARATOR . basename($originalUrl);

        FileHelper::saveTo($originalUrl, $destination);

        return $destination;
    }
public function saveOriginalImage ( $ pinId , $ path ) { $ pinInfo = $ this -> info ( $ pinId ) ; if ( ! isset ( $ pinInfo [ 'images' ] [ 'orig' ] [ 'url' ] ) ) { return false ; } $ originalUrl = $ pinInfo [ 'images' ] [ 'orig' ] [ 'url' ] ; $ destination = $ path . DIRECTORY_SEPARATOR . basename ( $ originalUrl ) ; FileHelper :: saveTo ( $ originalUrl , $ destination ) ; return $ destination ; }
Saves the pin original image to the specified path. On success
returns full path to saved image. Otherwise returns false.

@param string $pinId
@param string $path
@return false|string
Saves the pin original image to the specified path . On success returns full path to saved image . Otherwise returns false .