public function createFeedComment($channelIdentifier, $postId, $accessToken, $comment)
    {
        if ($this->apiVersionIsGreaterThanV3() && !is_numeric($channelIdentifier)) {
            throw new InvalidIdentifierException('channel');
        }

        if (!is_string($comment)) {
            throw new InvalidTypeException('Comment', 'string', gettype($comment));
        }

        $params = [
            'content' => $comment,
        ];

        return $this->post(sprintf('feed/%s/posts/%s/comments', $channelIdentifier, $postId), $params, $accessToken);
    }
public function createFeedComment($channelIdentifier, $postId, $accessToken, $comment)
    {
        if ($this->apiVersionIsGreaterThanV3() && !is_numeric($channelIdentifier)) {
            throw new InvalidIdentifierException('channel');
        }

        if (!is_string($comment)) {
            throw new InvalidTypeException('Comment', 'string', gettype($comment));
        }

        $params = [
            'content' => $comment,
        ];

        return $this->post(sprintf('feed/%s/posts/%s/comments', $channelIdentifier, $postId), $params, $accessToken);
    }
public function createFeedComment ( $ channelIdentifier , $ postId , $ accessToken , $ comment ) { if ( $ this -> apiVersionIsGreaterThanV3 ( ) && ! is_numeric ( $ channelIdentifier ) ) { throw new InvalidIdentifierException ( 'channel' ) ; } if ( ! is_string ( $ comment ) ) { throw new InvalidTypeException ( 'Comment' , 'string' , gettype ( $ comment ) ) ; } $ params = [ 'content' => $ comment , ] ; return $ this -> post ( sprintf ( 'feed/%s/posts/%s/comments' , $ channelIdentifier , $ postId ) , $ params , $ accessToken ) ; }
Create a feed post comment

@param string|int $channelIdentifier
@param string     $postId
@param string     $accessToken
@param string     $comment
@throws InvalidIdentifierException
@throws InvalidTypeException
@return array|json
Create a feed post comment