src/IronWorker.php
public function downloadCode($code_id)
    {
        if (empty($code_id)) {
            throw new \InvalidArgumentException("Please set code_id");
        }
        $url = "projects/{$this->project_id}/codes/$code_id/download";
        return $this->apiCall(self::GET, $url);
    }
public function downloadCode($code_id)
    {
        if (empty($code_id)) {
            throw new \InvalidArgumentException("Please set code_id");
        }
        $url = "projects/{$this->project_id}/codes/$code_id/download";
        return $this->apiCall(self::GET, $url);
    }
public function downloadCode ( $ code_id ) { if ( empty ( $ code_id ) ) { throw new \ InvalidArgumentException ( "Please set code_id" ) ; } $ url = "projects/{$this->project_id}/codes/$code_id/download" ; return $ this -> apiCall ( self :: GET , $ url ) ; }
Download Code Package

@param String $code_id.

@throws \InvalidArgumentException
@return string zipped file
Download Code Package