Controller/MediaController.php
public function createComment($mediaId, Comment $comment)
        {
            $parameters = [
            'query' => [],
            'body' => json_encode(['comment' => $comment], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

            $result = $this->post('v1/media/' . $mediaId . '/comments', $parameters);
            $result = new CommentResponse($result);

            return $result;
        }
public function createComment($mediaId, Comment $comment)
        {
            $parameters = [
            'query' => [],
            'body' => json_encode(['comment' => $comment], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

            $result = $this->post('v1/media/' . $mediaId . '/comments', $parameters);
            $result = new CommentResponse($result);

            return $result;
        }
Post a comment on a media.

, leave username and useremail empty to post as the user that is logged on to the API.

@param  int             $mediaId the media to post the comment on
@param  Comment         $comment The comment to post
@return CommentResponse