src/IronWorker.php
public function getCodeRevisions($code_id, $page = 0, $per_page = 30)
    {
        if (empty($code_id)) {
            throw new \InvalidArgumentException("Please set code_id");
        }
        $params = array(
            'page'     => $page,
            'per_page' => $per_page,
        );
        $this->setJsonHeaders();
        $url = "projects/{$this->project_id}/codes/$code_id/revisions";
        $res = json_decode($this->apiCall(self::GET, $url, $params));
        return $res->revisions;
    }
public function getCodeRevisions($code_id, $page = 0, $per_page = 30)
    {
        if (empty($code_id)) {
            throw new \InvalidArgumentException("Please set code_id");
        }
        $params = array(
            'page'     => $page,
            'per_page' => $per_page,
        );
        $this->setJsonHeaders();
        $url = "projects/{$this->project_id}/codes/$code_id/revisions";
        $res = json_decode($this->apiCall(self::GET, $url, $params));
        return $res->revisions;
    }
public function getCodeRevisions ( $ code_id , $ page = 0 , $ per_page = 30 ) { if ( empty ( $ code_id ) ) { throw new \ InvalidArgumentException ( "Please set code_id" ) ; } $ params = array ( 'page' => $ page , 'per_page' => $ per_page , ) ; $ this -> setJsonHeaders ( ) ; $ url = "projects/{$this->project_id}/codes/$code_id/revisions" ; $ res = json_decode ( $ this -> apiCall ( self :: GET , $ url , $ params ) ) ; return $ res -> revisions ; }
Get all code revisions

@param String $code_id.
@param int $page Page. Default is 0, maximum is 100.
@param int $per_page The number of tasks to return per page. Default is 30, maximum is 100.

@throws \InvalidArgumentException
@return array of revisions
Get all code revisions