Hello,
I want to use the report.getTable function to retrieve TOP_USER_CONTENT][47] . I am able to start a client session with Kaltura using app tokens, but I am getting a SERVICE_FORBIDDEN error when I am trying to use the report.getTable sample code mentioned in the DEVELOPER documentation. I have a session type “USER” created for me along with the following Kaltura App token details by my team mate : id , token, partnerId, sessionDuration and sessionPrivileges. I have also added the getTable Python code which I am using. Can someone tell me what am I doing wrong. Feedbacks are appreciated.
#getTable
reportType = KalturaReportType.TOP_USER_CONTENT
reportInputFilter = KalturaReportInputFilter()
reportInputFilter.categories =“MediaSpace>site>channels>channel_name”
reportInputFilter.fromDay = “20221201”
reportInputFilter.toDay = “20221225”
pager = KalturaFilterPager()
pager.pageIndex = 1
pager.pageSize = 20
order = None
object_ids=None
response_options = KalturaReportResponseOptions()
result = client.report.getTable(reportType, reportInputFilter, pager,order,object_ids,response_options)
print(result)
Thank you.