public function download()
    {
        $download_path = parse_url($this->links['download_location'], PHP_URL_PATH);
        $download_query = parse_url($this->links['download_location'], PHP_URL_QUERY);
        $link = self::get($download_path . "?" . $download_query);
        $linkClass = \GuzzleHttp\json_decode($link->getBody());
        return $linkClass->url;
    }
public function download()
    {
        $download_path = parse_url($this->links['download_location'], PHP_URL_PATH);
        $download_query = parse_url($this->links['download_location'], PHP_URL_QUERY);
        $link = self::get($download_path . "?" . $download_query);
        $linkClass = \GuzzleHttp\json_decode($link->getBody());
        return $linkClass->url;
    }
public function download ( ) { $ download_path = parse_url ( $ this -> links [ 'download_location' ] , PHP_URL_PATH ) ; $ download_query = parse_url ( $ this -> links [ 'download_location' ] , PHP_URL_QUERY ) ; $ link = self :: get ( $ download_path . "?" . $ download_query ) ; $ linkClass = \ GuzzleHttp \ json_decode ( $ link -> getBody ( ) ) ; return $ linkClass -> url ; }
Triggers a download for a photo
Required under API Guidelines
@return string - full-res photo URL for downloading
Triggers a download for a photo Required under API Guidelines