Last active
April 4, 2017 02:26
-
-
Save ntd251/49d3bce363906aeac343261da54b5e16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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