public function view($sessionId, $mediaId)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode(['sessionId' => $sessionId, 'mediaId' => $mediaId], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/events/view', $parameters, true);

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

        $result = $this->post('v1/events/view', $parameters, true);

        return $result;
    }
public function view ( $ sessionId , $ mediaId ) { $ parameters = [ 'query' => [ ] , 'body' => json_encode ( [ 'sessionId' => $ sessionId , 'mediaId' => $ mediaId ] , JSON_UNESCAPED_UNICODE ) , 'headers' => [ ] , ] ; $ result = $ this -> post ( 'v1/events/view' , $ parameters , true ) ; return $ result ; }
Track a Media view.

NOTICE!
Execution of this call will be delayed until destruct!

@param int $sessionId The session id to log the view on
@param int $mediaId   The ID of the media that was viewed
Track a Media view .