Skip to content

Instantly share code, notes, and snippets.

@ntd251
Last active April 4, 2017 02:26
Show Gist options
  • Save ntd251/49d3bce363906aeac343261da54b5e16 to your computer and use it in GitHub Desktop.
Save ntd251/49d3bce363906aeac343261da54b5e16 to your computer and use it in GitHub Desktop.
require 'kaltura'
# Kindly replace partnerID, email, and pwd with corresponding values
#
KALTURA_PARTNER_ID = 'partnerID'
KALTURA_USERNAME = 'email'
KALTURA_PASSWORD = 'pwd'
KALTURA_SERVICE_URL = 'http://console-sgs1.ott.kaltura.com/restful'
config = Kaltura::KalturaConfiguration.new
config.service_url = KALTURA_SERVICE_URL
KalturaClient = Kaltura::KalturaClient.new config
response = KalturaClient.ott_user_service.login(
KALTURA_PARTNER_ID,
KALTURA_USERNAME,
KALTURA_PASSWORD
)
KalturaClient.ks = response.login_session.ks
KalturaClient.user_id = response.user.id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment