edudipproxy

Implementation

In order to use our classroom, you must integrate the following methods in your system. The seminar room will contact your server via the defined URL (see here). The seminar room contacts the file „edudipproxy.php“ and gives out some of the following parameters.

The following parameters are always passed:

Parameter Type Description
action string Name of the actin, described below.
roomId int Unique room Id
customer string The name of your api solution

The result must be a JSON object. The following return parameters are mandatory:

Parameter Type Description
success bool Wheather the request was succed.
apiKey string The edudip api key (same as EDUDIP_API_KEY)
Version  x.x.x  Used API-Version.

Example of a valid return:

{"success":true,"StartingTime":"25.11.2011 11:00:00","CreatorImgUrl":"http:\/\/www.example\/12.png","EventTitle":<br /> "Lorem","EventDescription":"Lorem Ipsum","Moderators":["1234"],"EventSeriesId":"5678","EventId":"90123"}

 

Possible Actions

auth

Parameter
Parameter Type Description
userId int Unique UserId
Return
Parameter Type Description
Premium bool Is the user a premium member? If he is no premium Member the room will be stopped after the Duration (+10 minutes).
IsBetaTester bool Is the user a beta tester? If he is a beat tester the room will have special beta features. Is not required, default: true.
Role string(‚participants‘ | ‚moderator‘) Wheater the user is a participant or a moderator.

getRoomInfo

Parameter
Parameter Type Description
roomId int Unique room Id.
Return
Parameter Type Description
StartingTime dd.mm.yyyy hh:mm:ss Start time of the webinar.
Duration int Duration of the webinar.
CreatorImgUrl string Url to the avatar of the moderator (displayed in the lobby)
EventTitle string Title of the webinar (displayed in the lobby).
EventDescription string Description of the webinar.
EventCreator string Name of creator of the webinar (displayed in the lobby). [NEW since january 2013]
Moderators array(int) Array of unique User Id’s.
EventSeriesId int Unique event-series Id.
EventId int Unique event Id.
IsPremium bool Wheather it is a premium Room (must match the request of auth of the moderator)
Language en_US|de_DE|es_ES Used room language, i.e. for default slides [NEW since august 15, 2013]

Example

$action = $_REQUEST['action'];
$roomId = $_REQUEST['roomId'];
$customer = $_REQUEST['customer'];
 
$params = array();
 
switch ($action) {
	case 'auth':
		$userId = $_REQUEST['userId'];
 
		$params = array(
			'success' => 'true',
			'Premium' => 'true',
			'Role' => 'moderator',
			'Email' => 'info@edudip.com'
		);
 
		break;
 
	case 'getRoomInfo':
		$params = array(
			'success' => 'true',
			'StartingTime' => '14.06.2012 11:00:00',
			'CreatorImgUrl' => 'http://' . $_SERVER['SERVER_NAME']  . substr($_SERVER['REQUEST_URI'], 0, strrpos($_SERVER['REQUEST_URI'], '/')) . '/1234.png',
			'EventTitle' => 'Lorem ipsum',
			'EventDescription' => 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.',
			'Moderators' => array('4024'),
			'EventSeriesId' => $roomId,
			'EventId' => $roomId,
			'Duration' => '60',
			'IsPremium' => true
		);
		break;
 
	default:
		$params = array(
			'success' => 'false'
		);
		break;
}
 
$params['apiKey'] = '0x00000000000000000000000000000000';
$params['Version'] = '1.0.0';
 
echo json_encode($params);

Durch die weitere Nutzung der Seite stimmst du der Verwendung von Cookies zu. Weitere Informationen

Die Cookie-Einstellungen auf dieser Website sind auf "Cookies zulassen" eingestellt, um das beste Surferlebnis zu ermöglichen. Wenn du diese Website ohne Änderung der Cookie-Einstellungen verwendest oder auf "Akzeptieren" klickst, erklärst du sich damit einverstanden.

Schließen