Im trying to create a room using the LCCS PHP API.
When I call the createRoom function, i get the following error:
Warning: fopen(https://na2.collaboration.adobelivecycle.com:443/darkbearroom) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized in/home/content/t/h/u/thung/html/classroom/lccs.php on line 837
the page im using is here:
http://antoniohung.com/classroom/
Here is the source:
<?php
require_once("lccs.php");
$title = "LCCS External Authentication Sample";
ini_set('display_errors', 1);
#
# Enter your authentication details below:
#
$devuser = "";
$devpass = "";
$secret = "";
$am = new RTCAccount("http://collaboration.adobelivecycle.com/darkbearroom");
$am->login($devuser,$devpass);
try {
$room_array = $am->listRooms();
echo "Print Rooms" . "\n";
print_r($room_array);
$newRoom = $am->createRoom("aroom");
echo "Create Room" . "\n";
print_r($newRoom);
} catch (Exception $ex) {
// print_r($ex);
exit;
}
?>
I am able to list all the rooms using the listRooms() function, but I can't create the room.
Any help would be appricated
Solved! Go to Solution.
Views
Replies
Total Likes
Just found a simple fix for me... I changed line 291 from
$date .= "&{$this->authToken}";
to
$data .= "&{$this->authToken}";
I was getting an error daying undefined variable date... Fixed my that issue for me...
Thanks
Views
Replies
Total Likes
Getting a similar issue here with the latest SDK...
Views
Replies
Total Likes
Just found a simple fix for me... I changed line 291 from
$date .= "&{$this->authToken}";
to
$data .= "&{$this->authToken}";
I was getting an error daying undefined variable date... Fixed my that issue for me...
Thanks
Views
Replies
Total Likes
Nice catch! We will fix it ASAP and include it in the next SDK release.
Thanks,
Nikola
Views
Replies
Total Likes
that worked!! thank you!!!
Views
Replies
Total Likes