Skip to main content

Stream Object Detail Report 2

You can view the playing duration and IP information of the Zone available for your Stream objects at the specified time intervals using the API.

Parameters

Parameter

Type

Required

Description

user_key

string

Yes

API User Token

user_secret

string

Yes

API User Secret Token

from

string

Yes

Y-m-d date format.

to

string

Yes

Y-m-d date format.

zone_id

integer

Yes

Int value. It can be multiple.

Return Values

Variable

Type

object-name

string

played

integer

unique_ip

integer

duration

integer (in seconds)

Example PHP Code

CODE
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.medianova.com/v1/report/stream/object/list",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Example Output

CODE
{
  "status": true,
  "data": {
    "/obj/obj1.m4a": {
      "played": 4816,
      "unique_ip": 2284,
      "duration": 2641439
    },
    "/obj/64/obj1.m4a": {
      "played": 445,
      "unique_ip": 275,
      "duration": 1642512
    } 
  }
}

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.