src/Message/Reply.php
public function getByMessage($message_id, array $params = [])
    {
        $message_id = (int) $message_id;
        if ($message_id <= 0) {
            throw new Exception('Invalid param message_id');
        }
        $validate = ['page', 'pagesize'];
        foreach ($params as $name=>$value) {
            if (!in_array(strtolower($name), $validate)) {
                unset($params[$name]);
            }
        }
        return $this->rest->get("messages/$message_id/replies", $params);
    }
public function getByMessage($message_id, array $params = [])
    {
        $message_id = (int) $message_id;
        if ($message_id <= 0) {
            throw new Exception('Invalid param message_id');
        }
        $validate = ['page', 'pagesize'];
        foreach ($params as $name=>$value) {
            if (!in_array(strtolower($name), $validate)) {
                unset($params[$name]);
            }
        }
        return $this->rest->get("messages/$message_id/replies", $params);
    }
public function getByMessage ( $ message_id , array $ params = [ ] ) { $ message_id = ( int ) $ message_id ; if ( $ message_id <= 0 ) { throw new Exception ( 'Invalid param message_id' ) ; } $ validate = [ 'page' , 'pagesize' ] ; foreach ( $ params as $ name => $ value ) { if ( ! in_array ( strtolower ( $ name ) , $ validate ) ) { unset ( $ params [ $ name ] ) ; } } return $ this -> rest -> get ( "messages/$message_id/replies" , $ params ) ; }
Retrieve Replies to a Message

GET /messages/#{id}/replies.xml

Uses the given messsage ID to retrieve a all replies to a message specified in the url.
By default 20 records are returned at a time. You can pass "page" and "pageSize" to change this:
eg. GET /messages/54/replies.xml?page=2&pageSize=50.

The following headers are returned:
"X-Records" - The total number of replies
"X-Pages" - The total number of pages
"X-Page" - The page you requested

@param <type> $id
@param array $params

@return \TeamWorkPm\Response\Model
@throws \TeamWorkPm\Exception
Retrieve Replies to a Message