Copy link to clipboard
Copied
Hi,
I am new to adobe connect. Can you please provide sample code or procedure to do so?
How can I integrate adobe connect to create rooms with php site ?
Please help me on this.
Copy link to clipboard
Copied
All API documentation is available here: Adobe Connect | Adobe Developer Connection
You will want the Connect 9 Web Services guide.
Copy link to clipboard
Copied
Hi Jorma,
Thanks for your reply. I have read this and using this and curl with php to integrate single sign on. I am using this code:
<?php
session_start();
header('content-type:text/html; charset=utf-8');
$email=$_POST['email'];
$password=$_POST['password'];
$ch = curl_init('https://groupmeditate.adobeconnect.com/api/xml?action=common-info');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
if ($data === false) {
exit('Error1, ' . curl_error($ch) . "\n");
}
curl_close($ch);
$user = simplexml_load_string($data);
function object2array($object)
{
return @json_decode(@json_encode($object),1);
}
$datas = object2array($user);
//print_r($datas);
$status_code=$datas['status']['@attributes']['code'];
$accountid=$datas['common']['account']['@attributes']['account-id'];
if($status_code=="ok"){
$confses = $user->common->cookie;
}else {
exit("error1");
}
$ch = curl_init("https://groupmeditate.adobeconnect.com/api/xml?action=login&login=$email&password=$password&account-...");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$s = curl_exec($ch);
if ($s === false) {
exit('Error2, ' . curl_error($ch) . "\n");
}
curl_close($ch);
echo $login->status[code];
$login = simplexml_load_string($s);
if($login->status
=="ok"){
?>
<a href="https://groupmeditate.adobeconnect.com/testing/">Enter Chat</a>
<?php
}
?>
But when clicking on "Enter Chat" link, its goes to adobe connect login page. Please help me with this.
Copy link to clipboard
Copied
You should call the session ID in the link to the meeting room (Enter Chat link). I believe that will pass the user credentials.
http://groupmediate.adobeconnect.com/testing/?session=$confses
Step 4 in this process: Adobe Connect 9 * Launch meetings with external authentication
Copy link to clipboard
Copied
I really appreciate that you are giving your valuable time. But unfortunately, its also not working. I am redirected to login page after passing session id too.
Copy link to clipboard
Copied
Are you calling for the session ID before or after you log in the user (sorry, not a developer so I'm not going to make assumptions based on your code)? Connect will provide a session ID when you call it and a new one when you log in. It may be that you are just using the first session ID which wouldn't have any log in credentials.
Copy link to clipboard
Copied
Initially, I was using first session id but now I am using second session id and still facing the same error.