public function getFeedComments($channelIdentifier, $postId, $accessToken, $limit = 10, $cursor = null)
    {
        if ($this->apiVersionIsGreaterThanV3() && !is_numeric($channelIdentifier)) {
            throw new InvalidIdentifierException('channel');
        }

        if (!is_string($postId)) {
            throw new InvalidTypeException('Post ID', 'string', gettype($postId));
        }

        if (!$this->isValidLimit($limit)) {
            throw new InvalidLimitException();
        }

        if ($cursor && !is_string($cursor)) {
            throw new InvalidTypeException('Cursor', 'string', gettype($cursor));
        }

        $params = [
            'limit' => intval($limit),
            'cursor' => $cursor,
        ];

        return $this->get(sprintf('feed/%s/posts/%s/comments', $channelIdentifier, $postId), $params, $accessToken);
    }
public function getFeedComments($channelIdentifier, $postId, $accessToken, $limit = 10, $cursor = null)
    {
        if ($this->apiVersionIsGreaterThanV3() && !is_numeric($channelIdentifier)) {
            throw new InvalidIdentifierException('channel');
        }

        if (!is_string($postId)) {
            throw new InvalidTypeException('Post ID', 'string', gettype($postId));
        }

        if (!$this->isValidLimit($limit)) {
            throw new InvalidLimitException();
        }

        if ($cursor && !is_string($cursor)) {
            throw new InvalidTypeException('Cursor', 'string', gettype($cursor));
        }

        $params = [
            'limit' => intval($limit),
            'cursor' => $cursor,
        ];

        return $this->get(sprintf('feed/%s/posts/%s/comments', $channelIdentifier, $postId), $params, $accessToken);
    }
public function getFeedComments ( $ channelIdentifier , $ postId , $ accessToken , $ limit = 10 , $ cursor = null ) { if ( $ this -> apiVersionIsGreaterThanV3 ( ) && ! is_numeric ( $ channelIdentifier ) ) { throw new InvalidIdentifierException ( 'channel' ) ; } if ( ! is_string ( $ postId ) ) { throw new InvalidTypeException ( 'Post ID' , 'string' , gettype ( $ postId ) ) ; } if ( ! $ this -> isValidLimit ( $ limit ) ) { throw new InvalidLimitException ( ) ; } if ( $ cursor && ! is_string ( $ cursor ) ) { throw new InvalidTypeException ( 'Cursor' , 'string' , gettype ( $ cursor ) ) ; } $ params = [ 'limit' => intval ( $ limit ) , 'cursor' => $ cursor , ] ; return $ this -> get ( sprintf ( 'feed/%s/posts/%s/comments' , $ channelIdentifier , $ postId ) , $ params , $ accessToken ) ; }
Get comments from a feed post

@param string|int $channelIdentifier
@param string     $postId
@param string     $accessToken
@param int        $limit
@param string     $cursor
@throws InvalidIdentifierException
@throws InvalidTypeException
@throws InvalidLimitException
@return array|json
Get comments from a feed post