src/Message.php
public function getByProject($project_id, $archive = false)
    {
        $project_id = (int) $project_id;
        if ($project_id <= 0) {
            throw new Exception('Invalid param project_id');
        }
        $action = "projects/$project_id/$this->action";
        if ($archive) {
            $action .= '/archive';
        }
        return $this->rest->get($action);
    }
public function getByProject($project_id, $archive = false)
    {
        $project_id = (int) $project_id;
        if ($project_id <= 0) {
            throw new Exception('Invalid param project_id');
        }
        $action = "projects/$project_id/$this->action";
        if ($archive) {
            $action .= '/archive';
        }
        return $this->rest->get($action);
    }
public function getByProject ( $ project_id , $ archive = false ) { $ project_id = ( int ) $ project_id ; if ( $ project_id <= 0 ) { throw new Exception ( 'Invalid param project_id' ) ; } $ action = "projects/$project_id/$this->action" ; if ( $ archive ) { $ action .= '/archive' ; } return $ this -> rest -> get ( $ action ) ; }
Retrieve Multiple Messages

GET /projects/#{project_id}/posts.xml
For the project ID supplied, will return the 25 most recent messages

Get archived messages

GET /projects/#{project_id}/posts/archive.xml

Rather than the full message, this returns a summary record for each message in the specified project.

@param $project_id
@param bool $archive

@return \TeamWorkPm\Response\Model
@throws \TeamWorkPm\Exception
Retrieve Multiple Messages