appToken:startsession | |||||
---|---|---|---|---|---|
Description: | |||||
Starts a new KS (kaltura Session) based on application authentication token id |
|||||
Input Params | |||||
Name | Type | Description | Required | Default Value | Restrictions |
id | string | application token id | V | ||
tokenHash | string | hashed token, built of sha1 on current KS concatenated with the application token | V | ||
userId | string | session user id, will be ignored if a different user id already defined on the application token | |||
type | KalturaSessionType | session type, will be ignored if a different session type already defined on the application token | KalturaSessionType::USER | ||
expiry | int | session expiry (in seconds), could be overwritten by shorter expiry of the application token and the session-expiry that defined on the application token | |||
Output Type | |||||
KalturaSessionInfo | |||||
Errors | |||||
APP_TOKEN_ID_NOT_FOUND;ID;Application token id "@ID@" not found | |||||
Example HTTP Hit | |||||
http://www.kaltura.com/api_v3/?service=appToken&action=startsession POST fields: id tokenHash userId type expiry |