Copyright © 2011 Kaltura Inc.
All Rights Reserved. Designated trademarks and brands are the property of their respective owners.
Use of this web site constitutes acceptance of the Terms of Use and Privacy Policy.
EduVideo.org
First of all, when I create session through the console, it will automatically fill in the ks value unequal to what is the answer.
Ie field is automatically filled with this value:
ZGZiMzhhYWM4OWVjNDI2NTgxNmFjNGM1NDdjM2Q3ODNlNzIyZGMxZnwzMjMzMDszMjMzMDsxMjQ4MjY0NjkzOzE7MTI0ODE3ODI5My45NjE4OztlZGl0Oio =
and the response comes:
..
MGJlZjJjNDYwZGNmNmVkNWNkMjM4ZjBlYmEzYTFjMDQ5OWU2ZDM4YnwzMjMzMDszMjMzMDsxMjQ4MjY0Njk1OzE7MTI0ODE3ODI5NS40NzQ1OztlZGl0Oio =
..
And most importantly: every time I try to use the session (eg add entety), I returned an error:
INVALID_KS
Invalid KS [ZGZiMzhhYWM4OWVjNDI2NTgxNmFjNGM1NDdjM2Q3ODNlNzIyZGMxZnwzMjMzMDszMjMzMDsxMjQ4MjY0NjkzOzE7MTI0ODE3ODI5My45NjE4OztlZGl0Oio =]. Error [-4, INVALID_TYPE]
The data that I convey in the creation of the session (startsession):
startsession
partner_id: --
subp_id: --
secret (admin): --
admin: 1
expiry: 86400
privileges: edit: *
Make sure you're using the right secret for the job. Some API calls require admin privileges (i.e. admin = 1), whereas others require user privileges (i.e. admin = 0). A work around which I only very recently discovered is that if you set admin to 2 and use the admin secret, then you get both admin and user privileges.
The important thing to note with the error messages you've been getting is not the INVALID_KS part, but the INVALID_TYPE part. When you get that error chances are you're just using an admin session instead of a user session (or vice versa).
For a basic introduction to the TestMe console refer to:
http://www.kaltura.org/kaltura-api-and-testme-console-introduction
Thanks for the document Chris. - you're awesome!
Guys, the real problem you are having is as Chris said - using the wrong KS.
For addEntry call you need to use user KS - this is why the service returned INVALID TYPE.
The new api_v3 API and clients, will form an easier notion of using KS.
It will soon be released with documentation - stay tuned.
Interesting post dude....discussion are always helpful in one way or the other. Thanks for giving out information. It’s really nice and mean full.
I have the same problem when calling getEntry or getEntries.