Mediasite PHP Class

A simple class for interacting with the Mediasite API. Download

Basic Setup

// Include the class
require 'Mediasite.class.php';

// Settings
$server = '';
$apikey = 'apikey_string';
$username = 'username';
$password = 'password';

// Initialize the class
$ms = new Mediasite($server, $apikey, $username, $password);

Sample Requests

Create a Presentation and Upload a Video To It

// Create Presentation
$presentation = $ms->createPresentation('Title', $user);

// Upload Video to Presentation
$video_path = PATH_TO_THE_VIDEO;
$upload = $ms->uploadVideo($presentation['Id'], $video_path);

// Show the URL of the new presentation
echo $upload;

View/Fork on Github