boclips/kaltura-client


A sensible abstraction over a subset of the Kaltura API V3

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.boclips:kaltura-client:6.0.3'
	}
	dependencies {
		implementation("com.github.boclips:kaltura-client:6.0.3")
	}
	<dependency>
	    <groupId>com.github.boclips</groupId>
	    <artifactId>kaltura-client</artifactId>
	    <version>6.0.3</version>
	</dependency>

                            
    libraryDependencies += "com.github.boclips" % "kaltura-client" % "6.0.3"
        
        

                            
    :dependencies [[com.github.boclips/kaltura-client "6.0.3"]]
        
        

Readme


Klient

After trying the official Java Kaltura Client, we felt strong urge to write our own. The goal of Klient is to make interactions with Kaltura less painful and fix various shortcomings.

Use

Latest version:

compile 'com.github.knowledgemotion:kaltura-client:<tag>'

Check different available versions.

Test

The tests consist of offline unit and integration tests:

./gradlew test

In order to run the contract tests (which require internet connectivity), run:

./gradlew testContract

In order for them to run successfully, the following environment variables need to be present:

PARTNER_ID
USER_ID
SECRET

Execute src/test_contract/resources/setup-contract-test to download some secret configuration from lastpass.