KalturaAPI:main

From Kaltura Wiki

Jump to: navigation, search

Contents

[edit] Introduction

Kaltura's Application Programming Interfaces (APIs) allow partners to interact with the platform through web-services. API's are based on the REST principles Where each request can be an HTTP POST or GET, and the response is a gziped content (If client specified that gzip is supported).

Each Kaltura API method located at a unique URL:

http://www.kaltura.com/api/methodname where [method name] is the name of the API method.

In order to use the Kaltura API please make sure you are properly prepared for the integration.

General API Inputs and Outputs - Read about it here

API Test Console -A reference implementation can be found at Test Console

[edit] Kaltura Objects

  • Entry - An entry is a media entity and it's meta data on the Kaltura servers. It can be an image, a sound clip, a video or a rough-cut (explained below) wrapped with vast information such as dates, titles, tags, ratings and more. The Kaltura extensive API enables its partners to create galleries, lists, playlists and more by calling up various entry-related API calls as well as edit this information on the fly.
  • KShow - A KShow (Kaltura Show) is a 'container' of related entries. The main use of a kshow is as the 'higher entity' of a remix and contains all of the images, sound clips, videos and rough-cuts that create one remix. A kshow is also playable by the KDP and when played it redirects to the most recent version of the rough-cut in the kshow (as a rough-cut can be edited and manipulated). Similar to an entry, A Kshow is also wrapped with metadata and has an extensive representation in the Kaltura API. Note a KShow can be used to store entries related to a specific user or topic (regardless of mixes).
  • User (Partner User) - Representation of partner's user in Kaltura's DB.
  • Widget - A widget represents a KDP which is either bound to a specific media clip (in the case of media embedded in an external site) or a KDP that can show a gallery of media clips which can be selected via flashvars and javascript calls.
  • UIConf (Internal) - XML configuration file for various Kaltura components (KDP, KSE, KCW)
  • Also see Filter Operators, Entry Filter (Input) and KShow Filter (Input).


[edit] Kaltura Session (KS)

Kaltura servers authenticate calls using a KS (Kaltura session). A Kaltura session is generated using the startsession API call. Each KS includes a partner, sub partner, user id, API secret and optional privileges. The KS is used to call additional API calls and to allow the client side (Flex) components to send authenticated calls to Kaltura servers.

Security note: you should never let your partner secret leave your servers. It is used solely for creating a KS which can be passed to untrusted clients (e.g. browser, flex component). Likewise, an admin KS (created using the startsession and the admin secret) should never reach the browser as well. By letting users access an admin KS they will be able to cause changes not limited to their own media.

The user id passed in all of the Kaltura API calls is the user id on your system (e.g. a numeric id, screen name, email). Whenever a call is made, Kaltura’s system will implicitly create a record for the user on its servers.

[edit] Methods


[edit] Enumerations


[edit] Notifications

Sent by the Kaltura servers to a partner system. These notifications enable a partner system to provide its own searching capabilities and caching for Kaltura stored data. The Kaltura servers log required operations and then send notifications asynchronously. The Kaltura servers send notifications using HTTP post requests to a given dispatcher URL on the partner host servers. Read detailed information on our Notifications wiki page and get a list of available notifications.

Also check out our Process a Notification How-To Guide.

[edit] Extra URL Services

These services are actually dynamic urls which return media (images and videos).
To access these services the following format should be used: http://cdn.kaltura.com/p/{partner_id}/sp/{subp_id}/servicename/{params}.

Service Name General Description
thumbnail Return the thumbnail (or actual image) of an entry resized and modified as requested.
flvclipper Returns a trimmed video file of an entry.
raw Returns a the raw (original pre-transcoding) version of an entry.


[edit] API Message Board

Visit our API community forum, ask questions or make suggestions.

Personal tools