cURL Header

api-key specify your api-key to get access to API
user-client-token user client token
user-access-token user access token

response-type specify API response type : ("json" or "xml")
api-version specify required API version : ("v1.0" o "v1.1")

Insert hits

URL :

 http://api.westream.com/analytics/insert/event

Response :

{
    "message":"Hit insert",
    "code":200,
    "success":true
}
                    

Parameters :

idVideo(string) event(play/pause/complete) browser(string) ipAddress(userIP)

VOD

URL :

 http://api.westream.com/analytics/overview/vod

Response :

{
    "message":
                [
                    {
                        "idVideo":"abcd1234",
                        "title":"test title",
                        "date":"2016-03-04 16:45:52",
                        "count":"36"
                    },
                    {...}
                ],
    "code":200,
    "success":true
} 

Parameters :

username(string) 

URL :

 http://api.westream.com/analytics/overview/vod/browser

Response :

{
    "message":
                [
                    {
                        "idVideo":"abcd1234",
                        "title":"test title",
                        "date":"2016-03-04 16:45:52",
                        "count":"36"
                    },
                    {...}
                ],
    "code":200,
    "success":true
} 

Parameters :

username(string) 

LIVE

URL :

 http://api.westream.com/analytics/overview/live

Response :

{
    "message":
                [
                    {
                        "idLive":"abcd1234",
                        "title":"test title",
                        "date":"2016-03-04 16:45:52",
                        "count":"36"
                    },
                    {...}
                ],
    "code":200,
    "success":true
} 

Parameters :

username(string) 

URL :

 http://api.westream.com/analytics/overview/live/browser

Response :

{
    "message":
                [
                    {
                        "idVideo":"abcd1234",
                        "title":"test title",
                        "date":"2016-03-04 16:45:52",
                        "count":"36"
                    },
                    {...}
                ],
    "code":200,
    "success":true
} 

Parameters :

username(string)