/
Stats
Stats
Stats API enables user for log user stats. When user play or stop any channel or VOD. On the basis of stats we are calculate user access on system
Create Playback stats log
Version2.0
Since
Not tracked
Parameters
string$userEmail
Exceptions
CApiException
CException
CannotGetSessionHandlerFactoryException When user play any content related to channel and VOD.
Request
Method Type | URL | Authorization |
---|---|---|
POST | https://domain.tld/api/user/<userEmail>/<modelName>/<id>/playback | Service |
Querystrings
Please note that M is for Mandatory and O for Optional.
Parameter | M/O | Description |
---|---|---|
service | M | Service to which the user belongs. |
userEmail | M | Login User Email |
modelName | M | vod ,channel |
id | M | Id of Vod,channel |
action | M | start,stop,progress |
app | O | application type like HTML5 |
ver | O | version of application |
platform | O | platform of user like andriod,ipad Air |
os_ver | O | operating system version of application |
access | O | stream |
client_ip_address | O | IP address of user |
JSON Error Codes
Error Code | Description |
---|---|
800 | STATS_PARAM_MISSING_MODEL |
801 | STATS_PARAM_INVALID_MODEL |
803 | STATS_PARAM_MISSING_ACTION |
804 | STATS_PARAM_INVALID_ACTION |
806 | STATS_PARAM_INVALID_ACCESS |
802 | STATS_PARAM_MISSING_ID |
805 | STATS_PARAM_INVALID_DURATION |
500 | VOD_PARAM_INVALID_VOD_ID |
600 | CHANNEL_PARAM_INVALID_CH_ID |
JSON Response
In case of correct Post callback getting empty 200 ok response