aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/TwilloConnector.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/classes/TwilloConnector.php')
-rw-r--r--lib/classes/TwilloConnector.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/classes/TwilloConnector.php b/lib/classes/TwilloConnector.php
index 7a57583..40ceff8 100644
--- a/lib/classes/TwilloConnector.php
+++ b/lib/classes/TwilloConnector.php
@@ -50,14 +50,14 @@ class TwilloConnector
public static function uploadMaterial(OERMaterial $material, $user_id = null)
{
$user_id || $user_id = User::findCurrent()->id;
- $base = new EduSharingHelperBase(
+ $base = new \EduSharingApiClient\EduSharingHelperBase(
self::$twillo_base_url,
file_get_contents($GLOBALS['STUDIP_BASE_PATH']."/config/twillo-private.key"),
Config::get()->OERCAMPUS_TWILLO_APPID,
self::getHttpProxy()
// 'data-quest-Test'
);
- $authHelper = new EduSharingAuthHelper($base);
+ $authHelper = new \EduSharingApiClient\EduSharingAuthHelper($base);
if (!static::$ticket) {
static::$ticket = $authHelper->getTicketForUser(TwilloConnector::getTwilloUserID($user_id));
}
@@ -261,13 +261,13 @@ class TwilloConnector
{
$user_id || $user_id = User::findCurrent()->id;
- $base = new EduSharingHelperBase(
+ $base = new \EduSharingApiClient\EduSharingHelperBase(
self::$twillo_base_url,
file_get_contents($GLOBALS['STUDIP_BASE_PATH']."/config/twillo-private.key"),
Config::get()->OERCAMPUS_TWILLO_APPID,
self::getHttpProxy()// 'data-quest-Test'
);
- $authHelper = new EduSharingAuthHelper($base);
+ $authHelper = new \EduSharingApiClient\EduSharingAuthHelper($base);
if (!static::$ticket) {
static::$ticket = $authHelper->getTicketForUser(TwilloConnector::getTwilloUserID($user_id));
}