I am trying to query our Kaltura videos to look for key words in a video description and return that video’s info. I am using baseEntry.list to do this. I can get the python code to work on on the API site using their “Try It” feature. When I try to run it on my computer I get a response but I can’t figure out how to process it. Below is the response I get:
<KalturaClient.Plugins.Core.KalturaBaseEntryListResponse object at 0x00000290BED12470>
My code:
from KalturaClient import *
from KalturaClient.Plugins.Core import *
import json
I’m using C# for Kaltura API calls, I’m not 100% up on python and Kaltura. The response isn’t JSON, as you said. That threw me for quite some time.
Python sees the result as an object. This object has a list of attributes you can query directly. You could try this code to show the attributes and values available.
# using __dict__ to access attributes
# of the object result along with their values
print(result.__dict__)
# to only access attributes
print(result.__dict__.keys())
# to only access values
print(n.__result__.values())