Re: REST API to upload file

2020-04-28 Thread K. Kamhamea
I cannot find a search function.

Am Mi., 29. Apr. 2020 um 07:42 Uhr schrieb Maxim Solodovnik <
solomax...@gmail.com>:

> ML == mailing lists
> https://openmeetings.apache.org/mailing-lists.html
>
> On Wed, 29 Apr 2020 at 12:41, K. Kamhamea  wrote:
> >
> > Waht is " ML archives " ?
> >
> > Am Mi., 29. Apr. 2020 um 03:47 Uhr schrieb Maxim Solodovnik <
> solomax...@gmail.com>:
> >>
> >> On Tue, 28 Apr 2020 at 23:20, K. Kamhamea 
> wrote:
> >> >
> >> > Does the file upload with moodle really work? I doubt so, as header
> and body in my requests look almost the same no matter which software I use
> to generate it.
> >>
> >> Yes
> >>
> >> >
> >> > Is it possible that it depends on the content of the fileDTO? What
> fields are required in that structure.
> >>
> >> No
> >>
> >> >
> >> > Also can I turn some debug on, so the server will print more detailed
> information about the cause of the error?
> >>
> >> Yes
> >> Please search ML archives :)
> >>
> >> >
> >> > Am Di., 28. Apr. 2020 um 14:42 Uhr schrieb Maxim Solodovnik <
> solomax...@gmail.com>:
> >> >>
> >> >> Please check sources for moodle plugin
> >> >>
> >> >> On Tue, Apr 28, 2020, 19:06 K. Kamhamea 
> wrote:
> >> >>>
> >> >>> Has anyone successfully used file upload with WebServices. I always
> get an HTTP 415 error.
> >> >>> And of course I used headers
> >> >>>
> >> >>> 'Content-type': "multipart/form-data"
> >> >>>
> >> >>>
> >> >>> There is a discrepancy in the documentation.
> >> >>> While
> >> >>>
> http://openmeetings.apache.org/openmeetings-webservice/apidocs/org/apache/openmeetings/webservice/FileWebService.html
> >> >>> says there are 3 parameters necessary
> >> >>> The xml documentation lists only two sid and stream
> >> >>>
> >> >>>
> >> >>>   
> >> >>>  
> >> >>> 
> >> >>> 
> >> >>> />
> >> >>> 
> >> >>>  
> >> >>>  
> >> >>> 
> >> >>>  
> >> >>>   
> >> >>>
> >> >>> Also the parameter name 'steam' is not accepted at all, as I get an
> 400 or 500 error. If I send the stream by the name 'file', as usual, I get
> 415.
> >> >>>
> >> >>> Unfortunately the catalina.out file doesn't report much more
> information.
> >> >>>
> >> >>>
> >> >>>
> >>
> >>
> >> --
> >> Best regards,
> >> Maxim
>
>
>
> --
> Best regards,
> Maxim
>


Re: REST API to upload file

2020-04-28 Thread K. Kamhamea
 This is headers and body of sending a one pixel transparent png image that
triggers an 415 response.

'body': b'--668f009a1a08af558360542449ab33d1\r\nContent-Disposition:
form-da'
  b'ta; name="file"\r\n\r\n{"ownerId": 12, "name": "spacer.png",
"ro'
  b'omId": 50, "externalType": "WebCMS", "externalId": "G25",
"type"'
  b':
"Image"}\r\n--668f009a1a08af558360542449ab33d1\r\nContent-Disp'
  b'osition: form-data; name="stream";
filename="spacer.png"\r\nConten'
  b't-Type: application/octet-stream\r\n\r\n\x89PNG\r\n\x1a\n'

b'\x00\x00\x00\rIHDR\x00\x00\x00\x01\x00\x00\x00\x01\x08\x04\x00\x00'

b'\x00\xb5\x1c\x0c\x02\x00\x00\x00\x04gAMA\x00\x00\xaf\xc87\x05\x8a'
  b'\xe9\x00\x00\x00\x0bIDAT\x08\xd7c``\x00\x00\x00\x03\x00\x01'
  b'
\xd5\x94\xc7\x00\x00\x00\x00IEND\xaeB`\x82\r\n--668f009a1a08af55'
  b'8360542449ab33d1--\r\n',
  'headers': {'Content-Length': '472', 'Content-Type':
'multipart/form-data; boundary=668f009a1a08af558360542449ab33
d1'},

If I add an "Content-Type: application/json" to the body's fileDTO part as
the moodle plugin would do. I get a 400 response.


  'body': b'--8ec1f812815cd9e98b34312c6d1a6d52\r\nContent-Disposition:
form-da'
  b'ta; name="file"\r\nContent-Type:
application/json\r\n\r\n{"ownerId'
  b'": 12, "name": "spacer.png", "roomId": 50, "externalType":
"WebC'
  b'MS", "externalId": "G25", "type":
"Image"}\r\n--8ec1f812815cd9e98b'
  b'34312c6d1a6d52\r\nContent-Disposition: form-data;
name="stream"; f'
  b'ilename="spacer.png"\r\nContent-Type: application/octet-stream'
  b'\r\n\r\n\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x01'

b'\x00\x00\x00\x01\x08\x04\x00\x00\x00\xb5\x1c\x0c\x02\x00\x00\x00'

b'\x04gAMA\x00\x00\xaf\xc87\x05\x8a\xe9\x00\x00\x00\x0bIDAT\x08\xd7c'
  b'``\x00\x00\x00\x03\x00\x01 \xd5\x94\xc7\x00\x00\x00\x00IEND'
  b'\xaeB`\x82\r\n--8ec1f812815cd9e98b34312c6d1a6d52--\r\n',
  'headers': {'Content-Length': '504', 'Content-Type':
'multipart/form-data; boundary=8ec1f812815cd9e98b34312c6d1a6d
52'},

Can someone send me such a minimalized headers body combination that
actually works to test my system?

Best K


Am Mi., 29. Apr. 2020 um 07:40 Uhr schrieb K. Kamhamea <
kamha...@googlemail.com>:

> Waht is " ML archives " ?
>
> Am Mi., 29. Apr. 2020 um 03:47 Uhr schrieb Maxim Solodovnik <
> solomax...@gmail.com>:
>
>> On Tue, 28 Apr 2020 at 23:20, K. Kamhamea 
>> wrote:
>> >
>> > Does the file upload with moodle really work? I doubt so, as header and
>> body in my requests look almost the same no matter which software I use to
>> generate it.
>>
>> Yes
>>
>> >
>> > Is it possible that it depends on the content of the fileDTO? What
>> fields are required in that structure.
>>
>> No
>>
>> >
>> > Also can I turn some debug on, so the server will print more detailed
>> information about the cause of the error?
>>
>> Yes
>> Please search ML archives :)
>>
>> >
>> > Am Di., 28. Apr. 2020 um 14:42 Uhr schrieb Maxim Solodovnik <
>> solomax...@gmail.com>:
>> >>
>> >> Please check sources for moodle plugin
>> >>
>> >> On Tue, Apr 28, 2020, 19:06 K. Kamhamea 
>> wrote:
>> >>>
>> >>> Has anyone successfully used file upload with WebServices. I always
>> get an HTTP 415 error.
>> >>> And of course I used headers
>> >>>
>> >>> 'Content-type': "multipart/form-data"
>> >>>
>> >>>
>> >>> There is a discrepancy in the documentation.
>> >>> While
>> >>>
>> http://openmeetings.apache.org/openmeetings-webservice/apidocs/org/apache/openmeetings/webservice/FileWebService.html
>> >>> says there are 3 parameters necessary
>> >>> The xml documentation lists only two sid and stream
>> >>>
>> >>>
>> >>>   
>> >>>  
>> >>> 
>> >>> 
>> >>>
>> >>> 
>> >>>  
>> >>>  
>> >>> 
>> >>>  
>> >>>   
>> >>>
>> >>> Also the parameter name 'steam' is not accepted at all, as I get an
>> 400 or 500 error. If I send the stream by the name 'file', as usual, I get
>> 415.
>> >>>
>> >>> Unfortunately the catalina.out file doesn't report much more
>> information.
>> >>>
>> >>>
>> >>>
>>
>>
>> --
>> Best regards,
>> Maxim
>>
>


Re: REST API to upload file

2020-04-28 Thread Maxim Solodovnik
ML == mailing lists
https://openmeetings.apache.org/mailing-lists.html

On Wed, 29 Apr 2020 at 12:41, K. Kamhamea  wrote:
>
> Waht is " ML archives " ?
>
> Am Mi., 29. Apr. 2020 um 03:47 Uhr schrieb Maxim Solodovnik 
> :
>>
>> On Tue, 28 Apr 2020 at 23:20, K. Kamhamea  wrote:
>> >
>> > Does the file upload with moodle really work? I doubt so, as header and 
>> > body in my requests look almost the same no matter which software I use to 
>> > generate it.
>>
>> Yes
>>
>> >
>> > Is it possible that it depends on the content of the fileDTO? What fields 
>> > are required in that structure.
>>
>> No
>>
>> >
>> > Also can I turn some debug on, so the server will print more detailed 
>> > information about the cause of the error?
>>
>> Yes
>> Please search ML archives :)
>>
>> >
>> > Am Di., 28. Apr. 2020 um 14:42 Uhr schrieb Maxim Solodovnik 
>> > :
>> >>
>> >> Please check sources for moodle plugin
>> >>
>> >> On Tue, Apr 28, 2020, 19:06 K. Kamhamea  wrote:
>> >>>
>> >>> Has anyone successfully used file upload with WebServices. I always get 
>> >>> an HTTP 415 error.
>> >>> And of course I used headers
>> >>>
>> >>> 'Content-type': "multipart/form-data"
>> >>>
>> >>>
>> >>> There is a discrepancy in the documentation.
>> >>> While
>> >>> http://openmeetings.apache.org/openmeetings-webservice/apidocs/org/apache/openmeetings/webservice/FileWebService.html
>> >>> says there are 3 parameters necessary
>> >>> The xml documentation lists only two sid and stream
>> >>>
>> >>>
>> >>>   
>> >>>  
>> >>> 
>> >>> 
>> >>>
>> >>> 
>> >>>  
>> >>>  
>> >>> 
>> >>>  
>> >>>   
>> >>>
>> >>> Also the parameter name 'steam' is not accepted at all, as I get an 400 
>> >>> or 500 error. If I send the stream by the name 'file', as usual, I get 
>> >>> 415.
>> >>>
>> >>> Unfortunately the catalina.out file doesn't report much more information.
>> >>>
>> >>>
>> >>>
>>
>>
>> --
>> Best regards,
>> Maxim



-- 
Best regards,
Maxim


Re: REST API to upload file

2020-04-28 Thread K. Kamhamea
Waht is " ML archives " ?

Am Mi., 29. Apr. 2020 um 03:47 Uhr schrieb Maxim Solodovnik <
solomax...@gmail.com>:

> On Tue, 28 Apr 2020 at 23:20, K. Kamhamea  wrote:
> >
> > Does the file upload with moodle really work? I doubt so, as header and
> body in my requests look almost the same no matter which software I use to
> generate it.
>
> Yes
>
> >
> > Is it possible that it depends on the content of the fileDTO? What
> fields are required in that structure.
>
> No
>
> >
> > Also can I turn some debug on, so the server will print more detailed
> information about the cause of the error?
>
> Yes
> Please search ML archives :)
>
> >
> > Am Di., 28. Apr. 2020 um 14:42 Uhr schrieb Maxim Solodovnik <
> solomax...@gmail.com>:
> >>
> >> Please check sources for moodle plugin
> >>
> >> On Tue, Apr 28, 2020, 19:06 K. Kamhamea 
> wrote:
> >>>
> >>> Has anyone successfully used file upload with WebServices. I always
> get an HTTP 415 error.
> >>> And of course I used headers
> >>>
> >>> 'Content-type': "multipart/form-data"
> >>>
> >>>
> >>> There is a discrepancy in the documentation.
> >>> While
> >>>
> http://openmeetings.apache.org/openmeetings-webservice/apidocs/org/apache/openmeetings/webservice/FileWebService.html
> >>> says there are 3 parameters necessary
> >>> The xml documentation lists only two sid and stream
> >>>
> >>>
> >>>   
> >>>  
> >>> 
> >>> 
> >>>
> >>> 
> >>>  
> >>>  
> >>> 
> >>>  
> >>>   
> >>>
> >>> Also the parameter name 'steam' is not accepted at all, as I get an
> 400 or 500 error. If I send the stream by the name 'file', as usual, I get
> 415.
> >>>
> >>> Unfortunately the catalina.out file doesn't report much more
> information.
> >>>
> >>>
> >>>
>
>
> --
> Best regards,
> Maxim
>


Re: REST API to upload file

2020-04-28 Thread Maxim Solodovnik
On Tue, 28 Apr 2020 at 23:20, K. Kamhamea  wrote:
>
> Does the file upload with moodle really work? I doubt so, as header and body 
> in my requests look almost the same no matter which software I use to 
> generate it.

Yes

>
> Is it possible that it depends on the content of the fileDTO? What fields are 
> required in that structure.

No

>
> Also can I turn some debug on, so the server will print more detailed 
> information about the cause of the error?

Yes
Please search ML archives :)

>
> Am Di., 28. Apr. 2020 um 14:42 Uhr schrieb Maxim Solodovnik 
> :
>>
>> Please check sources for moodle plugin
>>
>> On Tue, Apr 28, 2020, 19:06 K. Kamhamea  wrote:
>>>
>>> Has anyone successfully used file upload with WebServices. I always get an 
>>> HTTP 415 error.
>>> And of course I used headers
>>>
>>> 'Content-type': "multipart/form-data"
>>>
>>>
>>> There is a discrepancy in the documentation.
>>> While
>>> http://openmeetings.apache.org/openmeetings-webservice/apidocs/org/apache/openmeetings/webservice/FileWebService.html
>>> says there are 3 parameters necessary
>>> The xml documentation lists only two sid and stream
>>>
>>>
>>>   
>>>  
>>> 
>>> 
>>>
>>> 
>>>  
>>>  
>>> 
>>>  
>>>   
>>>
>>> Also the parameter name 'steam' is not accepted at all, as I get an 400 or 
>>> 500 error. If I send the stream by the name 'file', as usual, I get 415.
>>>
>>> Unfortunately the catalina.out file doesn't report much more information.
>>>
>>>
>>>


-- 
Best regards,
Maxim


Re: REST API to upload file

2020-04-28 Thread K. Kamhamea
Does the file upload with moodle really work? I doubt so, as header and
body in my requests look almost the same no matter which software I use to
generate it.

Is it possible that it depends on the content of the fileDTO? What fields
are required in that structure.

Also can I turn some debug on, so the server will print more detailed
information about the cause of the error?

Am Di., 28. Apr. 2020 um 14:42 Uhr schrieb Maxim Solodovnik <
solomax...@gmail.com>:

> Please check sources for moodle plugin
>
> On Tue, Apr 28, 2020, 19:06 K. Kamhamea  wrote:
>
>> Has anyone successfully used file upload with WebServices. I always get
>> an HTTP 415 error.
>> And of course I used headers
>>
>> 'Content-type': "multipart/form-data"
>>
>>
>> There is a discrepancy in the documentation.
>> While
>>
>> http://openmeetings.apache.org/openmeetings-webservice/apidocs/org/apache/openmeetings/webservice/FileWebService.html
>> says there are 3 parameters necessary
>> The xml documentation lists only two sid and stream
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *  
>>   
>>> name="stream" style="query" type="xs:anyType" />
>>   
>>  
>> *
>>
>> Also the parameter name 'steam' is not accepted at all, as I get an 400
>> or 500 error. If I send the stream by the name 'file', as usual, I get 415.
>>
>> Unfortunately the catalina.out file doesn't report much more information.
>>
>>
>>
>>


Re: REST API to upload file

2020-04-28 Thread Maxim Solodovnik
Please check sources for moodle plugin

On Tue, Apr 28, 2020, 19:06 K. Kamhamea  wrote:

> Has anyone successfully used file upload with WebServices. I always get an
> HTTP 415 error.
> And of course I used headers
>
> 'Content-type': "multipart/form-data"
>
>
> There is a discrepancy in the documentation.
> While
>
> http://openmeetings.apache.org/openmeetings-webservice/apidocs/org/apache/openmeetings/webservice/FileWebService.html
> says there are 3 parameters necessary
> The xml documentation lists only two sid and stream
>
>
>
>
>
>
>
>
>
>
>
>
> *  
> 
> name="stream" style="query" type="xs:anyType" />
>   
>  
> *
>
> Also the parameter name 'steam' is not accepted at all, as I get an 400 or
> 500 error. If I send the stream by the name 'file', as usual, I get 415.
>
> Unfortunately the catalina.out file doesn't report much more information.
>
>
>
>


Re: REST API parameter to load to Whiteboard

2020-03-06 Thread Maxim Solodovnik
Hello Daniel,

there is no such API ATM

On Fri, 6 Mar 2020 at 22:41, Daniel Baker  wrote:
>
> Hi Maxim,
>
>
> We  got the rest  API to load  files  to the  room  however  we are  not
> sure  what  we have to configure to make it load  to the whiteboard.  It
> currently loads to the file tree.
>
>
> Can you point me to the necessary  parameter in the moodle OM api  as
> an example.
>
>
> Thanks,
>
>
> Dan
>


-- 
WBR
Maxim aka solomax


Re: REST API : Profile Picture URL

2017-08-15 Thread Jacob Ouanounou

OK. I'll re-install using MariaDB. I probably made a mistake during install.

Thank you VERY MUCH, Maxim


Le 15/08/2017 à 10:02, Maxim Solodovnik a écrit :

AFAIK there is no chance to query Derby DB

On Tue, Aug 15, 2017 at 3:01 PM, Jacob Ouanounou  wrote:

In persistence.xml I find this :

 wrote:

Here it is : (masked some fields with X's)

function connectToRoom($roomId,$options)
{
 $OMConfig=array(
 "protocol" => "http",
 "host" => "X",
 "port" => "5080",
 "context" => "cursus",
 "user" =>XXX,
 "pass" => XX,
   "module" => "myCMS"
 );
 $gateway = new OmGateway($OMConfig);
 if ($gateway->login()) {
 $user=array(
 "login" => "cursus:".$options['id']
 ,"username" => "Id:".$options['id']
 , "firstname" => str_replace('
','-',$options['prenom'])
 , "lastname" => str_replace(' ','-',$options['nom'])
 , "email" => $options['email']
 , "externalId" => $options['id']
 , "profilePictureUri" => $options['photo']
 , "profilePictureUrl" => $options['photo']
   , "externalUserType"=>"cursus"
 , "externalType" => "myCMS"
 );

 $options1=array("roomId" => $roomId, "moderator" =>
$options['moderate'],
 "allowRecording" => $options['moderate']);
 $hash=$gateway->getSecureHash($user, $options1);
 $url=$gateway->getUrl() ."/hash?secure=" . $hash .
"&scopeRoomId=".$roomId."&language=4";

 return ($url);
 }
 else
 {
 echo -10;
 }
}


and this function is called with the parameters :

$options = array("id" => "P".$res['id'],
 "nom" => $res1['nom'], "prenom"=>$res1['prenom'],
 "email" =>$res1['email'], "moderate"=>false,
"photo"=>$Photo);

where $Photo is read in my application database, and has value :
http://www.cursusplus.fr/Photos/tiny/img2.jpg

Thanks


Le 11/08/2017 à 09:37, Maxim Solodovnik a écrit :

I need JSON you are sending to be able to help you

On Fri, Aug 11, 2017 at 2:18 PM, Jacob Ouanounou  wrote:

Hi Maxim,

I am still trying to solve this issue : I don't succeed to get the
profilePictureUrl set.

In the doc, I see this field named either profilePictureUrl or
profilePictureUri

When I set NONE of them
I get a picture with a question mark,

When I set profiePictureUrl,
I get no picture at all

When I set profilePictureUri,
I get a picture with a question mark, which is the same result as if I
don't set any picture.

I have checked the existence of the picture in the provided URL
(http://www.cursusplus.fr/Photos/tiny/img2.jpg) and I have dumped the value
of the variable $options['profilePictureUrl'], which displays the correct
URL.

I you have a sample basic program in PHP that sets the picture, I would
appreciate very much.

I don't see what else I can do ... thank you for your help

Jacob


Le 27/07/2017 à 11:44, Maxim Solodovnik a écrit :

This array doesn't make sense :(
could var_dump() it?
so "real value" for $Photo will be printed

On Thu, Jul 27, 2017 at 4:09 PM, Jacob Ouanounou  wrote:

Thank you for your answer

Here is my user array :

 $user=array(
 "login" => "cursusA"
 ,"username" => "Id:".$_SESSION['id']
 , "firstname" => $_SESSION['prenom']
 , "lastname" => $_SESSION['nom']
 , "email" => $_SESSION['email']
 , "externalId" => $_SESSION['id']
 , "profilePictureUrl" => $Photo
 , "pictureUri" => $Photo
   , "externalUserType"=>"cursus"
 , "externalType" => "myCMS"
 );

I have introduced both columns "pictureUri" and "profilePictureUrl". If
I remove the lattest I get the same as if I remove both. If I remove the
first, I get a picture with a question mark.


Le 27/07/2017 à 10:35, Maxim Solodovnik a écrit :

Please do not write personal emails (use Reply All :))

OK

let's do investigation together step-by-step

you are calling services/user/hash REST function

in API it is:
http://openmeetings.apache.org/openmeetings-webservice/apidocs/org/apache/openmeetings/webservice/UserWebService.html#getRoomHash-java.lang.String-org.apache.openmeetings.db.dto.user.ExternalUserDTO-org.apache.openmeetings.db.dto.room.RoomOptionsDTO-

(you have to go to API doc page:
http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html
find UserService
find /hash function)

As you can see this function takes ExternalUserDTO as user parameter
This object has profilePictureUri:
http://openmeetings.apache.org/openmeetings-db/apidocs/org/apache/openmeetings/db/dto/user/ExternalUserDTO.html#setProfilePictureUrl-java.lang.String-

So the quest

Re: REST API : Profile Picture URL

2017-08-15 Thread Maxim Solodovnik
AFAIK there is no chance to query Derby DB

On Tue, Aug 15, 2017 at 3:01 PM, Jacob Ouanounou  wrote:
> In persistence.xml I find this :
>
>  value="DriverClassName=org.apache.derby.jdbc.EmbeddedDriver,Url=jdbc:derby:open330;create=true,
> ...
>
> which I assume means that I am using derby.
>
> How can I access and make a query on Derby ?
>
>
> Le 15/08/2017 à 05:23, Maxim Solodovnik a écrit :
>
> please find persistense.xml and check what DB driver is used
>
> On Mon, Aug 14, 2017 at 10:59 PM, Jacob Ouanounou  wrote:
>
> I thought that I had configured OM to use MariaDB, but the database is
> empty. Would it mean that it uses Derby ? How can I check ?
>
>
> Le 11/08/2017 à 14:53, Maxim Solodovnik a écrit :
>
> Everything seems to be ok (it is PHP not json, but code looks ok)
> What is in db? Om_user table for this user?
>
> WBR, Maxim
> (from mobile, sorry for the typos)
>
> On Aug 11, 2017 14:46, "Jacob Ouanounou"  wrote:
>
> Here it is : (masked some fields with X's)
>
> function connectToRoom($roomId,$options)
> {
> $OMConfig=array(
> "protocol" => "http",
> "host" => "X",
> "port" => "5080",
> "context" => "cursus",
> "user" =>XXX,
> "pass" => XX,
>   "module" => "myCMS"
> );
> $gateway = new OmGateway($OMConfig);
> if ($gateway->login()) {
> $user=array(
> "login" => "cursus:".$options['id']
> ,"username" => "Id:".$options['id']
> , "firstname" => str_replace('
> ','-',$options['prenom'])
> , "lastname" => str_replace(' ','-',$options['nom'])
> , "email" => $options['email']
> , "externalId" => $options['id']
> , "profilePictureUri" => $options['photo']
> , "profilePictureUrl" => $options['photo']
>   , "externalUserType"=>"cursus"
> , "externalType" => "myCMS"
> );
>
> $options1=array("roomId" => $roomId, "moderator" =>
> $options['moderate'],
> "allowRecording" => $options['moderate']);
> $hash=$gateway->getSecureHash($user, $options1);
> $url=$gateway->getUrl() ."/hash?secure=" . $hash .
> "&scopeRoomId=".$roomId."&language=4";
>
> return ($url);
> }
> else
> {
> echo -10;
> }
> }
>
>
> and this function is called with the parameters :
>
> $options = array("id" => "P".$res['id'],
> "nom" => $res1['nom'], "prenom"=>$res1['prenom'],
> "email" =>$res1['email'], "moderate"=>false,
> "photo"=>$Photo);
>
> where $Photo is read in my application database, and has value :
> http://www.cursusplus.fr/Photos/tiny/img2.jpg
>
> Thanks
>
>
> Le 11/08/2017 à 09:37, Maxim Solodovnik a écrit :
>
> I need JSON you are sending to be able to help you
>
> On Fri, Aug 11, 2017 at 2:18 PM, Jacob Ouanounou  wrote:
>
> Hi Maxim,
>
> I am still trying to solve this issue : I don't succeed to get the
> profilePictureUrl set.
>
> In the doc, I see this field named either profilePictureUrl or
> profilePictureUri
>
> When I set NONE of them
> I get a picture with a question mark,
>
> When I set profiePictureUrl,
> I get no picture at all
>
> When I set profilePictureUri,
> I get a picture with a question mark, which is the same result as if I
> don't set any picture.
>
> I have checked the existence of the picture in the provided URL
> (http://www.cursusplus.fr/Photos/tiny/img2.jpg) and I have dumped the value
> of the variable $options['profilePictureUrl'], which displays the correct
> URL.
>
> I you have a sample basic program in PHP that sets the picture, I would
> appreciate very much.
>
> I don't see what else I can do ... thank you for your help
>
> Jacob
>
>
> Le 27/07/2017 à 11:44, Maxim Solodovnik a écrit :
>
> This array doesn't make sense :(
> could var_dump() it?
> so "real value" for $Photo will be printed
>
> On Thu, Jul 27, 2017 at 4:09 PM, Jacob Ouanounou  wrote:
>
> Thank you for your answer
>
> Here is my user array :
>
> $user=array(
> "login" => "cursusA"
> ,"username" => "Id:".$_SESSION['id']
> , "firstname" => $_SESSION['prenom']
> , "lastname" => $_SESSION['nom']
> , "email" => $_SESSION['email']
> , "externalId" => $_SESSION['id']
> , "profilePictureUrl" => $Photo
> , "pictureUri" => $Photo
>   , "externalUserType"=>"cursus"
> , "externalType" => "myCMS"
> );
>
> I have introduced both columns "pictureUri" and "profilePictureUrl". If
> I remove the lattest I get the same as if I remove both. If I remove the
> first, I get a picture with a question mark.
>
>
> Le 27/07/2017 à 10:35, Maxim Solodovnik a écrit :
>
> Please do not write perso

Re: REST API : Profile Picture URL

2017-08-15 Thread Jacob Ouanounou

In persistence.xml I find this :

value="DriverClassName=org.apache.derby.jdbc.EmbeddedDriver,Url=jdbc:derby:open330;create=true, 
...


which I assume means that I am using derby.

How can I access and make a query on Derby ?


Le 15/08/2017 à 05:23, Maxim Solodovnik a écrit :

please find persistense.xml and check what DB driver is used

On Mon, Aug 14, 2017 at 10:59 PM, Jacob Ouanounou  wrote:

I thought that I had configured OM to use MariaDB, but the database is
empty. Would it mean that it uses Derby ? How can I check ?


Le 11/08/2017 à 14:53, Maxim Solodovnik a écrit :

Everything seems to be ok (it is PHP not json, but code looks ok)
What is in db? Om_user table for this user?

WBR, Maxim
(from mobile, sorry for the typos)

On Aug 11, 2017 14:46, "Jacob Ouanounou"  wrote:

Here it is : (masked some fields with X's)

function connectToRoom($roomId,$options)
{
 $OMConfig=array(
 "protocol" => "http",
 "host" => "X",
 "port" => "5080",
 "context" => "cursus",
 "user" =>XXX,
 "pass" => XX,
   "module" => "myCMS"
 );
 $gateway = new OmGateway($OMConfig);
 if ($gateway->login()) {
 $user=array(
 "login" => "cursus:".$options['id']
 ,"username" => "Id:".$options['id']
 , "firstname" => str_replace('
','-',$options['prenom'])
 , "lastname" => str_replace(' ','-',$options['nom'])
 , "email" => $options['email']
 , "externalId" => $options['id']
 , "profilePictureUri" => $options['photo']
 , "profilePictureUrl" => $options['photo']
   , "externalUserType"=>"cursus"
 , "externalType" => "myCMS"
 );

 $options1=array("roomId" => $roomId, "moderator" =>
$options['moderate'],
 "allowRecording" => $options['moderate']);
 $hash=$gateway->getSecureHash($user, $options1);
 $url=$gateway->getUrl() ."/hash?secure=" . $hash .
"&scopeRoomId=".$roomId."&language=4";

 return ($url);
 }
 else
 {
 echo -10;
 }
}


and this function is called with the parameters :

$options = array("id" => "P".$res['id'],
 "nom" => $res1['nom'], "prenom"=>$res1['prenom'],
 "email" =>$res1['email'], "moderate"=>false,
"photo"=>$Photo);

where $Photo is read in my application database, and has value :
http://www.cursusplus.fr/Photos/tiny/img2.jpg

Thanks


Le 11/08/2017 à 09:37, Maxim Solodovnik a écrit :

I need JSON you are sending to be able to help you

On Fri, Aug 11, 2017 at 2:18 PM, Jacob Ouanounou  wrote:

Hi Maxim,

I am still trying to solve this issue : I don't succeed to get the
profilePictureUrl set.

In the doc, I see this field named either profilePictureUrl or
profilePictureUri

When I set NONE of them
I get a picture with a question mark,

When I set profiePictureUrl,
I get no picture at all

When I set profilePictureUri,
I get a picture with a question mark, which is the same result as if I
don't set any picture.

I have checked the existence of the picture in the provided URL
(http://www.cursusplus.fr/Photos/tiny/img2.jpg) and I have dumped the value
of the variable $options['profilePictureUrl'], which displays the correct
URL.

I you have a sample basic program in PHP that sets the picture, I would
appreciate very much.

I don't see what else I can do ... thank you for your help

Jacob


Le 27/07/2017 à 11:44, Maxim Solodovnik a écrit :

This array doesn't make sense :(
could var_dump() it?
so "real value" for $Photo will be printed

On Thu, Jul 27, 2017 at 4:09 PM, Jacob Ouanounou  wrote:

Thank you for your answer

Here is my user array :

 $user=array(
 "login" => "cursusA"
 ,"username" => "Id:".$_SESSION['id']
 , "firstname" => $_SESSION['prenom']
 , "lastname" => $_SESSION['nom']
 , "email" => $_SESSION['email']
 , "externalId" => $_SESSION['id']
 , "profilePictureUrl" => $Photo
 , "pictureUri" => $Photo
   , "externalUserType"=>"cursus"
 , "externalType" => "myCMS"
 );

I have introduced both columns "pictureUri" and "profilePictureUrl". If
I remove the lattest I get the same as if I remove both. If I remove the
first, I get a picture with a question mark.


Le 27/07/2017 à 10:35, Maxim Solodovnik a écrit :

Please do not write personal emails (use Reply All :))

OK

let's do investigation together step-by-step

you are calling services/user/hash REST function

in API it is:
http://openmeetings.apache.org/openmeetings-webservice/apidocs/org/apache/openmeetings/webservice/UserWebService.html#getRoomHash-java.lang.String-org.apache.openmeetings.db.dt

Re: REST API : Profile Picture URL

2017-08-14 Thread Maxim Solodovnik
please find persistense.xml and check what DB driver is used

On Mon, Aug 14, 2017 at 10:59 PM, Jacob Ouanounou  wrote:
> I thought that I had configured OM to use MariaDB, but the database is
> empty. Would it mean that it uses Derby ? How can I check ?
>
>
> Le 11/08/2017 à 14:53, Maxim Solodovnik a écrit :
>
> Everything seems to be ok (it is PHP not json, but code looks ok)
> What is in db? Om_user table for this user?
>
> WBR, Maxim
> (from mobile, sorry for the typos)
>
> On Aug 11, 2017 14:46, "Jacob Ouanounou"  wrote:
>>
>> Here it is : (masked some fields with X's)
>>
>> function connectToRoom($roomId,$options)
>> {
>> $OMConfig=array(
>> "protocol" => "http",
>> "host" => "X",
>> "port" => "5080",
>> "context" => "cursus",
>> "user" =>XXX,
>> "pass" => XX,
>>   "module" => "myCMS"
>> );
>> $gateway = new OmGateway($OMConfig);
>> if ($gateway->login()) {
>> $user=array(
>> "login" => "cursus:".$options['id']
>> ,"username" => "Id:".$options['id']
>> , "firstname" => str_replace('
>> ','-',$options['prenom'])
>> , "lastname" => str_replace(' ','-',$options['nom'])
>> , "email" => $options['email']
>> , "externalId" => $options['id']
>> , "profilePictureUri" => $options['photo']
>> , "profilePictureUrl" => $options['photo']
>>   , "externalUserType"=>"cursus"
>> , "externalType" => "myCMS"
>> );
>>
>> $options1=array("roomId" => $roomId, "moderator" =>
>> $options['moderate'],
>> "allowRecording" => $options['moderate']);
>> $hash=$gateway->getSecureHash($user, $options1);
>> $url=$gateway->getUrl() ."/hash?secure=" . $hash .
>> "&scopeRoomId=".$roomId."&language=4";
>>
>> return ($url);
>> }
>> else
>> {
>> echo -10;
>> }
>> }
>>
>>
>> and this function is called with the parameters :
>>
>> $options = array("id" => "P".$res['id'],
>> "nom" => $res1['nom'], "prenom"=>$res1['prenom'],
>> "email" =>$res1['email'], "moderate"=>false,
>> "photo"=>$Photo);
>>
>> where $Photo is read in my application database, and has value :
>> http://www.cursusplus.fr/Photos/tiny/img2.jpg
>>
>> Thanks
>>
>>
>> Le 11/08/2017 à 09:37, Maxim Solodovnik a écrit :
>>
>> I need JSON you are sending to be able to help you
>>
>> On Fri, Aug 11, 2017 at 2:18 PM, Jacob Ouanounou  wrote:
>>>
>>> Hi Maxim,
>>>
>>> I am still trying to solve this issue : I don't succeed to get the
>>> profilePictureUrl set.
>>>
>>> In the doc, I see this field named either profilePictureUrl or
>>> profilePictureUri
>>>
>>> When I set NONE of them
>>> I get a picture with a question mark,
>>>
>>> When I set profiePictureUrl,
>>> I get no picture at all
>>>
>>> When I set profilePictureUri,
>>> I get a picture with a question mark, which is the same result as if I
>>> don't set any picture.
>>>
>>> I have checked the existence of the picture in the provided URL
>>> (http://www.cursusplus.fr/Photos/tiny/img2.jpg) and I have dumped the value
>>> of the variable $options['profilePictureUrl'], which displays the correct
>>> URL.
>>>
>>> I you have a sample basic program in PHP that sets the picture, I would
>>> appreciate very much.
>>>
>>> I don't see what else I can do ... thank you for your help
>>>
>>> Jacob
>>>
>>>
>>> Le 27/07/2017 à 11:44, Maxim Solodovnik a écrit :
>>>
>>> This array doesn't make sense :(
>>> could var_dump() it?
>>> so "real value" for $Photo will be printed
>>>
>>> On Thu, Jul 27, 2017 at 4:09 PM, Jacob Ouanounou  wrote:

 Thank you for your answer

 Here is my user array :

 $user=array(
 "login" => "cursusA"
 ,"username" => "Id:".$_SESSION['id']
 , "firstname" => $_SESSION['prenom']
 , "lastname" => $_SESSION['nom']
 , "email" => $_SESSION['email']
 , "externalId" => $_SESSION['id']
 , "profilePictureUrl" => $Photo
 , "pictureUri" => $Photo
   , "externalUserType"=>"cursus"
 , "externalType" => "myCMS"
 );

 I have introduced both columns "pictureUri" and "profilePictureUrl". If
 I remove the lattest I get the same as if I remove both. If I remove the
 first, I get a picture with a question mark.


 Le 27/07/2017 à 10:35, Maxim Solodovnik a écrit :

 Please do not write personal emails (use Reply All :))

 OK

 let's do investigation together step-by-step

 you are calling services/user/hash REST function

 in API it is:

Re: REST API : Profile Picture URL

2017-08-14 Thread Jacob Ouanounou
I thought that I had configured OM to use MariaDB, but the database is 
empty. Would it mean that it uses Derby ? How can I check ?



Le 11/08/2017 à 14:53, Maxim Solodovnik a écrit :

Everything seems to be ok (it is PHP not json, but code looks ok)
What is in db? Om_user table for this user?

WBR, Maxim
(from mobile, sorry for the typos)

On Aug 11, 2017 14:46, "Jacob Ouanounou" > wrote:


Here it is : (masked some fields with X's)

function connectToRoom($roomId,$options)
{
$OMConfig=array(
"protocol" => "http",
"host" => "X",
"port" => "5080",
"context" => "cursus",
"user" =>XXX,
"pass" => XX,
  "module" => "myCMS"
);
$gateway = new OmGateway($OMConfig);
if ($gateway->login()) {
$user=array(
"login" => "cursus:".$options['id']
,"username" => "Id:".$options['id']
, "firstname" => str_replace('
','-',$options['prenom'])
, "lastname" => str_replace('
','-',$options['nom'])
, "email" => $options['email']
, "externalId" => $options['id']
, "profilePictureUri" => $options['photo']
, "profilePictureUrl" => $options['photo']
  , "externalUserType"=>"cursus"
, "externalType" => "myCMS"
);

$options1=array("roomId" => $roomId, "moderator" =>
$options['moderate'],
"allowRecording" => $options['moderate']);
$hash=$gateway->getSecureHash($user, $options1);
$url=$gateway->getUrl() ."/hash?secure=" . $hash .
"&scopeRoomId=".$roomId."&language=4";

return ($url);
}
else
{
echo -10;
}
}


and this function is called with the parameters :

$options = array("id" => "P".$res['id'],
"nom" => $res1['nom'], "prenom"=>$res1['prenom'],
"email" =>$res1['email'], "moderate"=>false,
"photo"=>$Photo);

where $Photo is read in my application database, and has value :
http://www.cursusplus.fr/Photos/tiny/img2.jpg


Thanks


Le 11/08/2017 à 09:37, Maxim Solodovnik a écrit :

I need JSON you are sending to be able to help you

On Fri, Aug 11, 2017 at 2:18 PM, Jacob Ouanounou mailto:nav...@free.fr>> wrote:

Hi Maxim,

I am still trying to solve this issue : I don't succeed to
get the profilePictureUrl set.

In the doc, I see this field named either profilePictureUrl
or profilePictureUri

When I set NONE of them
I get a picture with a question mark,

When I set profiePictureUrl,
I get no picture at all

When I set profilePictureUri,
I get a picture with a question mark, which is the same
result as if I don't set any picture.

I have checked the existence of the picture in the provided
URL (http://www.cursusplus.fr/Photos/tiny/img2.jpg
) and I have
dumped the value of the variable
$options['profilePictureUrl'], which displays the correct URL.

I you have a sample basic program in PHP that sets the
picture, I would appreciate very much.

I don't see what else I can do ... thank you for your help

Jacob


Le 27/07/2017 à 11:44, Maxim Solodovnik a écrit :

This array doesn't make sense :(
could var_dump() it?
so "real value" for $Photo will be printed

On Thu, Jul 27, 2017 at 4:09 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

Thank you for your answer

Here is my user array :

$user=array(
"login" => "cursusA"
,"username" => "Id:".$_SESSION['id']
, "firstname" => $_SESSION['prenom']
, "lastname" => $_SESSION['nom']
, "email" => $_SESSION['email']
, "externalId" => $_SESSION['id']
, "profilePictureUrl" => $Photo
, "pictureUri" => $Photo
  , "externalUserType"=>"cursus"
, "externalType" => "myCMS"
);

I have introduced both columns "pictureUri" and
"profilePictureUrl". If I remove the lattest I get the
same as if I remove both. If I remove the first, I get a
picture with a question mark.


Le 27/07/2017 à 10:35

Re: REST API : Profile Picture URL

2017-08-11 Thread Maxim Solodovnik
Everything seems to be ok (it is PHP not json, but code looks ok)
What is in db? Om_user table for this user?

WBR, Maxim
(from mobile, sorry for the typos)

On Aug 11, 2017 14:46, "Jacob Ouanounou"  wrote:

> Here it is : (masked some fields with X's)
> function connectToRoom($roomId,$options)
> {
> $OMConfig=array(
> "protocol" => "http",
> "host" => "X",
> "port" => "5080",
> "context" => "cursus",
> "user" =>XXX,
> "pass" => XX,
>   "module" => "myCMS"
> );
> $gateway = new OmGateway($OMConfig);
> if ($gateway->login()) {
> $user=array(
> "login" => "cursus:".$options['id']
> ,"username" => "Id:".$options['id']
> , "firstname" => str_replace('
> ','-',$options['prenom'])
> , "lastname" => str_replace(' ','-',$options['nom'])
> , "email" => $options['email']
> , "externalId" => $options['id']
> , "profilePictureUri" => $options['photo']
> , "profilePictureUrl" => $options['photo']
>   , "externalUserType"=>"cursus"
> , "externalType" => "myCMS"
> );
>
> $options1=array("roomId" => $roomId, "moderator" =>
> $options['moderate'],
> "allowRecording" => $options['moderate']);
> $hash=$gateway->getSecureHash($user, $options1);
> $url=$gateway->getUrl() ."/hash?secure=" . $hash .
> "&scopeRoomId=".$roomId."&language=4";
>
> return ($url);
> }
> else
> {
> echo -10;
> }
> }
>
>
> and this function is called with the parameters :
>
> $options = array("id" => "P".$res['id'],
> "nom" => $res1['nom'], "prenom"=>$res1['prenom'],
> "email" =>$res1['email'], "moderate"=>false,
> "photo"=>$Photo);
>
> where $Photo is read in my application database, and has value :
> http://www.cursusplus.fr/Photos/tiny/img2.jpg
>
> Thanks
>
>
> Le 11/08/2017 à 09:37, Maxim Solodovnik a écrit :
>
> I need JSON you are sending to be able to help you
>
> On Fri, Aug 11, 2017 at 2:18 PM, Jacob Ouanounou  wrote:
>
>> Hi Maxim,
>>
>> I am still trying to solve this issue : I don't succeed to get the
>> profilePictureUrl set.
>>
>> In the doc, I see this field named either profilePictureUrl or
>> profilePictureUri
>>
>> When I set NONE of them
>> I get a picture with a question mark,
>>
>> When I set profiePictureUrl,
>> I get no picture at all
>>
>> When I set profilePictureUri,
>> I get a picture with a question mark, which is the same result as if I
>> don't set any picture.
>>
>> I have checked the existence of the picture in the provided URL (
>> http://www.cursusplus.fr/Photos/tiny/img2.jpg) and I have dumped the
>> value of the variable $options['profilePictureUrl'], which displays the
>> correct URL.
>>
>> I you have a sample basic program in PHP that sets the picture, I would
>> appreciate very much.
>>
>> I don't see what else I can do ... thank you for your help
>>
>> Jacob
>>
>> Le 27/07/2017 à 11:44, Maxim Solodovnik a écrit :
>>
>> This array doesn't make sense :(
>> could var_dump() it?
>> so "real value" for $Photo will be printed
>>
>> On Thu, Jul 27, 2017 at 4:09 PM, Jacob Ouanounou  wrote:
>>
>>> Thank you for your answer
>>>
>>> Here is my user array :
>>>
>>> $user=array(
>>> "login" => "cursusA"
>>> ,"username" => "Id:".$_SESSION['id']
>>> , "firstname" => $_SESSION['prenom']
>>> , "lastname" => $_SESSION['nom']
>>> , "email" => $_SESSION['email']
>>> , "externalId" => $_SESSION['id']
>>> , "profilePictureUrl" => $Photo
>>> , "pictureUri" => $Photo
>>>   , "externalUserType"=>"cursus"
>>> , "externalType" => "myCMS"
>>> );
>>>
>>> I have introduced both columns "pictureUri" and "profilePictureUrl". If
>>> I remove the lattest I get the same as if I remove both. If I remove the
>>> first, I get a picture with a question mark.
>>>
>>> Le 27/07/2017 à 10:35, Maxim Solodovnik a écrit :
>>>
>>> Please do not write personal emails (use Reply All :))
>>>
>>> OK
>>>
>>> let's do investigation together step-by-step
>>>
>>> you are calling services/user/hash REST function
>>>
>>> in API it is: http://openmeetings.apache.org/openmeetings-webservice/a
>>> pidocs/org/apache/openmeetings/webservice/UserWebService.htm
>>> l#getRoomHash-java.lang.String-org.apache.openmeetings.db.
>>> dto.user.ExternalUserDTO-org.apache.openmeetings.db.dto.
>>> room.RoomOptionsDTO-
>>>
>>> (you have to go to API doc page: http://openmeetings.apac
>>> he.org/openmeetings-webservice/apidocs/index.html
>>> find UserService
>>> find /hash function)
>>>
>>> As you can see this function tak

Re: REST API : Profile Picture URL

2017-08-11 Thread Jacob Ouanounou

Here it is : (masked some fields with X's)

function connectToRoom($roomId,$options)
{
$OMConfig=array(
"protocol" => "http",
"host" => "X",
"port" => "5080",
"context" => "cursus",
"user" =>XXX,
"pass" => XX,
  "module" => "myCMS"
);
$gateway = new OmGateway($OMConfig);
if ($gateway->login()) {
$user=array(
"login" => "cursus:".$options['id']
,"username" => "Id:".$options['id']
, "firstname" => str_replace(' 
','-',$options['prenom'])

, "lastname" => str_replace(' ','-',$options['nom'])
, "email" => $options['email']
, "externalId" => $options['id']
, "profilePictureUri" => $options['photo']
, "profilePictureUrl" => $options['photo']
  , "externalUserType"=>"cursus"
, "externalType" => "myCMS"
);

$options1=array("roomId" => $roomId, "moderator" => 
$options['moderate'],

"allowRecording" => $options['moderate']);
$hash=$gateway->getSecureHash($user, $options1);
$url=$gateway->getUrl() ."/hash?secure=" . $hash . 
"&scopeRoomId=".$roomId."&language=4";


return ($url);
}
else
{
echo -10;
}
}


and this function is called with the parameters :

$options = array("id" => "P".$res['id'],
"nom" => $res1['nom'], "prenom"=>$res1['prenom'],
"email" =>$res1['email'], "moderate"=>false, 
"photo"=>$Photo);


where $Photo is read in my application database, and has value :
http://www.cursusplus.fr/Photos/tiny/img2.jpg 



Thanks


Le 11/08/2017 à 09:37, Maxim Solodovnik a écrit :

I need JSON you are sending to be able to help you

On Fri, Aug 11, 2017 at 2:18 PM, Jacob Ouanounou > wrote:


Hi Maxim,

I am still trying to solve this issue : I don't succeed to get the
profilePictureUrl set.

In the doc, I see this field named either profilePictureUrl or
profilePictureUri

When I set NONE of them
I get a picture with a question mark,

When I set profiePictureUrl,
I get no picture at all

When I set profilePictureUri,
I get a picture with a question mark, which is the same result as
if I don't set any picture.

I have checked the existence of the picture in the provided URL
(http://www.cursusplus.fr/Photos/tiny/img2.jpg
) and I have dumped
the value of the variable $options['profilePictureUrl'], which
displays the correct URL.

I you have a sample basic program in PHP that sets the picture, I
would appreciate very much.

I don't see what else I can do ... thank you for your help

Jacob


Le 27/07/2017 à 11:44, Maxim Solodovnik a écrit :

This array doesn't make sense :(
could var_dump() it?
so "real value" for $Photo will be printed

On Thu, Jul 27, 2017 at 4:09 PM, Jacob Ouanounou mailto:nav...@free.fr>> wrote:

Thank you for your answer

Here is my user array :

$user=array(
"login" => "cursusA"
,"username" => "Id:".$_SESSION['id']
, "firstname" => $_SESSION['prenom']
, "lastname" => $_SESSION['nom']
, "email" => $_SESSION['email']
, "externalId" => $_SESSION['id']
, "profilePictureUrl" => $Photo
, "pictureUri" => $Photo
  , "externalUserType"=>"cursus"
, "externalType" => "myCMS"
);

I have introduced both columns "pictureUri" and
"profilePictureUrl". If I remove the lattest I get the same
as if I remove both. If I remove the first, I get a picture
with a question mark.


Le 27/07/2017 à 10:35, Maxim Solodovnik a écrit :

Please do not write personal emails (use Reply All :))

OK

let's do investigation together step-by-step

you are calling services/user/hash REST function

in API it is:

http://openmeetings.apache.org/openmeetings-webservice/apidocs/org/apache/openmeetings/webservice/UserWebService.html#getRoomHash-java.lang.String-org.apache.openmeetings.db.dto.user.ExternalUserDTO-org.apache.openmeetings.db.dto.room.RoomOptionsDTO-



(you have to go to API doc page:
  

Re: REST API : Profile Picture URL

2017-08-11 Thread Maxim Solodovnik
I need JSON you are sending to be able to help you

On Fri, Aug 11, 2017 at 2:18 PM, Jacob Ouanounou  wrote:

> Hi Maxim,
>
> I am still trying to solve this issue : I don't succeed to get the
> profilePictureUrl set.
>
> In the doc, I see this field named either profilePictureUrl or
> profilePictureUri
>
> When I set NONE of them
> I get a picture with a question mark,
>
> When I set profiePictureUrl,
> I get no picture at all
>
> When I set profilePictureUri,
> I get a picture with a question mark, which is the same result as if I
> don't set any picture.
>
> I have checked the existence of the picture in the provided URL (
> http://www.cursusplus.fr/Photos/tiny/img2.jpg) and I have dumped the
> value of the variable $options['profilePictureUrl'], which displays the
> correct URL.
>
> I you have a sample basic program in PHP that sets the picture, I would
> appreciate very much.
>
> I don't see what else I can do ... thank you for your help
>
> Jacob
>
> Le 27/07/2017 à 11:44, Maxim Solodovnik a écrit :
>
> This array doesn't make sense :(
> could var_dump() it?
> so "real value" for $Photo will be printed
>
> On Thu, Jul 27, 2017 at 4:09 PM, Jacob Ouanounou  wrote:
>
>> Thank you for your answer
>>
>> Here is my user array :
>>
>> $user=array(
>> "login" => "cursusA"
>> ,"username" => "Id:".$_SESSION['id']
>> , "firstname" => $_SESSION['prenom']
>> , "lastname" => $_SESSION['nom']
>> , "email" => $_SESSION['email']
>> , "externalId" => $_SESSION['id']
>> , "profilePictureUrl" => $Photo
>> , "pictureUri" => $Photo
>>   , "externalUserType"=>"cursus"
>> , "externalType" => "myCMS"
>> );
>>
>> I have introduced both columns "pictureUri" and "profilePictureUrl". If I
>> remove the lattest I get the same as if I remove both. If I remove the
>> first, I get a picture with a question mark.
>>
>> Le 27/07/2017 à 10:35, Maxim Solodovnik a écrit :
>>
>> Please do not write personal emails (use Reply All :))
>>
>> OK
>>
>> let's do investigation together step-by-step
>>
>> you are calling services/user/hash REST function
>>
>> in API it is: http://openmeetings.apache.org/openmeetings-webservice/
>> apidocs/org/apache/openmeetings/webservice/UserWebService.
>> html#getRoomHash-java.lang.String-org.apache.openmeetings.db.dto.user.
>> ExternalUserDTO-org.apache.openmeetings.db.dto.room.RoomOptionsDTO-
>>
>> (you have to go to API doc page: http://openmeetings.apac
>> he.org/openmeetings-webservice/apidocs/index.html
>> find UserService
>> find /hash function)
>>
>> As you can see this function takes ExternalUserDTO
>> 
>>  as
>> user parameter
>> This object has profilePictureUri: http://open
>> meetings.apache.org/openmeetings-db/apidocs/org/apache/
>> openmeetings/db/dto/user/ExternalUserDTO.html#setProfil
>> ePictureUrl-java.lang.String-
>>
>> So the question is: what string are you passing as profilePictureUrl?
>> could you provide an example of your PHP user array (with personal
>> details like real name/email stripped/masked) ?
>>
>> On Thu, Jul 27, 2017 at 3:24 PM, Jacob Ouanounou  wrote:
>>
>>> Sorry, I am not good enough in recent languages and programming
>>> techniques to file PRs. I would have liked to ...
>>>
>>> I am probably supposed to use the method : setPictureUri(), but for that
>>> I should have something in PHP thant handles User Objects. In the PHP files
>>> OmGateway.php and OmRestService.php, I found nothing that handles User
>>> Objects ... In my program, $user is just an array, with "login", "email",
>>> ... and I just add "pictureUri" or "profilePictureUrl" ...
>>>
>>> Le 27/07/2017 à 10:06, Maxim Solodovnik a écrit :
>>>
>>> https://help.github.com/articles/about-pull-requests/
>>>
>>> On Thu, Jul 27, 2017 at 3:05 PM, Jacob Ouanounou  wrote:
>>>
 What is PR ?

 Le 27/07/2017 à 10:04, Maxim Solodovnik a écrit :

 What description are you expecting to see?

 UserDTO doesn't have pictureUri, User has this field

 You can propose PR with better JavaDoc :)))

 On Thu, Jul 27, 2017 at 3:01 PM, Jacob Ouanounou 
 wrote:

> In this page I see something called pictureUri. When I use that
> keyword, I get a picture with a question mark, the same as if I don't
> specify any photo for the user. But if I use the keyword
> "profilePictureUrl" , I get no picture for the user in the room.
>
> (I don't understand the structure of the document in javadocs :
> http://openmeetings.apache.org/openmeetings-db/apidocs/org/a
> pache/openmeetings/db/dto/user/UserDTO.html?is-external=true where is
> the structure of the object User described ? I just see methods.
>
> Le 27/07/2017 à

Re: REST API : Profile Picture URL

2017-08-11 Thread Jacob Ouanounou

Hi Maxim,

I am still trying to solve this issue : I don't succeed to get the 
profilePictureUrl set.


In the doc, I see this field named either profilePictureUrl or 
profilePictureUri


When I set NONE of them
I get a picture with a question mark,

When I set profiePictureUrl,
I get no picture at all

When I set profilePictureUri,
I get a picture with a question mark, which is the same result as if I 
don't set any picture.


I have checked the existence of the picture in the provided URL 
(http://www.cursusplus.fr/Photos/tiny/img2.jpg) and I have dumped the 
value of the variable $options['profilePictureUrl'], which displays the 
correct URL.


I you have a sample basic program in PHP that sets the picture, I would 
appreciate very much.


I don't see what else I can do ... thank you for your help

Jacob


Le 27/07/2017 à 11:44, Maxim Solodovnik a écrit :

This array doesn't make sense :(
could var_dump() it?
so "real value" for $Photo will be printed

On Thu, Jul 27, 2017 at 4:09 PM, Jacob Ouanounou > wrote:


Thank you for your answer

Here is my user array :

$user=array(
"login" => "cursusA"
,"username" => "Id:".$_SESSION['id']
, "firstname" => $_SESSION['prenom']
, "lastname" => $_SESSION['nom']
, "email" => $_SESSION['email']
, "externalId" => $_SESSION['id']
, "profilePictureUrl" => $Photo
, "pictureUri" => $Photo
  , "externalUserType"=>"cursus"
, "externalType" => "myCMS"
);

I have introduced both columns "pictureUri" and
"profilePictureUrl". If I remove the lattest I get the same as if
I remove both. If I remove the first, I get a picture with a
question mark.


Le 27/07/2017 à 10:35, Maxim Solodovnik a écrit :

Please do not write personal emails (use Reply All :))

OK

let's do investigation together step-by-step

you are calling services/user/hash REST function

in API it is:

http://openmeetings.apache.org/openmeetings-webservice/apidocs/org/apache/openmeetings/webservice/UserWebService.html#getRoomHash-java.lang.String-org.apache.openmeetings.db.dto.user.ExternalUserDTO-org.apache.openmeetings.db.dto.room.RoomOptionsDTO-



(you have to go to API doc page:
http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html

find UserService
find /hash function)

As you can see this function takes ExternalUserDTO


 as
user parameter
This object has profilePictureUri:

http://openmeetings.apache.org/openmeetings-db/apidocs/org/apache/openmeetings/db/dto/user/ExternalUserDTO.html#setProfilePictureUrl-java.lang.String-



So the question is: what string are you passing as profilePictureUrl?
could you provide an example of your PHP user array (with
personal details like real name/email stripped/masked) ?

On Thu, Jul 27, 2017 at 3:24 PM, Jacob Ouanounou mailto:nav...@free.fr>> wrote:

Sorry, I am not good enough in recent languages and
programming techniques to file PRs. I would have liked to ...

I am probably supposed to use the method : setPictureUri(),
but for that I should have something in PHP thant handles
User Objects. In the PHP files OmGateway.php and
OmRestService.php, I found nothing that handles User Objects
... In my program, $user is just an array, with "login",
"email", ... and I just add "pictureUri" or
"profilePictureUrl" ...


Le 27/07/2017 à 10:06, Maxim Solodovnik a écrit :

https://help.github.com/articles/about-pull-requests/


On Thu, Jul 27, 2017 at 3:05 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

What is PR ?


Le 27/07/2017 à 10:04, Maxim Solodovnik a écrit :

What description are you expecting to see?

UserDTO doesn't have pictureUri, User has this field

You can propose PR with better JavaDoc :)))

On Thu, Jul 27, 2017 at 3:01 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

In this page I see somet

Re: REST API : Profile Picture URL

2017-07-27 Thread Maxim Solodovnik
This array doesn't make sense :(
could var_dump() it?
so "real value" for $Photo will be printed

On Thu, Jul 27, 2017 at 4:09 PM, Jacob Ouanounou  wrote:

> Thank you for your answer
>
> Here is my user array :
>
> $user=array(
> "login" => "cursusA"
> ,"username" => "Id:".$_SESSION['id']
> , "firstname" => $_SESSION['prenom']
> , "lastname" => $_SESSION['nom']
> , "email" => $_SESSION['email']
> , "externalId" => $_SESSION['id']
> , "profilePictureUrl" => $Photo
> , "pictureUri" => $Photo
>   , "externalUserType"=>"cursus"
> , "externalType" => "myCMS"
> );
>
> I have introduced both columns "pictureUri" and "profilePictureUrl". If I
> remove the lattest I get the same as if I remove both. If I remove the
> first, I get a picture with a question mark.
>
> Le 27/07/2017 à 10:35, Maxim Solodovnik a écrit :
>
> Please do not write personal emails (use Reply All :))
>
> OK
>
> let's do investigation together step-by-step
>
> you are calling services/user/hash REST function
>
> in API it is: http://openmeetings.apache.org/openmeetings-
> webservice/apidocs/org/apache/openmeetings/webservice/UserWebService.html#
> getRoomHash-java.lang.String-org.apache.openmeetings.db.
> dto.user.ExternalUserDTO-org.apache.openmeetings.db.dto.
> room.RoomOptionsDTO-
>
> (you have to go to API doc page: http://openmeetings.
> apache.org/openmeetings-webservice/apidocs/index.html
> find UserService
> find /hash function)
>
> As you can see this function takes ExternalUserDTO
> 
>  as
> user parameter
> This object has profilePictureUri: http://openmeetings.apache.org/
> openmeetings-db/apidocs/org/apache/openmeetings/db/dto/
> user/ExternalUserDTO.html#setProfilePictureUrl-java.lang.String-
>
> So the question is: what string are you passing as profilePictureUrl?
> could you provide an example of your PHP user array (with personal details
> like real name/email stripped/masked) ?
>
> On Thu, Jul 27, 2017 at 3:24 PM, Jacob Ouanounou  wrote:
>
>> Sorry, I am not good enough in recent languages and programming
>> techniques to file PRs. I would have liked to ...
>>
>> I am probably supposed to use the method : setPictureUri(), but for that
>> I should have something in PHP thant handles User Objects. In the PHP files
>> OmGateway.php and OmRestService.php, I found nothing that handles User
>> Objects ... In my program, $user is just an array, with "login", "email",
>> ... and I just add "pictureUri" or "profilePictureUrl" ...
>>
>> Le 27/07/2017 à 10:06, Maxim Solodovnik a écrit :
>>
>> https://help.github.com/articles/about-pull-requests/
>>
>> On Thu, Jul 27, 2017 at 3:05 PM, Jacob Ouanounou  wrote:
>>
>>> What is PR ?
>>>
>>> Le 27/07/2017 à 10:04, Maxim Solodovnik a écrit :
>>>
>>> What description are you expecting to see?
>>>
>>> UserDTO doesn't have pictureUri, User has this field
>>>
>>> You can propose PR with better JavaDoc :)))
>>>
>>> On Thu, Jul 27, 2017 at 3:01 PM, Jacob Ouanounou  wrote:
>>>
 In this page I see something called pictureUri. When I use that
 keyword, I get a picture with a question mark, the same as if I don't
 specify any photo for the user. But if I use the keyword
 "profilePictureUrl" , I get no picture for the user in the room.

 (I don't understand the structure of the document in javadocs :
 http://openmeetings.apache.org/openmeetings-db/apidocs/org/a
 pache/openmeetings/db/dto/user/UserDTO.html?is-external=true where is
 the structure of the object User described ? I just see methods.

 Le 27/07/2017 à 09:47, Maxim Solodovnik a écrit :

 You can check properties in API javadocs: http://openmeetings.
 apache.org/openmeetings-db/apidocs/org/apache/openmeetings/d
 b/dto/user/UserDTO.html?is-external=true

 it seems pictureUri was dropped during migration
 could you please file JIRA, should be easy to fix

 On Thu, Jul 27, 2017 at 2:43 PM, Jacob Ouanounou 
 wrote:

> Hello,
>
> It seems that the user option "profilePictureUrl" that allows to set
> the picture of the user does not work anymore, or the keyword has changed.
>
> I have also tried to set that parameter in room options, without
> success.
>
>
>


 --
 WBR
 Maxim aka solomax



>>>
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>>
>>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>>
>>
>
>
> --
> WBR
> Maxim aka solomax
>
>
>


-- 
WBR
Maxim aka solomax


Re: REST API : Profile Picture URL

2017-07-27 Thread Jacob Ouanounou

Thank you for your answer

Here is my user array :

$user=array(
"login" => "cursusA"
,"username" => "Id:".$_SESSION['id']
, "firstname" => $_SESSION['prenom']
, "lastname" => $_SESSION['nom']
, "email" => $_SESSION['email']
, "externalId" => $_SESSION['id']
, "profilePictureUrl" => $Photo
, "pictureUri" => $Photo
  , "externalUserType"=>"cursus"
, "externalType" => "myCMS"
);

I have introduced both columns "pictureUri" and "profilePictureUrl". If 
I remove the lattest I get the same as if I remove both. If I remove the 
first, I get a picture with a question mark.



Le 27/07/2017 à 10:35, Maxim Solodovnik a écrit :

Please do not write personal emails (use Reply All :))

OK

let's do investigation together step-by-step

you are calling services/user/hash REST function

in API it is: 
http://openmeetings.apache.org/openmeetings-webservice/apidocs/org/apache/openmeetings/webservice/UserWebService.html#getRoomHash-java.lang.String-org.apache.openmeetings.db.dto.user.ExternalUserDTO-org.apache.openmeetings.db.dto.room.RoomOptionsDTO-


(you have to go to API doc page: 
http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html

find UserService
find /hash function)

As you can see this function takes ExternalUserDTO 
 as 
user parameter
This object has profilePictureUri: 
http://openmeetings.apache.org/openmeetings-db/apidocs/org/apache/openmeetings/db/dto/user/ExternalUserDTO.html#setProfilePictureUrl-java.lang.String-


So the question is: what string are you passing as profilePictureUrl?
could you provide an example of your PHP user array (with personal 
details like real name/email stripped/masked) ?


On Thu, Jul 27, 2017 at 3:24 PM, Jacob Ouanounou > wrote:


Sorry, I am not good enough in recent languages and programming
techniques to file PRs. I would have liked to ...

I am probably supposed to use the method : setPictureUri(), but
for that I should have something in PHP thant handles User
Objects. In the PHP files OmGateway.php and OmRestService.php, I
found nothing that handles User Objects ... In my program, $user
is just an array, with "login", "email", ... and I just add
"pictureUri" or "profilePictureUrl" ...


Le 27/07/2017 à 10:06, Maxim Solodovnik a écrit :

https://help.github.com/articles/about-pull-requests/


On Thu, Jul 27, 2017 at 3:05 PM, Jacob Ouanounou mailto:nav...@free.fr>> wrote:

What is PR ?


Le 27/07/2017 à 10:04, Maxim Solodovnik a écrit :

What description are you expecting to see?

UserDTO doesn't have pictureUri, User has this field

You can propose PR with better JavaDoc :)))

On Thu, Jul 27, 2017 at 3:01 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

In this page I see something called pictureUri. When I
use that keyword, I get a picture with a question mark,
the same as if I don't specify any photo for the user.
But if I use the keyword "profilePictureUrl" , I get no
picture for the user in the room.

(I don't understand the structure of the document in
javadocs :

http://openmeetings.apache.org/openmeetings-db/apidocs/org/apache/openmeetings/db/dto/user/UserDTO.html?is-external=true


where is the structure of the object User described ? I
just see methods.


Le 27/07/2017 à 09:47, Maxim Solodovnik a écrit :

You can check properties in API javadocs:

http://openmeetings.apache.org/openmeetings-db/apidocs/org/apache/openmeetings/db/dto/user/UserDTO.html?is-external=true




it seems pictureUri was dropped during migration
could you please file JIRA, should be easy to fix

On Thu, Jul 27, 2017 at 2:43 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

Hello,

It seems that the user option "profilePictureUrl"
that allows to set the picture of the user does not
work anymore, or the keyword has changed.

I have also tried to set that parameter in room
options, without success.





-- 
WBR

Maxim aka solomax





-- 
WBR


Re: REST API : Profile Picture URL

2017-07-27 Thread Maxim Solodovnik
Please do not write personal emails (use Reply All :))

OK

let's do investigation together step-by-step

you are calling services/user/hash REST function

in API it is:
http://openmeetings.apache.org/openmeetings-webservice/apidocs/org/apache/openmeetings/webservice/UserWebService.html#getRoomHash-java.lang.String-org.apache.openmeetings.db.dto.user.ExternalUserDTO-org.apache.openmeetings.db.dto.room.RoomOptionsDTO-

(you have to go to API doc page:
http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html
find UserService
find /hash function)

As you can see this function takes ExternalUserDTO

as
user parameter
This object has profilePictureUri:
http://openmeetings.apache.org/openmeetings-db/apidocs/org/apache/openmeetings/db/dto/user/ExternalUserDTO.html#setProfilePictureUrl-java.lang.String-

So the question is: what string are you passing as profilePictureUrl?
could you provide an example of your PHP user array (with personal details
like real name/email stripped/masked) ?

On Thu, Jul 27, 2017 at 3:24 PM, Jacob Ouanounou  wrote:

> Sorry, I am not good enough in recent languages and programming techniques
> to file PRs. I would have liked to ...
>
> I am probably supposed to use the method : setPictureUri(), but for that I
> should have something in PHP thant handles User Objects. In the PHP files
> OmGateway.php and OmRestService.php, I found nothing that handles User
> Objects ... In my program, $user is just an array, with "login", "email",
> ... and I just add "pictureUri" or "profilePictureUrl" ...
>
> Le 27/07/2017 à 10:06, Maxim Solodovnik a écrit :
>
> https://help.github.com/articles/about-pull-requests/
>
> On Thu, Jul 27, 2017 at 3:05 PM, Jacob Ouanounou  wrote:
>
>> What is PR ?
>>
>> Le 27/07/2017 à 10:04, Maxim Solodovnik a écrit :
>>
>> What description are you expecting to see?
>>
>> UserDTO doesn't have pictureUri, User has this field
>>
>> You can propose PR with better JavaDoc :)))
>>
>> On Thu, Jul 27, 2017 at 3:01 PM, Jacob Ouanounou  wrote:
>>
>>> In this page I see something called pictureUri. When I use that keyword,
>>> I get a picture with a question mark, the same as if I don't specify any
>>> photo for the user. But if I use the keyword "profilePictureUrl" , I get no
>>> picture for the user in the room.
>>>
>>> (I don't understand the structure of the document in javadocs :
>>> http://openmeetings.apache.org/openmeetings-db/apidocs/org/a
>>> pache/openmeetings/db/dto/user/UserDTO.html?is-external=true where is
>>> the structure of the object User described ? I just see methods.
>>>
>>> Le 27/07/2017 à 09:47, Maxim Solodovnik a écrit :
>>>
>>> You can check properties in API javadocs: http://openmeetings.
>>> apache.org/openmeetings-db/apidocs/org/apache/openmeetings/d
>>> b/dto/user/UserDTO.html?is-external=true
>>>
>>> it seems pictureUri was dropped during migration
>>> could you please file JIRA, should be easy to fix
>>>
>>> On Thu, Jul 27, 2017 at 2:43 PM, Jacob Ouanounou  wrote:
>>>
 Hello,

 It seems that the user option "profilePictureUrl" that allows to set
 the picture of the user does not work anymore, or the keyword has changed.

 I have also tried to set that parameter in room options, without
 success.



>>>
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>>
>>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>>
>>
>
>
> --
> WBR
> Maxim aka solomax
>
>
>


-- 
WBR
Maxim aka solomax


Re: REST API : Profile Picture URL

2017-07-27 Thread Maxim Solodovnik
https://help.github.com/articles/about-pull-requests/

On Thu, Jul 27, 2017 at 3:05 PM, Jacob Ouanounou  wrote:

> What is PR ?
>
> Le 27/07/2017 à 10:04, Maxim Solodovnik a écrit :
>
> What description are you expecting to see?
>
> UserDTO doesn't have pictureUri, User has this field
>
> You can propose PR with better JavaDoc :)))
>
> On Thu, Jul 27, 2017 at 3:01 PM, Jacob Ouanounou  wrote:
>
>> In this page I see something called pictureUri. When I use that keyword,
>> I get a picture with a question mark, the same as if I don't specify any
>> photo for the user. But if I use the keyword "profilePictureUrl" , I get no
>> picture for the user in the room.
>>
>> (I don't understand the structure of the document in javadocs :
>> http://openmeetings.apache.org/openmeetings-db/apidocs/org/
>> apache/openmeetings/db/dto/user/UserDTO.html?is-external=true where is
>> the structure of the object User described ? I just see methods.
>>
>> Le 27/07/2017 à 09:47, Maxim Solodovnik a écrit :
>>
>> You can check properties in API javadocs: http://openmeetings.
>> apache.org/openmeetings-db/apidocs/org/apache/openmeetings/
>> db/dto/user/UserDTO.html?is-external=true
>>
>> it seems pictureUri was dropped during migration
>> could you please file JIRA, should be easy to fix
>>
>> On Thu, Jul 27, 2017 at 2:43 PM, Jacob Ouanounou  wrote:
>>
>>> Hello,
>>>
>>> It seems that the user option "profilePictureUrl" that allows to set the
>>> picture of the user does not work anymore, or the keyword has changed.
>>>
>>> I have also tried to set that parameter in room options, without success.
>>>
>>>
>>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>>
>>
>
>
> --
> WBR
> Maxim aka solomax
>
>
>


-- 
WBR
Maxim aka solomax


Re: REST API : Profile Picture URL

2017-07-27 Thread Maxim Solodovnik
What description are you expecting to see?

UserDTO doesn't have pictureUri, User has this field

You can propose PR with better JavaDoc :)))

On Thu, Jul 27, 2017 at 3:01 PM, Jacob Ouanounou  wrote:

> In this page I see something called pictureUri. When I use that keyword, I
> get a picture with a question mark, the same as if I don't specify any
> photo for the user. But if I use the keyword "profilePictureUrl" , I get no
> picture for the user in the room.
>
> (I don't understand the structure of the document in javadocs :
> http://openmeetings.apache.org/openmeetings-db/apidocs/
> org/apache/openmeetings/db/dto/user/UserDTO.html?is-external=true where
> is the structure of the object User described ? I just see methods.
>
> Le 27/07/2017 à 09:47, Maxim Solodovnik a écrit :
>
> You can check properties in API javadocs: http://openmeetings.
> apache.org/openmeetings-db/apidocs/org/apache/openmeetings/db/dto/user/
> UserDTO.html?is-external=true
>
> it seems pictureUri was dropped during migration
> could you please file JIRA, should be easy to fix
>
> On Thu, Jul 27, 2017 at 2:43 PM, Jacob Ouanounou  wrote:
>
>> Hello,
>>
>> It seems that the user option "profilePictureUrl" that allows to set the
>> picture of the user does not work anymore, or the keyword has changed.
>>
>> I have also tried to set that parameter in room options, without success.
>>
>>
>>
>
>
> --
> WBR
> Maxim aka solomax
>
>
>


-- 
WBR
Maxim aka solomax


Re: REST API : Profile Picture URL

2017-07-27 Thread Jacob Ouanounou
In this page I see something called pictureUri. When I use that keyword, 
I get a picture with a question mark, the same as if I don't specify any 
photo for the user. But if I use the keyword "profilePictureUrl" , I get 
no picture for the user in the room.


(I don't understand the structure of the document in javadocs : 
http://openmeetings.apache.org/openmeetings-db/apidocs/org/apache/openmeetings/db/dto/user/UserDTO.html?is-external=true 
where is the structure of the object User described ? I just see methods.



Le 27/07/2017 à 09:47, Maxim Solodovnik a écrit :
You can check properties in API javadocs: 
http://openmeetings.apache.org/openmeetings-db/apidocs/org/apache/openmeetings/db/dto/user/UserDTO.html?is-external=true 



it seems pictureUri was dropped during migration
could you please file JIRA, should be easy to fix

On Thu, Jul 27, 2017 at 2:43 PM, Jacob Ouanounou > wrote:


Hello,

It seems that the user option "profilePictureUrl" that allows to
set the picture of the user does not work anymore, or the keyword
has changed.

I have also tried to set that parameter in room options, without
success.





--
WBR
Maxim aka solomax




Re: REST API : Profile Picture URL

2017-07-27 Thread Maxim Solodovnik
You can check properties in API javadocs:
http://openmeetings.apache.org/openmeetings-db/apidocs/org/apache/openmeetings/db/dto/user/UserDTO.html?is-external=true

it seems pictureUri was dropped during migration
could you please file JIRA, should be easy to fix

On Thu, Jul 27, 2017 at 2:43 PM, Jacob Ouanounou  wrote:

> Hello,
>
> It seems that the user option "profilePictureUrl" that allows to set the
> picture of the user does not work anymore, or the keyword has changed.
>
> I have also tried to set that parameter in room options, without success.
>
>
>


-- 
WBR
Maxim aka solomax


Re: REST API for OM

2017-07-26 Thread Jacob Ouanounou

FINE !!! GOT CONNECTION !!!

Thank you


Le 26/07/2017 à 17:49, Maxim Solodovnik a écrit :

Try hash?secure=hash
I guess this is the issue
Check JS example page

WBR, Maxim
(from mobile, sorry for the typos)

On Jul 26, 2017 22:27, "Jacob Ouanounou" > wrote:


I use each hash only on time


Le 26/07/2017 à 17:00, Maxim Solodovnik a écrit :

Hash is one time only
It is invalid after browser refresh etc.

WBR, Maxim
(from mobile, sorry for the typos)

On Jul 26, 2017 19:40, "Jacob Ouanounou" mailto:nav...@free.fr>> wrote:

Thanx,

I have implemented the as you kindly explained.

I get a sessionId, then a hash ... everything seems OK. Ten I
try to connect, using the $gateway->getUrl() ...

When I use : http://35.157.227.184:5080/openmeetings/

_*hash*_?secureHash=b68d0bc9-2537-4ad7-b3fb-b835a5311a5b&scopeRoomId=7&language=4

as explained in the web page, I get an answer : *Invalid Hash*

Whereas, if i use : http://35.157.227.184:5080/openmeetings/

_*swf*_?secureHash=b68d0bc9-2537-4ad7-b3fb-b835a5311a5b&scopeRoomId=7&language=4

(something that worked in very old versions) I get a
connection to OpenMeetings ... BUT instead of entering the
room I requested (number 7) I get in the home page !

Surprizing ...

Any idea ?


Le 26/07/2017 à 13:01, Maxim Solodovnik a écrit :

Yes,

It is already in a Wiki:

https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)



it shows step-by-step how to:
1) create options:

https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)#create-config-array


2) perform login

https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)#perform-login


3) generate room hash:

https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)#create-room-hash


4) enter the room:

https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)#open-or-enter-om-room



If you fill this Wiki page is not clear enough propose
changes to make it better as PR on github

On Wed, Jul 26, 2017 at 5:54 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

Thank you, Maxim. I had understood that everything was
in OmGateway.php, but I still don't understand how to
use it exactly. Do you have a sample php file that
performs the sequence of calls : login -> hash -> Enter
room ?

What do you mean by "enhance wiki pages" ?

Thanks


Le 26/07/2017 à 12:37, Maxim Solodovnik a écrit :

Then check the code of

https://github.com/openmeetings/openmeetings-api-plugin/blob/master/src/main/scripts/OmGateway.php



and enhance Wiki pages :)

On Wed, Jul 26, 2017 at 5:33 PM, Maxim Solodovnik
mailto:solomax...@gmail.com>> wrote:

I believe you can start from here:
https://github.com/openmeetings/openmeetings-api-plugin/wiki


On Wed, Jul 26, 2017 at 5:27 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

I don't see which of the numerous files shows
an example of connection to OM classroom.

I feel it would be easier to have the sequence
of calls, witha doc on the parameters and their
structure.

I suppose that $gateway contains attributes :
user, pass, and url (?) ... what else ?

The call to the method :
$gateway->getSecureHash($gateway->getUser(
params with necessary user data here ...), 
additional options here ...);

where can I find an explicit doc on the "params
user data" 

Re: REST API for OM

2017-07-26 Thread Maxim Solodovnik
Try hash?secure=hash
I guess this is the issue
Check JS example page

WBR, Maxim
(from mobile, sorry for the typos)

On Jul 26, 2017 22:27, "Jacob Ouanounou"  wrote:

> I use each hash only on time
>
> Le 26/07/2017 à 17:00, Maxim Solodovnik a écrit :
>
> Hash is one time only
> It is invalid after browser refresh etc.
>
> WBR, Maxim
> (from mobile, sorry for the typos)
>
> On Jul 26, 2017 19:40, "Jacob Ouanounou"  wrote:
>
>> Thanx,
>>
>> I have implemented the as you kindly explained.
>>
>> I get a sessionId, then a hash ... everything seems OK. Ten I try to
>> connect, using the $gateway->getUrl() ...
>>
>> When I use : http://35.157.227.184:5080/openmeetings/*hash*
>> ?secureHash=b68d0bc9-2537-4ad7-b3fb-b835a5311a5b&scopeRoomId=7&language=4
>>
>> as explained in the web page, I get an answer : *Invalid Hash*
>>
>> Whereas, if i use : http://35.157.227.184:5080/openmeetings/*swf*
>> ?secureHash=b68d0bc9-2537-4ad7-b3fb-b835a5311a5b&scopeRoomId=7&language=4
>>
>> (something that worked in very old versions) I get a connection to
>> OpenMeetings ... BUT instead of entering the room I requested (number 7) I
>> get in the home page !
>>
>> Surprizing ...
>>
>> Any idea ?
>>
>> Le 26/07/2017 à 13:01, Maxim Solodovnik a écrit :
>>
>> Yes,
>>
>> It is already in a Wiki: https://github.com/openm
>> eetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)
>>
>> it shows step-by-step how to:
>> 1) create options: https://github.com/openmeetings/openmeetings-api-pl
>> ugin/wiki/1.-SOAP-REST-API-(in-PHP)#create-config-array
>> 2) perform login https://github.com/openmeetings/openmeetings-api-plugi
>> n/wiki/1.-SOAP-REST-API-(in-PHP)#perform-login
>> 3) generate room hash: https://github.com/openm
>> eetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-
>> PHP)#create-room-hash
>> 4) enter the room: https://github.com/openmeetings/openmeetings-api-plugi
>> n/wiki/1.-SOAP-REST-API-(in-PHP)#open-or-enter-om-room
>>
>> If you fill this Wiki page is not clear enough propose changes to make it
>> better as PR on github
>>
>> On Wed, Jul 26, 2017 at 5:54 PM, Jacob Ouanounou  wrote:
>>
>>> Thank you, Maxim. I had understood that everything was in OmGateway.php,
>>> but I still don't understand how to use it exactly. Do you have a sample
>>> php file that performs the sequence of calls : login -> hash -> Enter room ?
>>>
>>> What do you mean by "enhance wiki pages" ?
>>>
>>> Thanks
>>>
>>> Le 26/07/2017 à 12:37, Maxim Solodovnik a écrit :
>>>
>>> Then check the code of https://github.com/openmeet
>>> ings/openmeetings-api-plugin/blob/master/src/main/scripts/OmGateway.php
>>> and enhance Wiki pages :)
>>>
>>> On Wed, Jul 26, 2017 at 5:33 PM, Maxim Solodovnik 
>>> wrote:
>>>
 I believe you can start from here: https://github.com/openm
 eetings/openmeetings-api-plugin/wiki

 On Wed, Jul 26, 2017 at 5:27 PM, Jacob Ouanounou 
 wrote:

> I don't see which of the numerous files shows an example of connection
> to OM classroom.
>
> I feel it would be easier to have the sequence of calls, witha doc on
> the parameters and their structure.
>
> I suppose that $gateway contains attributes : user, pass, and url (?)
> ... what else ?
>
> The call to the method :
> $gateway->getSecureHash($gateway->getUser( params with necessary
> user data here ...),  additional options here ...);
>
> where can I find an explicit doc on the "params user data" and a doc
> about the options
>
> Once I get the hash, what is the function to call to enter a room ?
>
> Thank you
> Le 26/07/2017 à 12:15, Maxim Solodovnik a écrit :
>
> Have added user@
>
> Examples can be found in our open source plugin for Moodle:
> https://github.com/openmeetings/openmeetings-moodle-plugin
>
> $gateway = new OmGateway(. config parameters as array here  );
> if ($gateway->login()) {
>  $hash = $gateway->getSecureHash($gateway->getUser( params
> with necessary user data here ...),  additional options here ...);
> }
>
> On Wed, Jul 26, 2017 at 5:08 PM, Jacob Ouanounou 
> wrote:
>
>> I have had a look on the PHP code. I see the functions, but what is
>> the sequence of calls to login, and enter a room ?
>>
>> Thanks
>>
>> Le 26/07/2017 à 11:44, Maxim Solodovnik a écrit :
>>
>> Please do not hijack mail threads
>>
>> For PHP I would recommend to use PHP 
>> API:https://github.com/openmeetings/openmeetings-api-plugin/tree/master/src/main/scripts
>>
>> On Wed, Jul 26, 2017 at 4:42 PM, Maxim Solodovnik  
>>  wrote:
>>
>> Could you please tell me how are you call the service?
>>
>> Example on http://openmeetings.apache.org/RestAPISample.html requires
>> jquery, so it cannot be _just used_
>> To use REST you need client able to send GET/POST/etc. requests.
>> Which one are you using?
>>
>> The erro

Re: REST API for OM

2017-07-26 Thread Jacob Ouanounou

I use each hash only on time


Le 26/07/2017 à 17:00, Maxim Solodovnik a écrit :

Hash is one time only
It is invalid after browser refresh etc.

WBR, Maxim
(from mobile, sorry for the typos)

On Jul 26, 2017 19:40, "Jacob Ouanounou" > wrote:


Thanx,

I have implemented the as you kindly explained.

I get a sessionId, then a hash ... everything seems OK. Ten I try
to connect, using the $gateway->getUrl() ...

When I use : http://35.157.227.184:5080/openmeetings/

_*hash*_?secureHash=b68d0bc9-2537-4ad7-b3fb-b835a5311a5b&scopeRoomId=7&language=4

as explained in the web page, I get an answer : *Invalid Hash*

Whereas, if i use : http://35.157.227.184:5080/openmeetings/

_*swf*_?secureHash=b68d0bc9-2537-4ad7-b3fb-b835a5311a5b&scopeRoomId=7&language=4

(something that worked in very old versions) I get a connection to
OpenMeetings ... BUT instead of entering the room I requested
(number 7) I get in the home page !

Surprizing ...

Any idea ?


Le 26/07/2017 à 13:01, Maxim Solodovnik a écrit :

Yes,

It is already in a Wiki:

https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)



it shows step-by-step how to:
1) create options:

https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)#create-config-array


2) perform login

https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)#perform-login


3) generate room hash:

https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)#create-room-hash


4) enter the room:

https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)#open-or-enter-om-room



If you fill this Wiki page is not clear enough propose changes to
make it better as PR on github

On Wed, Jul 26, 2017 at 5:54 PM, Jacob Ouanounou mailto:nav...@free.fr>> wrote:

Thank you, Maxim. I had understood that everything was in
OmGateway.php, but I still don't understand how to use it
exactly. Do you have a sample php file that performs the
sequence of calls : login -> hash -> Enter room ?

What do you mean by "enhance wiki pages" ?

Thanks


Le 26/07/2017 à 12:37, Maxim Solodovnik a écrit :

Then check the code of

https://github.com/openmeetings/openmeetings-api-plugin/blob/master/src/main/scripts/OmGateway.php



and enhance Wiki pages :)

On Wed, Jul 26, 2017 at 5:33 PM, Maxim Solodovnik
mailto:solomax...@gmail.com>> wrote:

I believe you can start from here:
https://github.com/openmeetings/openmeetings-api-plugin/wiki


On Wed, Jul 26, 2017 at 5:27 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

I don't see which of the numerous files shows an
example of connection to OM classroom.

I feel it would be easier to have the sequence of
calls, witha doc on the parameters and their structure.

I suppose that $gateway contains attributes : user,
pass, and url (?) ... what else ?

The call to the method :
$gateway->getSecureHash($gateway->getUser(
params with necessary user data here ...), 
additional options here ...);

where can I find an explicit doc on the "params user
data" and a doc about the options

Once I get the hash, what is the function to call to
enter a room ?

Thank you

Le 26/07/2017 à 12:15, Maxim Solodovnik a écrit :

Have added user@

Examples can be found in our open source plugin for
Moodle:
https://github.com/openmeetings/openmeetings-moodle-plugin


$gateway = new OmGateway(. config parameters as
array here  );

Re: REST API for OM

2017-07-26 Thread Maxim Solodovnik
Hash is one time only
It is invalid after browser refresh etc.

WBR, Maxim
(from mobile, sorry for the typos)

On Jul 26, 2017 19:40, "Jacob Ouanounou"  wrote:

> Thanx,
>
> I have implemented the as you kindly explained.
>
> I get a sessionId, then a hash ... everything seems OK. Ten I try to
> connect, using the $gateway->getUrl() ...
>
> When I use : http://35.157.227.184:5080/openmeetings/*hash*?secureHash=
> b68d0bc9-2537-4ad7-b3fb-b835a5311a5b&scopeRoomId=7&language=4
>
> as explained in the web page, I get an answer : *Invalid Hash*
>
> Whereas, if i use : http://35.157.227.184:5080/openmeetings/*swf*
> ?secureHash=b68d0bc9-2537-4ad7-b3fb-b835a5311a5b&scopeRoomId=7&language=4
>
> (something that worked in very old versions) I get a connection to
> OpenMeetings ... BUT instead of entering the room I requested (number 7) I
> get in the home page !
>
> Surprizing ...
>
> Any idea ?
>
> Le 26/07/2017 à 13:01, Maxim Solodovnik a écrit :
>
> Yes,
>
> It is already in a Wiki: https://github.com/openmeetings/openmeetings-api-
> plugin/wiki/1.-SOAP-REST-API-(in-PHP)
>
> it shows step-by-step how to:
> 1) create options: https://github.com/openmeetings/openmeetings-api-
> plugin/wiki/1.-SOAP-REST-API-(in-PHP)#create-config-array
> 2) perform login https://github.com/openmeetings/openmeetings-api-
> plugin/wiki/1.-SOAP-REST-API-(in-PHP)#perform-login
> 3) generate room hash: https://github.com/openmeetings/openmeetings-api-
> plugin/wiki/1.-SOAP-REST-API-(in-PHP)#create-room-hash
> 4) enter the room: https://github.com/openmeetings/openmeetings-api-
> plugin/wiki/1.-SOAP-REST-API-(in-PHP)#open-or-enter-om-room
>
> If you fill this Wiki page is not clear enough propose changes to make it
> better as PR on github
>
> On Wed, Jul 26, 2017 at 5:54 PM, Jacob Ouanounou  wrote:
>
>> Thank you, Maxim. I had understood that everything was in OmGateway.php,
>> but I still don't understand how to use it exactly. Do you have a sample
>> php file that performs the sequence of calls : login -> hash -> Enter room ?
>>
>> What do you mean by "enhance wiki pages" ?
>>
>> Thanks
>>
>> Le 26/07/2017 à 12:37, Maxim Solodovnik a écrit :
>>
>> Then check the code of https://github.com/openmeet
>> ings/openmeetings-api-plugin/blob/master/src/main/scripts/OmGateway.php
>> and enhance Wiki pages :)
>>
>> On Wed, Jul 26, 2017 at 5:33 PM, Maxim Solodovnik 
>> wrote:
>>
>>> I believe you can start from here: https://github.com/openm
>>> eetings/openmeetings-api-plugin/wiki
>>>
>>> On Wed, Jul 26, 2017 at 5:27 PM, Jacob Ouanounou  wrote:
>>>
 I don't see which of the numerous files shows an example of connection
 to OM classroom.

 I feel it would be easier to have the sequence of calls, witha doc on
 the parameters and their structure.

 I suppose that $gateway contains attributes : user, pass, and url (?)
 ... what else ?

 The call to the method :
 $gateway->getSecureHash($gateway->getUser( params with necessary
 user data here ...),  additional options here ...);

 where can I find an explicit doc on the "params user data" and a doc
 about the options

 Once I get the hash, what is the function to call to enter a room ?

 Thank you
 Le 26/07/2017 à 12:15, Maxim Solodovnik a écrit :

 Have added user@

 Examples can be found in our open source plugin for Moodle:
 https://github.com/openmeetings/openmeetings-moodle-plugin

 $gateway = new OmGateway(. config parameters as array here  );
 if ($gateway->login()) {
  $hash = $gateway->getSecureHash($gateway->getUser( params
 with necessary user data here ...),  additional options here ...);
 }

 On Wed, Jul 26, 2017 at 5:08 PM, Jacob Ouanounou 
 wrote:

> I have had a look on the PHP code. I see the functions, but what is
> the sequence of calls to login, and enter a room ?
>
> Thanks
>
> Le 26/07/2017 à 11:44, Maxim Solodovnik a écrit :
>
> Please do not hijack mail threads
>
> For PHP I would recommend to use PHP 
> API:https://github.com/openmeetings/openmeetings-api-plugin/tree/master/src/main/scripts
>
> On Wed, Jul 26, 2017 at 4:42 PM, Maxim Solodovnik  
>  wrote:
>
> Could you please tell me how are you call the service?
>
> Example on http://openmeetings.apache.org/RestAPISample.html requires
> jquery, so it cannot be _just used_
> To use REST you need client able to send GET/POST/etc. requests.
> Which one are you using?
>
> The error you are getting doesn't make sense :( CSRF checks are not
> active for REST
>
> On Wed, Jul 26, 2017 at 4:30 PM, Jacob Ouanounou  
>  wrote:
>
> Back to REST API : I succeed to get the SID, but when I try to get the 
> hash,
> using excatly the code written there 
> :http://openmeetings.apache.org/RestAPISample.html , with the sid I 
> obtained,
> I get

Re: REST API for OM

2017-07-26 Thread Jacob Ouanounou

I have checked a little bit more :

The reason why I got connected when I used the service keyword swf 
rather than hash is that I had another window of the breowser that was 
already connected to OM.


So I still have the problem : ahen I try to connect using the hash code 
provided by OM, I get the message : Invalid hash.


This is the url I used for connection :

http://35.157.227.184:5080/openmeetings/hash?secureHash=fad0be83-7677-4c87-bb41-53aa57d1db06&scopeRoomId=9&language=4

Best regards


Le 26/07/2017 à 14:40, Jacob Ouanounou a écrit :


Thanx,

I have implemented the as you kindly explained.

I get a sessionId, then a hash ... everything seems OK. Ten I try to 
connect, using the $gateway->getUrl() ...


When I use : 
http://35.157.227.184:5080/openmeetings/_*hash*_?secureHash=b68d0bc9-2537-4ad7-b3fb-b835a5311a5b&scopeRoomId=7&language=4


as explained in the web page, I get an answer : *Invalid Hash*

Whereas, if i use : 
http://35.157.227.184:5080/openmeetings/_*swf*_?secureHash=b68d0bc9-2537-4ad7-b3fb-b835a5311a5b&scopeRoomId=7&language=4


(something that worked in very old versions) I get a connection to 
OpenMeetings ... BUT instead of entering the room I requested (number 
7) I get in the home page !


Surprizing ...

Any idea ?


Le 26/07/2017 à 13:01, Maxim Solodovnik a écrit :

Yes,

It is already in a Wiki: 
https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP) 



it shows step-by-step how to:
1) create options: 
https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)#create-config-array 

2) perform login 
https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)#perform-login 

3) generate room hash: 
https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)#create-room-hash 

4) enter the room: 
https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)#open-or-enter-om-room 



If you fill this Wiki page is not clear enough propose changes to 
make it better as PR on github


On Wed, Jul 26, 2017 at 5:54 PM, Jacob Ouanounou > wrote:


Thank you, Maxim. I had understood that everything was in
OmGateway.php, but I still don't understand how to use it
exactly. Do you have a sample php file that performs the sequence
of calls : login -> hash -> Enter room ?

What do you mean by "enhance wiki pages" ?

Thanks


Le 26/07/2017 à 12:37, Maxim Solodovnik a écrit :

Then check the code of

https://github.com/openmeetings/openmeetings-api-plugin/blob/master/src/main/scripts/OmGateway.php



and enhance Wiki pages :)

On Wed, Jul 26, 2017 at 5:33 PM, Maxim Solodovnik
mailto:solomax...@gmail.com>> wrote:

I believe you can start from here:
https://github.com/openmeetings/openmeetings-api-plugin/wiki


On Wed, Jul 26, 2017 at 5:27 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

I don't see which of the numerous files shows an example
of connection to OM classroom.

I feel it would be easier to have the sequence of calls,
witha doc on the parameters and their structure.

I suppose that $gateway contains attributes : user,
pass, and url (?) ... what else ?

The call to the method :
$gateway->getSecureHash($gateway->getUser( params
with necessary user data here ...),  additional
options here ...);

where can I find an explicit doc on the "params user
data" and a doc about the options

Once I get the hash, what is the function to call to
enter a room ?

Thank you

Le 26/07/2017 à 12:15, Maxim Solodovnik a écrit :

Have added user@

Examples can be found in our open source plugin for
Moodle:
https://github.com/openmeetings/openmeetings-moodle-plugin


$gateway = new OmGateway(. config parameters as
array here  );
if ($gateway->login()) {
 $hash =
$gateway->getSecureHa

Re: REST API for OM

2017-07-26 Thread Jacob Ouanounou

Thanx,

I have implemented the as you kindly explained.

I get a sessionId, then a hash ... everything seems OK. Ten I try to 
connect, using the $gateway->getUrl() ...


When I use : 
http://35.157.227.184:5080/openmeetings/_*hash*_?secureHash=b68d0bc9-2537-4ad7-b3fb-b835a5311a5b&scopeRoomId=7&language=4


as explained in the web page, I get an answer : *Invalid Hash*

Whereas, if i use : 
http://35.157.227.184:5080/openmeetings/_*swf*_?secureHash=b68d0bc9-2537-4ad7-b3fb-b835a5311a5b&scopeRoomId=7&language=4


(something that worked in very old versions) I get a connection to 
OpenMeetings ... BUT instead of entering the room I requested (number 7) 
I get in the home page !


Surprizing ...

Any idea ?


Le 26/07/2017 à 13:01, Maxim Solodovnik a écrit :

Yes,

It is already in a Wiki: 
https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP) 



it shows step-by-step how to:
1) create options: 
https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)#create-config-array 

2) perform login 
https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)#perform-login 

3) generate room hash: 
https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)#create-room-hash 

4) enter the room: 
https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)#open-or-enter-om-room 



If you fill this Wiki page is not clear enough propose changes to make 
it better as PR on github


On Wed, Jul 26, 2017 at 5:54 PM, Jacob Ouanounou > wrote:


Thank you, Maxim. I had understood that everything was in
OmGateway.php, but I still don't understand how to use it exactly.
Do you have a sample php file that performs the sequence of calls
: login -> hash -> Enter room ?

What do you mean by "enhance wiki pages" ?

Thanks


Le 26/07/2017 à 12:37, Maxim Solodovnik a écrit :

Then check the code of

https://github.com/openmeetings/openmeetings-api-plugin/blob/master/src/main/scripts/OmGateway.php



and enhance Wiki pages :)

On Wed, Jul 26, 2017 at 5:33 PM, Maxim Solodovnik
mailto:solomax...@gmail.com>> wrote:

I believe you can start from here:
https://github.com/openmeetings/openmeetings-api-plugin/wiki


On Wed, Jul 26, 2017 at 5:27 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

I don't see which of the numerous files shows an example
of connection to OM classroom.

I feel it would be easier to have the sequence of calls,
witha doc on the parameters and their structure.

I suppose that $gateway contains attributes : user, pass,
and url (?) ... what else ?

The call to the method :
$gateway->getSecureHash($gateway->getUser( params
with necessary user data here ...),  additional
options here ...);

where can I find an explicit doc on the "params user
data" and a doc about the options

Once I get the hash, what is the function to call to
enter a room ?

Thank you

Le 26/07/2017 à 12:15, Maxim Solodovnik a écrit :

Have added user@

Examples can be found in our open source plugin for
Moodle:
https://github.com/openmeetings/openmeetings-moodle-plugin


$gateway = new OmGateway(. config parameters as
array here  );
if ($gateway->login()) {
 $hash =
$gateway->getSecureHash($gateway->getUser( params
with necessary user data here ...),  additional
options here ...);
}

On Wed, Jul 26, 2017 at 5:08 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

I have had a look on the PHP code. I see the
functions, but what is the sequence of calls to
login, and enter a room ?

Thanks


Le 26/07/2017 à 11:44, Maxim Solodovnik a écrit :

Please do not hijack mail thre

Re: REST API for OM

2017-07-26 Thread Maxim Solodovnik
Yes,

It is already in a Wiki:
https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)

it shows step-by-step how to:
1) create options:
https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)#create-config-array
2) perform login
https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)#perform-login
3) generate room hash:
https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)#create-room-hash
4) enter the room:
https://github.com/openmeetings/openmeetings-api-plugin/wiki/1.-SOAP-REST-API-(in-PHP)#open-or-enter-om-room

If you fill this Wiki page is not clear enough propose changes to make it
better as PR on github

On Wed, Jul 26, 2017 at 5:54 PM, Jacob Ouanounou  wrote:

> Thank you, Maxim. I had understood that everything was in OmGateway.php,
> but I still don't understand how to use it exactly. Do you have a sample
> php file that performs the sequence of calls : login -> hash -> Enter room ?
>
> What do you mean by "enhance wiki pages" ?
>
> Thanks
>
> Le 26/07/2017 à 12:37, Maxim Solodovnik a écrit :
>
> Then check the code of https://github.com/openmeetings/openmeetings-api-
> plugin/blob/master/src/main/scripts/OmGateway.php
> and enhance Wiki pages :)
>
> On Wed, Jul 26, 2017 at 5:33 PM, Maxim Solodovnik 
> wrote:
>
>> I believe you can start from here: https://github.com/openm
>> eetings/openmeetings-api-plugin/wiki
>>
>> On Wed, Jul 26, 2017 at 5:27 PM, Jacob Ouanounou  wrote:
>>
>>> I don't see which of the numerous files shows an example of connection
>>> to OM classroom.
>>>
>>> I feel it would be easier to have the sequence of calls, witha doc on
>>> the parameters and their structure.
>>>
>>> I suppose that $gateway contains attributes : user, pass, and url (?)
>>> ... what else ?
>>>
>>> The call to the method :
>>> $gateway->getSecureHash($gateway->getUser( params with necessary
>>> user data here ...),  additional options here ...);
>>>
>>> where can I find an explicit doc on the "params user data" and a doc
>>> about the options
>>>
>>> Once I get the hash, what is the function to call to enter a room ?
>>>
>>> Thank you
>>> Le 26/07/2017 à 12:15, Maxim Solodovnik a écrit :
>>>
>>> Have added user@
>>>
>>> Examples can be found in our open source plugin for Moodle:
>>> https://github.com/openmeetings/openmeetings-moodle-plugin
>>>
>>> $gateway = new OmGateway(. config parameters as array here  );
>>> if ($gateway->login()) {
>>>  $hash = $gateway->getSecureHash($gateway->getUser( params with
>>> necessary user data here ...),  additional options here ...);
>>> }
>>>
>>> On Wed, Jul 26, 2017 at 5:08 PM, Jacob Ouanounou  wrote:
>>>
 I have had a look on the PHP code. I see the functions, but what is the
 sequence of calls to login, and enter a room ?

 Thanks

 Le 26/07/2017 à 11:44, Maxim Solodovnik a écrit :

 Please do not hijack mail threads

 For PHP I would recommend to use PHP 
 API:https://github.com/openmeetings/openmeetings-api-plugin/tree/master/src/main/scripts

 On Wed, Jul 26, 2017 at 4:42 PM, Maxim Solodovnik  
  wrote:

 Could you please tell me how are you call the service?

 Example on http://openmeetings.apache.org/RestAPISample.html requires
 jquery, so it cannot be _just used_
 To use REST you need client able to send GET/POST/etc. requests.
 Which one are you using?

 The error you are getting doesn't make sense :( CSRF checks are not
 active for REST

 On Wed, Jul 26, 2017 at 4:30 PM, Jacob Ouanounou  
  wrote:

 Back to REST API : I succeed to get the SID, but when I try to get the 
 hash,
 using excatly the code written there 
 :http://openmeetings.apache.org/RestAPISample.html , with the sid I 
 obtained,
 I get an error (in the console of the browser) :

 http://35.157.227.184:5080/openmeetings/services/user/hash?sid=1a35cf5f-21f3-45f3-a679-4e6c88d6911d.
 No 'Access-Control-Allow-Origin' header is present on the requested
 resource.

 Don't understand


 Le 25/07/2017 à 14:11, Jacob Ouanounou a écrit :

 In which directory is this file ?


 Le 25/07/2017 à 13:57, Maxim Solodovnik a écrit :

 is there anything suspicious in openmeetings.log file?

 On Tue, Jul 25, 2017 at 6:54 PM, Jacob Ouanounou  
  wrote:

 When I enter this directly on the browser, using the correct user and pwd,
 I get this

 {"serviceResult":{"code":-1,"message":"Login failed","type":"ERROR"}}


 Le 25/07/2017 à 13:47, Maxim Solodovnik a écrit :

 to login and get SID you can just type in your browser:
 http://35.157.227.184:5080/openmeetings/services/user/login?user=XXX&pass=XXX

 Here is the link to PHP API (seems to work, just have tested with 
 Moodle)https://github.com/openm

Re: REST API for OM

2017-07-26 Thread Jacob Ouanounou
Thank you, Maxim. I had understood that everything was in OmGateway.php, 
but I still don't understand how to use it exactly. Do you have a sample 
php file that performs the sequence of calls : login -> hash -> Enter room ?


What do you mean by "enhance wiki pages" ?

Thanks


Le 26/07/2017 à 12:37, Maxim Solodovnik a écrit :
Then check the code of 
https://github.com/openmeetings/openmeetings-api-plugin/blob/master/src/main/scripts/OmGateway.php 


and enhance Wiki pages :)

On Wed, Jul 26, 2017 at 5:33 PM, Maxim Solodovnik 
mailto:solomax...@gmail.com>> wrote:


I believe you can start from here:
https://github.com/openmeetings/openmeetings-api-plugin/wiki


On Wed, Jul 26, 2017 at 5:27 PM, Jacob Ouanounou mailto:nav...@free.fr>> wrote:

I don't see which of the numerous files shows an example of
connection to OM classroom.

I feel it would be easier to have the sequence of calls, witha
doc on the parameters and their structure.

I suppose that $gateway contains attributes : user, pass, and
url (?) ... what else ?

The call to the method :
$gateway->getSecureHash($gateway->getUser( params with
necessary user data here ...),  additional options here ...);

where can I find an explicit doc on the "params user data" and
a doc about the options

Once I get the hash, what is the function to call to enter a
room ?

Thank you

Le 26/07/2017 à 12:15, Maxim Solodovnik a écrit :

Have added user@

Examples can be found in our open source plugin for Moodle:
https://github.com/openmeetings/openmeetings-moodle-plugin


$gateway = new OmGateway(. config parameters as array
here  );
if ($gateway->login()) {
 $hash = $gateway->getSecureHash($gateway->getUser(
params with necessary user data here ...),  additional
options here ...);
}

On Wed, Jul 26, 2017 at 5:08 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

I have had a look on the PHP code. I see the functions,
but what is the sequence of calls to login, and enter a
room ?

Thanks


Le 26/07/2017 à 11:44, Maxim Solodovnik a écrit :

Please do not hijack mail threads

For PHP I would recommend to use PHP API:

https://github.com/openmeetings/openmeetings-api-plugin/tree/master/src/main/scripts



On Wed, Jul 26, 2017 at 4:42 PM, Maxim Solodovnik 
  wrote:

Could you please tell me how are you call the service?

Example onhttp://openmeetings.apache.org/RestAPISample.html
  requires
jquery, so it cannot be _just used_
To use REST you need client able to send GET/POST/etc. requests.
Which one are you using?

The error you are getting doesn't make sense :( CSRF checks are not
active for REST

On Wed, Jul 26, 2017 at 4:30 PM, Jacob Ouanounou 
  wrote:

Back to REST API : I succeed to get the SID, but when I try to get 
the hash,
using excatly the code written there :
http://openmeetings.apache.org/RestAPISample.html
  , with the sid 
I obtained,
I get an error (in the console of the browser) :



http://35.157.227.184:5080/openmeetings/services/user/hash?sid=1a35cf5f-21f3-45f3-a679-4e6c88d6911d

.
No 'Access-Control-Allow-Origin' header is present on the requested
resource.

Don't understand


Le 25/07/2017 à 14:11, Jacob Ouanounou a écrit :

In which directory is this file ?


Le 25/07/2017 à 13:57, Maxim Solodovnik a écrit :

is there anything suspicious in openmeetings.log file?

On Tue, Jul 25, 2017 at 6:54 PM, Jacob Ouanounou 
  wrote:

When I enter this directly on the browser, using the correct user 
and pwd,
I get this

{"serviceResult":{"code":-1,"message":"Login 
failed","type":"ERROR"}}


Le 25/07/2017 à 13:47, Maxim Solodovnik a écrit :

to login and get SID you can just type in your browser:


http://35.157.227.184:5080/openmeetings/services/user/login?user=XXX&pass=XXX



Re: REST API for OM

2017-07-26 Thread Maxim Solodovnik
As and additiona/alternative documentation can be added to PHP files ...
PRs are welcome :)))

On Wed, Jul 26, 2017 at 5:37 PM, Maxim Solodovnik 
wrote:

> Then check the code of https://github.com/openmeetings/openmeetings-api-
> plugin/blob/master/src/main/scripts/OmGateway.php
> and enhance Wiki pages :)
>
> On Wed, Jul 26, 2017 at 5:33 PM, Maxim Solodovnik 
> wrote:
>
>> I believe you can start from here: https://github.com/openm
>> eetings/openmeetings-api-plugin/wiki
>>
>> On Wed, Jul 26, 2017 at 5:27 PM, Jacob Ouanounou  wrote:
>>
>>> I don't see which of the numerous files shows an example of connection
>>> to OM classroom.
>>>
>>> I feel it would be easier to have the sequence of calls, witha doc on
>>> the parameters and their structure.
>>>
>>> I suppose that $gateway contains attributes : user, pass, and url (?)
>>> ... what else ?
>>>
>>> The call to the method :
>>> $gateway->getSecureHash($gateway->getUser( params with necessary
>>> user data here ...),  additional options here ...);
>>>
>>> where can I find an explicit doc on the "params user data" and a doc
>>> about the options
>>>
>>> Once I get the hash, what is the function to call to enter a room ?
>>>
>>> Thank you
>>> Le 26/07/2017 à 12:15, Maxim Solodovnik a écrit :
>>>
>>> Have added user@
>>>
>>> Examples can be found in our open source plugin for Moodle:
>>> https://github.com/openmeetings/openmeetings-moodle-plugin
>>>
>>> $gateway = new OmGateway(. config parameters as array here  );
>>> if ($gateway->login()) {
>>>  $hash = $gateway->getSecureHash($gateway->getUser( params with
>>> necessary user data here ...),  additional options here ...);
>>> }
>>>
>>> On Wed, Jul 26, 2017 at 5:08 PM, Jacob Ouanounou  wrote:
>>>
 I have had a look on the PHP code. I see the functions, but what is the
 sequence of calls to login, and enter a room ?

 Thanks

 Le 26/07/2017 à 11:44, Maxim Solodovnik a écrit :

 Please do not hijack mail threads

 For PHP I would recommend to use PHP 
 API:https://github.com/openmeetings/openmeetings-api-plugin/tree/master/src/main/scripts

 On Wed, Jul 26, 2017 at 4:42 PM, Maxim Solodovnik  
  wrote:

 Could you please tell me how are you call the service?

 Example on http://openmeetings.apache.org/RestAPISample.html requires
 jquery, so it cannot be _just used_
 To use REST you need client able to send GET/POST/etc. requests.
 Which one are you using?

 The error you are getting doesn't make sense :( CSRF checks are not
 active for REST

 On Wed, Jul 26, 2017 at 4:30 PM, Jacob Ouanounou  
  wrote:

 Back to REST API : I succeed to get the SID, but when I try to get the 
 hash,
 using excatly the code written there 
 :http://openmeetings.apache.org/RestAPISample.html , with the sid I 
 obtained,
 I get an error (in the console of the browser) :

 http://35.157.227.184:5080/openmeetings/services/user/hash?sid=1a35cf5f-21f3-45f3-a679-4e6c88d6911d.
 No 'Access-Control-Allow-Origin' header is present on the requested
 resource.

 Don't understand


 Le 25/07/2017 à 14:11, Jacob Ouanounou a écrit :

 In which directory is this file ?


 Le 25/07/2017 à 13:57, Maxim Solodovnik a écrit :

 is there anything suspicious in openmeetings.log file?

 On Tue, Jul 25, 2017 at 6:54 PM, Jacob Ouanounou  
  wrote:

 When I enter this directly on the browser, using the correct user and pwd,
 I get this

 {"serviceResult":{"code":-1,"message":"Login failed","type":"ERROR"}}


 Le 25/07/2017 à 13:47, Maxim Solodovnik a écrit :

 to login and get SID you can just type in your browser:
 http://35.157.227.184:5080/openmeetings/services/user/login?user=XXX&pass=XXX

 Here is the link to PHP API (seems to work, just have tested with 
 Moodle)https://github.com/openmeetings/openmeetings-api-plugin

 Here is the link to Java Unit tests we are using in nightly builds
 https://github.com/apache/openmeetings/tree/3.3.x/openmeetings-web/src/test/java/org/apache/openmeetings/test/webservice

 How are you planning to use the API?

 On Tue, Jul 25, 2017 at 6:40 PM, Jacob Ouanounou  
  wrote:

 Can you please send me your code, si that I could see a code that works
 and get inspired ...


 Le 25/07/2017 à 13:33, Maxim Solodovnik a écrit :

 just have tested on demo server, works as expected
 how are you using the service?

 On Tue, Jul 25, 2017 at 6:28 PM, Jacob Ouanounou  
  wrote:

 I have followed the first example, and I get this error :
 (services/user/login)

 No 'Access-Control-Allow-Origin' header is present on the requested
 resource. Origin 'null' is therefore not allowed access.



 Le 25/07/2017 à 12:24, Maxim Solodovnik

Re: REST API for OM

2017-07-26 Thread Maxim Solodovnik
Then check the code of
https://github.com/openmeetings/openmeetings-api-plugin/blob/master/src/main/scripts/OmGateway.php
and enhance Wiki pages :)

On Wed, Jul 26, 2017 at 5:33 PM, Maxim Solodovnik 
wrote:

> I believe you can start from here: https://github.com/
> openmeetings/openmeetings-api-plugin/wiki
>
> On Wed, Jul 26, 2017 at 5:27 PM, Jacob Ouanounou  wrote:
>
>> I don't see which of the numerous files shows an example of connection to
>> OM classroom.
>>
>> I feel it would be easier to have the sequence of calls, witha doc on the
>> parameters and their structure.
>>
>> I suppose that $gateway contains attributes : user, pass, and url (?) ...
>> what else ?
>>
>> The call to the method :
>> $gateway->getSecureHash($gateway->getUser( params with necessary
>> user data here ...),  additional options here ...);
>>
>> where can I find an explicit doc on the "params user data" and a doc
>> about the options
>>
>> Once I get the hash, what is the function to call to enter a room ?
>>
>> Thank you
>> Le 26/07/2017 à 12:15, Maxim Solodovnik a écrit :
>>
>> Have added user@
>>
>> Examples can be found in our open source plugin for Moodle:
>> https://github.com/openmeetings/openmeetings-moodle-plugin
>>
>> $gateway = new OmGateway(. config parameters as array here  );
>> if ($gateway->login()) {
>>  $hash = $gateway->getSecureHash($gateway->getUser( params with
>> necessary user data here ...),  additional options here ...);
>> }
>>
>> On Wed, Jul 26, 2017 at 5:08 PM, Jacob Ouanounou  wrote:
>>
>>> I have had a look on the PHP code. I see the functions, but what is the
>>> sequence of calls to login, and enter a room ?
>>>
>>> Thanks
>>>
>>> Le 26/07/2017 à 11:44, Maxim Solodovnik a écrit :
>>>
>>> Please do not hijack mail threads
>>>
>>> For PHP I would recommend to use PHP 
>>> API:https://github.com/openmeetings/openmeetings-api-plugin/tree/master/src/main/scripts
>>>
>>> On Wed, Jul 26, 2017 at 4:42 PM, Maxim Solodovnik  
>>>  wrote:
>>>
>>> Could you please tell me how are you call the service?
>>>
>>> Example on http://openmeetings.apache.org/RestAPISample.html requires
>>> jquery, so it cannot be _just used_
>>> To use REST you need client able to send GET/POST/etc. requests.
>>> Which one are you using?
>>>
>>> The error you are getting doesn't make sense :( CSRF checks are not
>>> active for REST
>>>
>>> On Wed, Jul 26, 2017 at 4:30 PM, Jacob Ouanounou  
>>>  wrote:
>>>
>>> Back to REST API : I succeed to get the SID, but when I try to get the hash,
>>> using excatly the code written there 
>>> :http://openmeetings.apache.org/RestAPISample.html , with the sid I 
>>> obtained,
>>> I get an error (in the console of the browser) :
>>>
>>> http://35.157.227.184:5080/openmeetings/services/user/hash?sid=1a35cf5f-21f3-45f3-a679-4e6c88d6911d.
>>> No 'Access-Control-Allow-Origin' header is present on the requested
>>> resource.
>>>
>>> Don't understand
>>>
>>>
>>> Le 25/07/2017 à 14:11, Jacob Ouanounou a écrit :
>>>
>>> In which directory is this file ?
>>>
>>>
>>> Le 25/07/2017 à 13:57, Maxim Solodovnik a écrit :
>>>
>>> is there anything suspicious in openmeetings.log file?
>>>
>>> On Tue, Jul 25, 2017 at 6:54 PM, Jacob Ouanounou  
>>>  wrote:
>>>
>>> When I enter this directly on the browser, using the correct user and pwd,
>>> I get this
>>>
>>> {"serviceResult":{"code":-1,"message":"Login failed","type":"ERROR"}}
>>>
>>>
>>> Le 25/07/2017 à 13:47, Maxim Solodovnik a écrit :
>>>
>>> to login and get SID you can just type in your browser:
>>> http://35.157.227.184:5080/openmeetings/services/user/login?user=XXX&pass=XXX
>>>
>>> Here is the link to PHP API (seems to work, just have tested with 
>>> Moodle)https://github.com/openmeetings/openmeetings-api-plugin
>>>
>>> Here is the link to Java Unit tests we are using in nightly builds
>>> https://github.com/apache/openmeetings/tree/3.3.x/openmeetings-web/src/test/java/org/apache/openmeetings/test/webservice
>>>
>>> How are you planning to use the API?
>>>
>>> On Tue, Jul 25, 2017 at 6:40 PM, Jacob Ouanounou  
>>>  wrote:
>>>
>>> Can you please send me your code, si that I could see a code that works
>>> and get inspired ...
>>>
>>>
>>> Le 25/07/2017 à 13:33, Maxim Solodovnik a écrit :
>>>
>>> just have tested on demo server, works as expected
>>> how are you using the service?
>>>
>>> On Tue, Jul 25, 2017 at 6:28 PM, Jacob Ouanounou  
>>>  wrote:
>>>
>>> I have followed the first example, and I get this error :
>>> (services/user/login)
>>>
>>> No 'Access-Control-Allow-Origin' header is present on the requested
>>> resource. Origin 'null' is therefore not allowed access.
>>>
>>>
>>>
>>> Le 25/07/2017 à 12:24, Maxim Solodovnik a écrit :
>>>
>>> Yes, API was changed
>>> please check the example
>>> I believe it is cleaner now :)
>>>
>>> On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanounou  
>>>  wrote:
>>>
>>> In a previous version, I started by using this link to do a session
>>> request :
>>> http://:5080/openmeetings/services/User

Re: REST API for OM

2017-07-26 Thread Maxim Solodovnik
I believe you can start from here:
https://github.com/openmeetings/openmeetings-api-plugin/wiki

On Wed, Jul 26, 2017 at 5:27 PM, Jacob Ouanounou  wrote:

> I don't see which of the numerous files shows an example of connection to
> OM classroom.
>
> I feel it would be easier to have the sequence of calls, witha doc on the
> parameters and their structure.
>
> I suppose that $gateway contains attributes : user, pass, and url (?) ...
> what else ?
>
> The call to the method :
> $gateway->getSecureHash($gateway->getUser( params with necessary user
> data here ...),  additional options here ...);
>
> where can I find an explicit doc on the "params user data" and a doc
> about the options
>
> Once I get the hash, what is the function to call to enter a room ?
>
> Thank you
> Le 26/07/2017 à 12:15, Maxim Solodovnik a écrit :
>
> Have added user@
>
> Examples can be found in our open source plugin for Moodle:
> https://github.com/openmeetings/openmeetings-moodle-plugin
>
> $gateway = new OmGateway(. config parameters as array here  );
> if ($gateway->login()) {
>  $hash = $gateway->getSecureHash($gateway->getUser( params with
> necessary user data here ...),  additional options here ...);
> }
>
> On Wed, Jul 26, 2017 at 5:08 PM, Jacob Ouanounou  wrote:
>
>> I have had a look on the PHP code. I see the functions, but what is the
>> sequence of calls to login, and enter a room ?
>>
>> Thanks
>>
>> Le 26/07/2017 à 11:44, Maxim Solodovnik a écrit :
>>
>> Please do not hijack mail threads
>>
>> For PHP I would recommend to use PHP 
>> API:https://github.com/openmeetings/openmeetings-api-plugin/tree/master/src/main/scripts
>>
>> On Wed, Jul 26, 2017 at 4:42 PM, Maxim Solodovnik  
>>  wrote:
>>
>> Could you please tell me how are you call the service?
>>
>> Example on http://openmeetings.apache.org/RestAPISample.html requires
>> jquery, so it cannot be _just used_
>> To use REST you need client able to send GET/POST/etc. requests.
>> Which one are you using?
>>
>> The error you are getting doesn't make sense :( CSRF checks are not
>> active for REST
>>
>> On Wed, Jul 26, 2017 at 4:30 PM, Jacob Ouanounou  
>>  wrote:
>>
>> Back to REST API : I succeed to get the SID, but when I try to get the hash,
>> using excatly the code written there 
>> :http://openmeetings.apache.org/RestAPISample.html , with the sid I obtained,
>> I get an error (in the console of the browser) :
>>
>> http://35.157.227.184:5080/openmeetings/services/user/hash?sid=1a35cf5f-21f3-45f3-a679-4e6c88d6911d.
>> No 'Access-Control-Allow-Origin' header is present on the requested
>> resource.
>>
>> Don't understand
>>
>>
>> Le 25/07/2017 à 14:11, Jacob Ouanounou a écrit :
>>
>> In which directory is this file ?
>>
>>
>> Le 25/07/2017 à 13:57, Maxim Solodovnik a écrit :
>>
>> is there anything suspicious in openmeetings.log file?
>>
>> On Tue, Jul 25, 2017 at 6:54 PM, Jacob Ouanounou  
>>  wrote:
>>
>> When I enter this directly on the browser, using the correct user and pwd,
>> I get this
>>
>> {"serviceResult":{"code":-1,"message":"Login failed","type":"ERROR"}}
>>
>>
>> Le 25/07/2017 à 13:47, Maxim Solodovnik a écrit :
>>
>> to login and get SID you can just type in your browser:
>> http://35.157.227.184:5080/openmeetings/services/user/login?user=XXX&pass=XXX
>>
>> Here is the link to PHP API (seems to work, just have tested with 
>> Moodle)https://github.com/openmeetings/openmeetings-api-plugin
>>
>> Here is the link to Java Unit tests we are using in nightly builds
>> https://github.com/apache/openmeetings/tree/3.3.x/openmeetings-web/src/test/java/org/apache/openmeetings/test/webservice
>>
>> How are you planning to use the API?
>>
>> On Tue, Jul 25, 2017 at 6:40 PM, Jacob Ouanounou  
>>  wrote:
>>
>> Can you please send me your code, si that I could see a code that works
>> and get inspired ...
>>
>>
>> Le 25/07/2017 à 13:33, Maxim Solodovnik a écrit :
>>
>> just have tested on demo server, works as expected
>> how are you using the service?
>>
>> On Tue, Jul 25, 2017 at 6:28 PM, Jacob Ouanounou  
>>  wrote:
>>
>> I have followed the first example, and I get this error :
>> (services/user/login)
>>
>> No 'Access-Control-Allow-Origin' header is present on the requested
>> resource. Origin 'null' is therefore not allowed access.
>>
>>
>>
>> Le 25/07/2017 à 12:24, Maxim Solodovnik a écrit :
>>
>> Yes, API was changed
>> please check the example
>> I believe it is cleaner now :)
>>
>> On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanounou  
>>  wrote:
>>
>> In a previous version, I started by using this link to do a session
>> request :
>> http://:5080/openmeetings/services/UserService/getSession
>>
>> to initiate the connection process
>>
>> Now I get this answer :
>>
>>
>> http://schemas.xmlsoap.org/soap/envelope/"; 
>> >
>> 
>> 
>> soap:Server
>> 
>> No binding operation info while invoking unknown method with params
>> unknown.
>> 
>> 
>> 
>> 
>>
>>
>>
>> Le 25/07/2017 à 11:59, Maxim Sol

Re: REST API for OM

2017-07-26 Thread Jacob Ouanounou
I don't see which of the numerous files shows an example of connection 
to OM classroom.


I feel it would be easier to have the sequence of calls, witha doc on 
the parameters and their structure.


I suppose that $gateway contains attributes : user, pass, and url (?) 
... what else ?


The call to the method :
$gateway->getSecureHash($gateway->getUser( params with necessary 
user data here ...),  additional options here ...);


where can I find an explicit doc on the "params user data" and a doc 
about the options


Once I get the hash, what is the function to call to enter a room ?

Thank you

Le 26/07/2017 à 12:15, Maxim Solodovnik a écrit :

Have added user@

Examples can be found in our open source plugin for Moodle: 
https://github.com/openmeetings/openmeetings-moodle-plugin


$gateway = new OmGateway(. config parameters as array here  );
if ($gateway->login()) {
 $hash = $gateway->getSecureHash($gateway->getUser( params 
with necessary user data here ...),  additional options here ...);

}

On Wed, Jul 26, 2017 at 5:08 PM, Jacob Ouanounou > wrote:


I have had a look on the PHP code. I see the functions, but what
is the sequence of calls to login, and enter a room ?

Thanks


Le 26/07/2017 à 11:44, Maxim Solodovnik a écrit :

Please do not hijack mail threads

For PHP I would recommend to use PHP API:

https://github.com/openmeetings/openmeetings-api-plugin/tree/master/src/main/scripts



On Wed, Jul 26, 2017 at 4:42 PM, Maxim Solodovnik 
  wrote:

Could you please tell me how are you call the service?

Example onhttp://openmeetings.apache.org/RestAPISample.html
  requires
jquery, so it cannot be _just used_
To use REST you need client able to send GET/POST/etc. requests.
Which one are you using?

The error you are getting doesn't make sense :( CSRF checks are not
active for REST

On Wed, Jul 26, 2017 at 4:30 PM, Jacob Ouanounou 
  wrote:

Back to REST API : I succeed to get the SID, but when I try to get the hash,
using excatly the code written there :
http://openmeetings.apache.org/RestAPISample.html
  , with the sid I 
obtained,
I get an error (in the console of the browser) :



http://35.157.227.184:5080/openmeetings/services/user/hash?sid=1a35cf5f-21f3-45f3-a679-4e6c88d6911d

.
No 'Access-Control-Allow-Origin' header is present on the requested
resource.

Don't understand


Le 25/07/2017 à 14:11, Jacob Ouanounou a écrit :

In which directory is this file ?


Le 25/07/2017 à 13:57, Maxim Solodovnik a écrit :

is there anything suspicious in openmeetings.log file?

On Tue, Jul 25, 2017 at 6:54 PM, Jacob Ouanounou 
  wrote:

When I enter this directly on the browser, using the correct user and pwd,
I get this

{"serviceResult":{"code":-1,"message":"Login failed","type":"ERROR"}}


Le 25/07/2017 à 13:47, Maxim Solodovnik a écrit :

to login and get SID you can just type in your browser:


http://35.157.227.184:5080/openmeetings/services/user/login?user=XXX&pass=XXX



Here is the link to PHP API (seems to work, just have tested with Moodle)
https://github.com/openmeetings/openmeetings-api-plugin


Here is the link to Java Unit tests we are using in nightly builds


https://github.com/apache/openmeetings/tree/3.3.x/openmeetings-web/src/test/java/org/apache/openmeetings/test/webservice



How are you planning to use the API?

On Tue, Jul 25, 2017 at 6:40 PM, Jacob Ouanounou 
  wrote:

Can you please send me your code, si that I could see a code that works
and get inspired ...


Le 25/07/2017 à 13:33, Maxim Solodovnik a écrit :

just have tested on demo server, works as expected
how are you using the service?

On Tue, Jul 25, 2017 at 6:28 PM, Jacob Ouanounou 
  wrote:

I have followed the first example, and I get this error :
(services/user/login)

No 'Access-Control-Allow-Origin' header is present on the requested
resource. Origin 'null' is therefore not allowed access.



Le 25/07/2017 à 12:24, Maxim Solodovnik a écrit :

Yes, API was changed
please check the example
I believe it is cleaner now :)

On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanouno

Re: REST API for OM

2017-07-26 Thread Maxim Solodovnik
Have added user@

Examples can be found in our open source plugin for Moodle:
https://github.com/openmeetings/openmeetings-moodle-plugin

$gateway = new OmGateway(. config parameters as array here  );
if ($gateway->login()) {
 $hash = $gateway->getSecureHash($gateway->getUser( params with
necessary user data here ...),  additional options here ...);
}


On Wed, Jul 26, 2017 at 5:08 PM, Jacob Ouanounou  wrote:

> I have had a look on the PHP code. I see the functions, but what is the
> sequence of calls to login, and enter a room ?
>
> Thanks
>
> Le 26/07/2017 à 11:44, Maxim Solodovnik a écrit :
>
> Please do not hijack mail threads
>
> For PHP I would recommend to use PHP 
> API:https://github.com/openmeetings/openmeetings-api-plugin/tree/master/src/main/scripts
>
> On Wed, Jul 26, 2017 at 4:42 PM, Maxim Solodovnik  
>  wrote:
>
> Could you please tell me how are you call the service?
>
> Example on http://openmeetings.apache.org/RestAPISample.html requires
> jquery, so it cannot be _just used_
> To use REST you need client able to send GET/POST/etc. requests.
> Which one are you using?
>
> The error you are getting doesn't make sense :( CSRF checks are not
> active for REST
>
> On Wed, Jul 26, 2017 at 4:30 PM, Jacob Ouanounou  
>  wrote:
>
> Back to REST API : I succeed to get the SID, but when I try to get the hash,
> using excatly the code written there 
> :http://openmeetings.apache.org/RestAPISample.html , with the sid I obtained,
> I get an error (in the console of the browser) :
>
> http://35.157.227.184:5080/openmeetings/services/user/hash?sid=1a35cf5f-21f3-45f3-a679-4e6c88d6911d.
> No 'Access-Control-Allow-Origin' header is present on the requested
> resource.
>
> Don't understand
>
>
> Le 25/07/2017 à 14:11, Jacob Ouanounou a écrit :
>
> In which directory is this file ?
>
>
> Le 25/07/2017 à 13:57, Maxim Solodovnik a écrit :
>
> is there anything suspicious in openmeetings.log file?
>
> On Tue, Jul 25, 2017 at 6:54 PM, Jacob Ouanounou  
>  wrote:
>
> When I enter this directly on the browser, using the correct user and pwd,
> I get this
>
> {"serviceResult":{"code":-1,"message":"Login failed","type":"ERROR"}}
>
>
> Le 25/07/2017 à 13:47, Maxim Solodovnik a écrit :
>
> to login and get SID you can just type in your browser:
> http://35.157.227.184:5080/openmeetings/services/user/login?user=XXX&pass=XXX
>
> Here is the link to PHP API (seems to work, just have tested with 
> Moodle)https://github.com/openmeetings/openmeetings-api-plugin
>
> Here is the link to Java Unit tests we are using in nightly builds
> https://github.com/apache/openmeetings/tree/3.3.x/openmeetings-web/src/test/java/org/apache/openmeetings/test/webservice
>
> How are you planning to use the API?
>
> On Tue, Jul 25, 2017 at 6:40 PM, Jacob Ouanounou  
>  wrote:
>
> Can you please send me your code, si that I could see a code that works
> and get inspired ...
>
>
> Le 25/07/2017 à 13:33, Maxim Solodovnik a écrit :
>
> just have tested on demo server, works as expected
> how are you using the service?
>
> On Tue, Jul 25, 2017 at 6:28 PM, Jacob Ouanounou  
>  wrote:
>
> I have followed the first example, and I get this error :
> (services/user/login)
>
> No 'Access-Control-Allow-Origin' header is present on the requested
> resource. Origin 'null' is therefore not allowed access.
>
>
>
> Le 25/07/2017 à 12:24, Maxim Solodovnik a écrit :
>
> Yes, API was changed
> please check the example
> I believe it is cleaner now :)
>
> On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanounou  
>  wrote:
>
> In a previous version, I started by using this link to do a session
> request :
> http://:5080/openmeetings/services/UserService/getSession
>
> to initiate the connection process
>
> Now I get this answer :
>
>
> http://schemas.xmlsoap.org/soap/envelope/"; 
> >
> 
> 
> soap:Server
> 
> No binding operation info while invoking unknown method with params
> unknown.
> 
> 
> 
> 
>
>
>
> Le 25/07/2017 à 11:59, Maxim Solodovnik a écrit :
>
> It is definitely possible :)
> Here is sample: http://openmeetings.apache.org/RestAPISample.html
> Here is the link to the API 
> javadoc:http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html
>
> On Tue, Jul 25, 2017 at 4:57 PM, Jacob Ouanounou  
> 
> wrote:
>
> Hi,
>
> It seems that it is not possible anymore to connect to OM server using
> REST. Is it ?
>
> Thank you
>
>
> Le 24/07/2017 à 18:00, Maxim Solodovnik a écrit :
>
> Thanks :)
> Will try to create custom CSS, might take some time :(
> Will report back here
> please ping me in case I'll be too silent
>
> On Mon, Jul 24, 2017 at 10:58 PM, Jacob Ouanounou  
> 
> wrote:
>
> Hi Maxim,
>
> I am using OM 5.3.3.0
>
> Resolution 1280 x 800
>
>
>
>
> Le 24/07/2017 à 14:07, Maxim Solodovnik a écrit :
>
> Hello Jacob,
>
> sure it is possible :)
> what screen resolution do you have? what version of OM are you using?
>
>
> On Mon, Jul 24, 2017 at 7:03 PM, Jacob Ouanounou  
> 
> wrote:
>
>

Re: REST API for OM

2017-07-26 Thread Maxim Solodovnik
For PHP I would recommend to use PHP API:
https://github.com/openmeetings/openmeetings-api-plugin/tree/master/src/main/scripts


On Wed, Jul 26, 2017 at 4:42 PM, Maxim Solodovnik  wrote:
> Could you please tell me how are you call the service?
>
> Example on http://openmeetings.apache.org/RestAPISample.html requires
> jquery, so it cannot be _just used_
> To use REST you need client able to send GET/POST/etc. requests.
> Which one are you using?
>
> The error you are getting doesn't make sense :( CSRF checks are not
> active for REST
>
> On Wed, Jul 26, 2017 at 4:30 PM, Jacob Ouanounou  wrote:
>> Back to REST API : I succeed to get the SID, but when I try to get the hash,
>> using excatly the code written there :
>> http://openmeetings.apache.org/RestAPISample.html , with the sid I obtained,
>> I get an error (in the console of the browser) :
>>
>>
>> http://35.157.227.184:5080/openmeetings/services/user/hash?sid=1a35cf5f-21f3-45f3-a679-4e6c88d6911d.
>> No 'Access-Control-Allow-Origin' header is present on the requested
>> resource.
>>
>> Don't understand
>>
>>
>> Le 25/07/2017 à 14:11, Jacob Ouanounou a écrit :
>>
>> In which directory is this file ?
>>
>>
>> Le 25/07/2017 à 13:57, Maxim Solodovnik a écrit :
>>
>> is there anything suspicious in openmeetings.log file?
>>
>> On Tue, Jul 25, 2017 at 6:54 PM, Jacob Ouanounou  wrote:
>>>
>>> When I enter this directly on the browser, using the correct user and pwd,
>>> I get this
>>>
>>> {"serviceResult":{"code":-1,"message":"Login failed","type":"ERROR"}}
>>>
>>>
>>> Le 25/07/2017 à 13:47, Maxim Solodovnik a écrit :
>>>
>>> to login and get SID you can just type in your browser:
>>>
>>> http://35.157.227.184:5080/openmeetings/services/user/login?user=XXX&pass=XXX
>>>
>>> Here is the link to PHP API (seems to work, just have tested with Moodle)
>>> https://github.com/openmeetings/openmeetings-api-plugin
>>>
>>> Here is the link to Java Unit tests we are using in nightly builds
>>>
>>> https://github.com/apache/openmeetings/tree/3.3.x/openmeetings-web/src/test/java/org/apache/openmeetings/test/webservice
>>>
>>> How are you planning to use the API?
>>>
>>> On Tue, Jul 25, 2017 at 6:40 PM, Jacob Ouanounou  wrote:

 Can you please send me your code, si that I could see a code that works
 and get inspired ...


 Le 25/07/2017 à 13:33, Maxim Solodovnik a écrit :

 just have tested on demo server, works as expected
 how are you using the service?

 On Tue, Jul 25, 2017 at 6:28 PM, Jacob Ouanounou  wrote:
>
> I have followed the first example, and I get this error :
> (services/user/login)
>
> No 'Access-Control-Allow-Origin' header is present on the requested
> resource. Origin 'null' is therefore not allowed access.
>
>
>
> Le 25/07/2017 à 12:24, Maxim Solodovnik a écrit :
>
> Yes, API was changed
> please check the example
> I believe it is cleaner now :)
>
> On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanounou  wrote:
>>
>> In a previous version, I started by using this link to do a session
>> request :
>>
>> http://:5080/openmeetings/services/UserService/getSession
>>
>> to initiate the connection process
>>
>> Now I get this answer :
>>
>>
>> http://schemas.xmlsoap.org/soap/envelope/";>
>> 
>> 
>> soap:Server
>> 
>> No binding operation info while invoking unknown method with params
>> unknown.
>> 
>> 
>> 
>> 
>>
>>
>>
>> Le 25/07/2017 à 11:59, Maxim Solodovnik a écrit :
>>
>> It is definitely possible :)
>> Here is sample: http://openmeetings.apache.org/RestAPISample.html
>> Here is the link to the API javadoc:
>> http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html
>>
>> On Tue, Jul 25, 2017 at 4:57 PM, Jacob Ouanounou 
>> wrote:
>>>
>>> Hi,
>>>
>>> It seems that it is not possible anymore to connect to OM server using
>>> REST. Is it ?
>>>
>>> Thank you
>>>
>>>
>>> Le 24/07/2017 à 18:00, Maxim Solodovnik a écrit :
>>>
>>> Thanks :)
>>> Will try to create custom CSS, might take some time :(
>>> Will report back here
>>> please ping me in case I'll be too silent
>>>
>>> On Mon, Jul 24, 2017 at 10:58 PM, Jacob Ouanounou 
>>> wrote:

 Hi Maxim,

 I am using OM 5.3.3.0

 Resolution 1280 x 800




 Le 24/07/2017 à 14:07, Maxim Solodovnik a écrit :

 Hello Jacob,

 sure it is possible :)
 what screen resolution do you have? what version of OM are you using?


 On Mon, Jul 24, 2017 at 7:03 PM, Jacob Ouanounou 
 wrote:
>
> Hi
>
> In the meeting rooms, there is on the left side of the screen a
> large pane, displaying the list of users and the 

Re: REST API for OM

2017-07-26 Thread Maxim Solodovnik
Could you please tell me how are you call the service?

Example on http://openmeetings.apache.org/RestAPISample.html requires
jquery, so it cannot be _just used_
To use REST you need client able to send GET/POST/etc. requests.
Which one are you using?

The error you are getting doesn't make sense :( CSRF checks are not
active for REST

On Wed, Jul 26, 2017 at 4:30 PM, Jacob Ouanounou  wrote:
> Back to REST API : I succeed to get the SID, but when I try to get the hash,
> using excatly the code written there :
> http://openmeetings.apache.org/RestAPISample.html , with the sid I obtained,
> I get an error (in the console of the browser) :
>
>
> http://35.157.227.184:5080/openmeetings/services/user/hash?sid=1a35cf5f-21f3-45f3-a679-4e6c88d6911d.
> No 'Access-Control-Allow-Origin' header is present on the requested
> resource.
>
> Don't understand
>
>
> Le 25/07/2017 à 14:11, Jacob Ouanounou a écrit :
>
> In which directory is this file ?
>
>
> Le 25/07/2017 à 13:57, Maxim Solodovnik a écrit :
>
> is there anything suspicious in openmeetings.log file?
>
> On Tue, Jul 25, 2017 at 6:54 PM, Jacob Ouanounou  wrote:
>>
>> When I enter this directly on the browser, using the correct user and pwd,
>> I get this
>>
>> {"serviceResult":{"code":-1,"message":"Login failed","type":"ERROR"}}
>>
>>
>> Le 25/07/2017 à 13:47, Maxim Solodovnik a écrit :
>>
>> to login and get SID you can just type in your browser:
>>
>> http://35.157.227.184:5080/openmeetings/services/user/login?user=XXX&pass=XXX
>>
>> Here is the link to PHP API (seems to work, just have tested with Moodle)
>> https://github.com/openmeetings/openmeetings-api-plugin
>>
>> Here is the link to Java Unit tests we are using in nightly builds
>>
>> https://github.com/apache/openmeetings/tree/3.3.x/openmeetings-web/src/test/java/org/apache/openmeetings/test/webservice
>>
>> How are you planning to use the API?
>>
>> On Tue, Jul 25, 2017 at 6:40 PM, Jacob Ouanounou  wrote:
>>>
>>> Can you please send me your code, si that I could see a code that works
>>> and get inspired ...
>>>
>>>
>>> Le 25/07/2017 à 13:33, Maxim Solodovnik a écrit :
>>>
>>> just have tested on demo server, works as expected
>>> how are you using the service?
>>>
>>> On Tue, Jul 25, 2017 at 6:28 PM, Jacob Ouanounou  wrote:

 I have followed the first example, and I get this error :
 (services/user/login)

 No 'Access-Control-Allow-Origin' header is present on the requested
 resource. Origin 'null' is therefore not allowed access.



 Le 25/07/2017 à 12:24, Maxim Solodovnik a écrit :

 Yes, API was changed
 please check the example
 I believe it is cleaner now :)

 On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanounou  wrote:
>
> In a previous version, I started by using this link to do a session
> request :
>
> http://:5080/openmeetings/services/UserService/getSession
>
> to initiate the connection process
>
> Now I get this answer :
>
>
> http://schemas.xmlsoap.org/soap/envelope/";>
> 
> 
> soap:Server
> 
> No binding operation info while invoking unknown method with params
> unknown.
> 
> 
> 
> 
>
>
>
> Le 25/07/2017 à 11:59, Maxim Solodovnik a écrit :
>
> It is definitely possible :)
> Here is sample: http://openmeetings.apache.org/RestAPISample.html
> Here is the link to the API javadoc:
> http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html
>
> On Tue, Jul 25, 2017 at 4:57 PM, Jacob Ouanounou 
> wrote:
>>
>> Hi,
>>
>> It seems that it is not possible anymore to connect to OM server using
>> REST. Is it ?
>>
>> Thank you
>>
>>
>> Le 24/07/2017 à 18:00, Maxim Solodovnik a écrit :
>>
>> Thanks :)
>> Will try to create custom CSS, might take some time :(
>> Will report back here
>> please ping me in case I'll be too silent
>>
>> On Mon, Jul 24, 2017 at 10:58 PM, Jacob Ouanounou 
>> wrote:
>>>
>>> Hi Maxim,
>>>
>>> I am using OM 5.3.3.0
>>>
>>> Resolution 1280 x 800
>>>
>>>
>>>
>>>
>>> Le 24/07/2017 à 14:07, Maxim Solodovnik a écrit :
>>>
>>> Hello Jacob,
>>>
>>> sure it is possible :)
>>> what screen resolution do you have? what version of OM are you using?
>>>
>>>
>>> On Mon, Jul 24, 2017 at 7:03 PM, Jacob Ouanounou 
>>> wrote:

 Hi

 In the meeting rooms, there is on the left side of the screen a
 large pane, displaying the list of users and the files. In my screen, 
 it
 appears very large (I have a Mac). Is it possible either : to hide 
 /show it,
 or iconize it, or to define smaller fonts ?

 Thank you


>>>
>>>
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>>
>>
>>
>>
>> --
>> 

Re: REST API for OM

2017-07-26 Thread Jacob Ouanounou
Back to REST API : I succeed to get the SID, but when I try to get the 
hash, using excatly the code written there : 
http://openmeetings.apache.org/RestAPISample.html , with the sid I 
obtained, I get an error (in the console of the browser) :


 
http://35.157.227.184:5080/openmeetings/services/user/hash?sid=1a35cf5f-21f3-45f3-a679-4e6c88d6911d.
 No 'Access-Control-Allow-Origin' header is present on the requested resource.

Don't understand


Le 25/07/2017 à 14:11, Jacob Ouanounou a écrit :


In which directory is this file ?


Le 25/07/2017 à 13:57, Maxim Solodovnik a écrit :

is there anything suspicious in openmeetings.log file?

On Tue, Jul 25, 2017 at 6:54 PM, Jacob Ouanounou > wrote:


When I enter this directly on the browser, using the correct user
and pwd, I get this

{"serviceResult":{"code":-1,"message":"Login failed","type":"ERROR"}}


Le 25/07/2017 à 13:47, Maxim Solodovnik a écrit :

to login and get SID you can just type in your browser:

http://35.157.227.184:5080/openmeetings/services/user/login?user=XXX&pass=XXX

Here is the link to PHP API (seems to work, just have tested
with Moodle)
https://github.com/openmeetings/openmeetings-api-plugin


Here is the link to Java Unit tests we are using in nightly builds

https://github.com/apache/openmeetings/tree/3.3.x/openmeetings-web/src/test/java/org/apache/openmeetings/test/webservice



How are you planning to use the API?

On Tue, Jul 25, 2017 at 6:40 PM, Jacob Ouanounou mailto:nav...@free.fr>> wrote:

Can you please send me your code, si that I could see a code
that works and get inspired ...


Le 25/07/2017 à 13:33, Maxim Solodovnik a écrit :

just have tested on demo server, works as expected
how are you using the service?

On Tue, Jul 25, 2017 at 6:28 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

I have followed the first example, and I get this error
: (services/user/login)

No 'Access-Control-Allow-Origin' header is present on
the requested resource. Origin 'null' is therefore not
allowed access.



Le 25/07/2017 à 12:24, Maxim Solodovnik a écrit :

Yes, API was changed
please check the example
I believe it is cleaner now :)

On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

In a previous version, I started by using this
link to do a session request :


http://:5080/openmeetings/services/UserService/getSession

to initiate the connection process

Now I get this answer :



http://schemas.xmlsoap.org/soap/envelope/
">


soap:Server

No binding operation info while invoking unknown
method with params unknown.







Le 25/07/2017 à 11:59, Maxim Solodovnik a écrit :

It is definitely possible :)
Here is sample:
http://openmeetings.apache.org/RestAPISample.html

Here is the link to the API javadoc:

http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html



On Tue, Jul 25, 2017 at 4:57 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

Hi,

It seems that it is not possible anymore to
connect to OM server using REST. Is it ?

Thank you


Le 24/07/2017 à 18:00, Maxim Solodovnik a écrit :

Thanks :)
Will try to create custom CSS, might take
some time :(
Will report back here
please ping me in case I'll be too silent

On Mon, Jul 24, 2017 at 10:58 PM, Jacob
Ouanounou mailto:nav...@free.fr>> wrote:

Hi Maxim,

I am using OM 5.3.3.0

Resolution 1280 x 800




Le 24/07/2017 à 14:07, Maxim Solodovnik
a écrit :

Hello Jacob,

sure it is possible :)
what screen resolution do you have?
what version of OM are you using

Re: REST API for OM

2017-07-26 Thread Jacob Ouanounou

THANK YOU MAXIM ! It works fine ...


Le 26/07/2017 à 09:10, Maxim Solodovnik a écrit :

you have to escape your password using JS escape function or urlescape
written in any pther language

On Wed, Jul 26, 2017 at 1:53 PM, Jacob Ouanounou  wrote:

Hi Maxim,

I have found in the log file (in file : 0.0.0.0_access..2017-07-25.log) the
lines corresponding to my trials to connect.

The request I did (URL) is reproduced without the special characters in the
password. It seems logical, since GET mode alters the special characters.
The problem I have now is that OM does not allow passwords without special
characters. How can I remove this constraint ?

Thanx


Le 25/07/2017 à 17:58, Maxim Solodovnik a écrit :

You can search it on your server :)
it should be located in "log" folder under the folder you have unpacked
openmeetings

On Tue, Jul 25, 2017 at 7:11 PM, Jacob Ouanounou  wrote:

In which directory is this file ?


Le 25/07/2017 à 13:57, Maxim Solodovnik a écrit :

is there anything suspicious in openmeetings.log file?

On Tue, Jul 25, 2017 at 6:54 PM, Jacob Ouanounou  wrote:

When I enter this directly on the browser, using the correct user and
pwd, I get this

{"serviceResult":{"code":-1,"message":"Login failed","type":"ERROR"}}


Le 25/07/2017 à 13:47, Maxim Solodovnik a écrit :

to login and get SID you can just type in your browser:

http://35.157.227.184:5080/openmeetings/services/user/login?user=XXX&pass=XXX

Here is the link to PHP API (seems to work, just have tested with Moodle)
https://github.com/openmeetings/openmeetings-api-plugin

Here is the link to Java Unit tests we are using in nightly builds

https://github.com/apache/openmeetings/tree/3.3.x/openmeetings-web/src/test/java/org/apache/openmeetings/test/webservice

How are you planning to use the API?

On Tue, Jul 25, 2017 at 6:40 PM, Jacob Ouanounou  wrote:

Can you please send me your code, si that I could see a code that works
and get inspired ...


Le 25/07/2017 à 13:33, Maxim Solodovnik a écrit :

just have tested on demo server, works as expected
how are you using the service?

On Tue, Jul 25, 2017 at 6:28 PM, Jacob Ouanounou  wrote:

I have followed the first example, and I get this error :
(services/user/login)

No 'Access-Control-Allow-Origin' header is present on the requested
resource. Origin 'null' is therefore not allowed access.



Le 25/07/2017 à 12:24, Maxim Solodovnik a écrit :

Yes, API was changed
please check the example
I believe it is cleaner now :)

On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanounou 
wrote:

In a previous version, I started by using this link to do a session
request :

http://:5080/openmeetings/services/UserService/getSession

to initiate the connection process

Now I get this answer :


http://schemas.xmlsoap.org/soap/envelope/";>


soap:Server

No binding operation info while invoking unknown method with params
unknown.







Le 25/07/2017 à 11:59, Maxim Solodovnik a écrit :

It is definitely possible :)
Here is sample: http://openmeetings.apache.org/RestAPISample.html
Here is the link to the API javadoc:
http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html

On Tue, Jul 25, 2017 at 4:57 PM, Jacob Ouanounou 
wrote:

Hi,

It seems that it is not possible anymore to connect to OM server
using REST. Is it ?

Thank you


Le 24/07/2017 à 18:00, Maxim Solodovnik a écrit :

Thanks :)
Will try to create custom CSS, might take some time :(
Will report back here
please ping me in case I'll be too silent

On Mon, Jul 24, 2017 at 10:58 PM, Jacob Ouanounou 
wrote:

Hi Maxim,

I am using OM 5.3.3.0

Resolution 1280 x 800




Le 24/07/2017 à 14:07, Maxim Solodovnik a écrit :

Hello Jacob,

sure it is possible :)
what screen resolution do you have? what version of OM are you
using?


On Mon, Jul 24, 2017 at 7:03 PM, Jacob Ouanounou 
wrote:

Hi

In the meeting rooms, there is on the left side of the screen a
large pane, displaying the list of users and the files. In my screen, it
appears very large (I have a Mac). Is it possible either : to hide /show it,
or iconize it, or to define smaller fonts ?

Thank you





--
WBR
Maxim aka solomax





--
WBR
Maxim aka solomax





--
WBR
Maxim aka solomax





--
WBR
Maxim aka solomax





--
WBR
Maxim aka solomax





--
WBR
Maxim aka solomax





--
WBR
Maxim aka solomax





--
WBR
Maxim aka solomax









Re: REST API for OM

2017-07-26 Thread Maxim Solodovnik
you have to escape your password using JS escape function or urlescape
written in any pther language

On Wed, Jul 26, 2017 at 1:53 PM, Jacob Ouanounou  wrote:
> Hi Maxim,
>
> I have found in the log file (in file : 0.0.0.0_access..2017-07-25.log) the
> lines corresponding to my trials to connect.
>
> The request I did (URL) is reproduced without the special characters in the
> password. It seems logical, since GET mode alters the special characters.
> The problem I have now is that OM does not allow passwords without special
> characters. How can I remove this constraint ?
>
> Thanx
>
>
> Le 25/07/2017 à 17:58, Maxim Solodovnik a écrit :
>
> You can search it on your server :)
> it should be located in "log" folder under the folder you have unpacked
> openmeetings
>
> On Tue, Jul 25, 2017 at 7:11 PM, Jacob Ouanounou  wrote:
>>
>> In which directory is this file ?
>>
>>
>> Le 25/07/2017 à 13:57, Maxim Solodovnik a écrit :
>>
>> is there anything suspicious in openmeetings.log file?
>>
>> On Tue, Jul 25, 2017 at 6:54 PM, Jacob Ouanounou  wrote:
>>>
>>> When I enter this directly on the browser, using the correct user and
>>> pwd, I get this
>>>
>>> {"serviceResult":{"code":-1,"message":"Login failed","type":"ERROR"}}
>>>
>>>
>>> Le 25/07/2017 à 13:47, Maxim Solodovnik a écrit :
>>>
>>> to login and get SID you can just type in your browser:
>>>
>>> http://35.157.227.184:5080/openmeetings/services/user/login?user=XXX&pass=XXX
>>>
>>> Here is the link to PHP API (seems to work, just have tested with Moodle)
>>> https://github.com/openmeetings/openmeetings-api-plugin
>>>
>>> Here is the link to Java Unit tests we are using in nightly builds
>>>
>>> https://github.com/apache/openmeetings/tree/3.3.x/openmeetings-web/src/test/java/org/apache/openmeetings/test/webservice
>>>
>>> How are you planning to use the API?
>>>
>>> On Tue, Jul 25, 2017 at 6:40 PM, Jacob Ouanounou  wrote:

 Can you please send me your code, si that I could see a code that works
 and get inspired ...


 Le 25/07/2017 à 13:33, Maxim Solodovnik a écrit :

 just have tested on demo server, works as expected
 how are you using the service?

 On Tue, Jul 25, 2017 at 6:28 PM, Jacob Ouanounou  wrote:
>
> I have followed the first example, and I get this error :
> (services/user/login)
>
> No 'Access-Control-Allow-Origin' header is present on the requested
> resource. Origin 'null' is therefore not allowed access.
>
>
>
> Le 25/07/2017 à 12:24, Maxim Solodovnik a écrit :
>
> Yes, API was changed
> please check the example
> I believe it is cleaner now :)
>
> On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanounou 
> wrote:
>>
>> In a previous version, I started by using this link to do a session
>> request :
>>
>> http://:5080/openmeetings/services/UserService/getSession
>>
>> to initiate the connection process
>>
>> Now I get this answer :
>>
>>
>> http://schemas.xmlsoap.org/soap/envelope/";>
>> 
>> 
>> soap:Server
>> 
>> No binding operation info while invoking unknown method with params
>> unknown.
>> 
>> 
>> 
>> 
>>
>>
>>
>> Le 25/07/2017 à 11:59, Maxim Solodovnik a écrit :
>>
>> It is definitely possible :)
>> Here is sample: http://openmeetings.apache.org/RestAPISample.html
>> Here is the link to the API javadoc:
>> http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html
>>
>> On Tue, Jul 25, 2017 at 4:57 PM, Jacob Ouanounou 
>> wrote:
>>>
>>> Hi,
>>>
>>> It seems that it is not possible anymore to connect to OM server
>>> using REST. Is it ?
>>>
>>> Thank you
>>>
>>>
>>> Le 24/07/2017 à 18:00, Maxim Solodovnik a écrit :
>>>
>>> Thanks :)
>>> Will try to create custom CSS, might take some time :(
>>> Will report back here
>>> please ping me in case I'll be too silent
>>>
>>> On Mon, Jul 24, 2017 at 10:58 PM, Jacob Ouanounou 
>>> wrote:

 Hi Maxim,

 I am using OM 5.3.3.0

 Resolution 1280 x 800




 Le 24/07/2017 à 14:07, Maxim Solodovnik a écrit :

 Hello Jacob,

 sure it is possible :)
 what screen resolution do you have? what version of OM are you
 using?


 On Mon, Jul 24, 2017 at 7:03 PM, Jacob Ouanounou 
 wrote:
>
> Hi
>
> In the meeting rooms, there is on the left side of the screen a
> large pane, displaying the list of users and the files. In my screen, 
> it
> appears very large (I have a Mac). Is it possible either : to hide 
> /show it,
> or iconize it, or to define smaller fonts ?
>
> Thank you
>
>



 --
>>>

Re: REST API for OM

2017-07-25 Thread Jacob Ouanounou

Hi Maxim,

I have found in the log file (in file : 0.0.0.0_access..2017-07-25.log) 
the lines corresponding to my trials to connect.


The request I did (URL) is reproduced without the special characters in 
the password. It seems logical, since GET mode alters the special 
characters. The problem I have now is that OM does not allow passwords 
without special characters. How can I remove this constraint ?


Thanx


Le 25/07/2017 à 17:58, Maxim Solodovnik a écrit :

You can search it on your server :)
it should be located in "log" folder under the folder you have 
unpacked openmeetings


On Tue, Jul 25, 2017 at 7:11 PM, Jacob Ouanounou > wrote:


In which directory is this file ?


Le 25/07/2017 à 13:57, Maxim Solodovnik a écrit :

is there anything suspicious in openmeetings.log file?

On Tue, Jul 25, 2017 at 6:54 PM, Jacob Ouanounou mailto:nav...@free.fr>> wrote:

When I enter this directly on the browser, using the correct
user and pwd, I get this

{"serviceResult":{"code":-1,"message":"Login failed","type":"ERROR"}}


Le 25/07/2017 à 13:47, Maxim Solodovnik a écrit :

to login and get SID you can just type in your browser:

http://35.157.227.184:5080/openmeetings/services/user/login?user=XXX&pass=XXX

Here is the link to PHP API (seems to work, just have tested
with Moodle)
https://github.com/openmeetings/openmeetings-api-plugin


Here is the link to Java Unit tests we are using in nightly
builds

https://github.com/apache/openmeetings/tree/3.3.x/openmeetings-web/src/test/java/org/apache/openmeetings/test/webservice



How are you planning to use the API?

On Tue, Jul 25, 2017 at 6:40 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

Can you please send me your code, si that I could see a
code that works and get inspired ...


Le 25/07/2017 à 13:33, Maxim Solodovnik a écrit :

just have tested on demo server, works as expected
how are you using the service?

On Tue, Jul 25, 2017 at 6:28 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

I have followed the first example, and I get this
error : (services/user/login)

No 'Access-Control-Allow-Origin' header is present
on the requested resource. Origin 'null' is
therefore not allowed access.



Le 25/07/2017 à 12:24, Maxim Solodovnik a écrit :

Yes, API was changed
please check the example
I believe it is cleaner now :)

On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

In a previous version, I started by using this
link to do a session request :


http://:5080/openmeetings/services/UserService/getSession

to initiate the connection process

Now I get this answer :



http://schemas.xmlsoap.org/soap/envelope/
">


soap:Server

No binding operation info while invoking
unknown method with params unknown.







Le 25/07/2017 à 11:59, Maxim Solodovnik a écrit :

It is definitely possible :)
Here is sample:
http://openmeetings.apache.org/RestAPISample.html

Here is the link to the API javadoc:

http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html



On Tue, Jul 25, 2017 at 4:57 PM, Jacob
Ouanounou mailto:nav...@free.fr>> wrote:

Hi,

It seems that it is not possible anymore
to connect to OM server using REST. Is it ?

Thank you


Le 24/07/2017 à 18:00, Maxim Solodovnik a
écrit :

Thanks :)
Will try to create custom CSS, might
take some time :(
Will report back here
please ping me in case I'll be too silent

On Mon, Jul 24, 2

Re: REST API for OM

2017-07-25 Thread Maxim Solodovnik
You can search it on your server :)
it should be located in "log" folder under the folder you have unpacked
openmeetings

On Tue, Jul 25, 2017 at 7:11 PM, Jacob Ouanounou  wrote:

> In which directory is this file ?
>
> Le 25/07/2017 à 13:57, Maxim Solodovnik a écrit :
>
> is there anything suspicious in openmeetings.log file?
>
> On Tue, Jul 25, 2017 at 6:54 PM, Jacob Ouanounou  wrote:
>
>> When I enter this directly on the browser, using the correct user and
>> pwd, I get this
>>
>> {"serviceResult":{"code":-1,"message":"Login failed","type":"ERROR"}}
>>
>>
>> Le 25/07/2017 à 13:47, Maxim Solodovnik a écrit :
>>
>> to login and get SID you can just type in your browser:
>> http://35.157.227.184:5080/openmeetings/services/user/login?user=XXX&;
>> pass=XXX
>>
>> Here is the link to PHP API (seems to work, just have tested with Moodle)
>> https://github.com/openmeetings/openmeetings-api-plugin
>>
>> Here is the link to Java Unit tests we are using in nightly builds
>> https://github.com/apache/openmeetings/tree/3.3.x/openmeetin
>> gs-web/src/test/java/org/apache/openmeetings/test/webservice
>>
>> How are you planning to use the API?
>>
>> On Tue, Jul 25, 2017 at 6:40 PM, Jacob Ouanounou  wrote:
>>
>>> Can you please send me your code, si that I could see a code that works
>>> and get inspired ...
>>>
>>> Le 25/07/2017 à 13:33, Maxim Solodovnik a écrit :
>>>
>>> just have tested on demo server, works as expected
>>> how are you using the service?
>>>
>>> On Tue, Jul 25, 2017 at 6:28 PM, Jacob Ouanounou  wrote:
>>>
 I have followed the first example, and I get this error :
 (services/user/login)

 No 'Access-Control-Allow-Origin' header is present on the requested
 resource. Origin 'null' is therefore not allowed access.



 Le 25/07/2017 à 12:24, Maxim Solodovnik a écrit :

 Yes, API was changed
 please check the example
 I believe it is cleaner now :)

 On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanounou 
 wrote:

> In a previous version, I started by using this link to do a session
> request :
>
> http://:5080/openmeetings/services/UserService/getSession
>
> to initiate the connection process
>
> Now I get this answer :
>
>
> http://schemas.xmlsoap.org/soap/envelope/";>
> 
> 
> soap:Server
> 
> No binding operation info while invoking unknown method with params
> unknown.
> 
> 
> 
> 
>
>
>
> Le 25/07/2017 à 11:59, Maxim Solodovnik a écrit :
>
> It is definitely possible :)
> Here is sample: http://openmeetings.apache.org/RestAPISample.html
> Here is the link to the API javadoc: http://openmeetings.a
> pache.org/openmeetings-webservice/apidocs/index.html
>
> On Tue, Jul 25, 2017 at 4:57 PM, Jacob Ouanounou 
> wrote:
>
>> Hi,
>>
>> It seems that it is not possible anymore to connect to OM server
>> using REST. Is it ?
>>
>> Thank you
>>
>> Le 24/07/2017 à 18:00, Maxim Solodovnik a écrit :
>>
>> Thanks :)
>> Will try to create custom CSS, might take some time :(
>> Will report back here
>> please ping me in case I'll be too silent
>>
>> On Mon, Jul 24, 2017 at 10:58 PM, Jacob Ouanounou 
>> wrote:
>>
>>> Hi Maxim,
>>>
>>> I am using OM 5.3.3.0
>>>
>>> Resolution 1280 x 800
>>>
>>>
>>>
>>>
>>> Le 24/07/2017 à 14:07, Maxim Solodovnik a écrit :
>>>
>>> Hello Jacob,
>>>
>>> sure it is possible :)
>>> what screen resolution do you have? what version of OM are you using?
>>>
>>>
>>> On Mon, Jul 24, 2017 at 7:03 PM, Jacob Ouanounou 
>>> wrote:
>>>
 Hi

 In the meeting rooms, there is on the left side of the screen a
 large pane, displaying the list of users and the files. In my screen, 
 it
 appears very large (I have a Mac). Is it possible either : to hide 
 /show
 it, or iconize it, or to define smaller fonts ?

 Thank you


>>>
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>>
>>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>>
>>
>
>
> --
> WBR
> Maxim aka solomax
>
>
>


 --
 WBR
 Maxim aka solomax



>>>
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>>
>>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>>
>>
>
>
> --
> WBR
> Maxim aka solomax
>
>
>


-- 
WBR
Maxim aka solomax


Re: REST API for OM

2017-07-25 Thread Jacob Ouanounou

In which directory is this file ?


Le 25/07/2017 à 13:57, Maxim Solodovnik a écrit :

is there anything suspicious in openmeetings.log file?

On Tue, Jul 25, 2017 at 6:54 PM, Jacob Ouanounou > wrote:


When I enter this directly on the browser, using the correct user
and pwd, I get this

{"serviceResult":{"code":-1,"message":"Login failed","type":"ERROR"}}


Le 25/07/2017 à 13:47, Maxim Solodovnik a écrit :

to login and get SID you can just type in your browser:

http://35.157.227.184:5080/openmeetings/services/user/login?user=XXX&pass=XXX

Here is the link to PHP API (seems to work, just have tested with
Moodle)
https://github.com/openmeetings/openmeetings-api-plugin


Here is the link to Java Unit tests we are using in nightly builds

https://github.com/apache/openmeetings/tree/3.3.x/openmeetings-web/src/test/java/org/apache/openmeetings/test/webservice



How are you planning to use the API?

On Tue, Jul 25, 2017 at 6:40 PM, Jacob Ouanounou mailto:nav...@free.fr>> wrote:

Can you please send me your code, si that I could see a code
that works and get inspired ...


Le 25/07/2017 à 13:33, Maxim Solodovnik a écrit :

just have tested on demo server, works as expected
how are you using the service?

On Tue, Jul 25, 2017 at 6:28 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

I have followed the first example, and I get this error
: (services/user/login)

No 'Access-Control-Allow-Origin' header is present on
the requested resource. Origin 'null' is therefore not
allowed access.



Le 25/07/2017 à 12:24, Maxim Solodovnik a écrit :

Yes, API was changed
please check the example
I believe it is cleaner now :)

On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

In a previous version, I started by using this link
to do a session request :


http://:5080/openmeetings/services/UserService/getSession

to initiate the connection process

Now I get this answer :



http://schemas.xmlsoap.org/soap/envelope/
">


soap:Server

No binding operation info while invoking unknown
method with params unknown.







Le 25/07/2017 à 11:59, Maxim Solodovnik a écrit :

It is definitely possible :)
Here is sample:
http://openmeetings.apache.org/RestAPISample.html

Here is the link to the API javadoc:

http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html



On Tue, Jul 25, 2017 at 4:57 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

Hi,

It seems that it is not possible anymore to
connect to OM server using REST. Is it ?

Thank you


Le 24/07/2017 à 18:00, Maxim Solodovnik a écrit :

Thanks :)
Will try to create custom CSS, might take
some time :(
Will report back here
please ping me in case I'll be too silent

On Mon, Jul 24, 2017 at 10:58 PM, Jacob
Ouanounou mailto:nav...@free.fr>> wrote:

Hi Maxim,

I am using OM 5.3.3.0

Resolution 1280 x 800




Le 24/07/2017 à 14:07, Maxim Solodovnik a
écrit :

Hello Jacob,

sure it is possible :)
what screen resolution do you have? what
version of OM are you using?


On Mon, Jul 24, 2017 at 7:03 PM, Jacob
Ouanounou mailto:nav...@free.fr>> wrote:

Hi

In the meeting rooms, there is on
the left side of the screen a large
pane, displaying the list of users
and the files. In my screen, it
appears very large (I have a Mac).
  

Re: REST API for OM

2017-07-25 Thread Maxim Solodovnik
is there anything suspicious in openmeetings.log file?

On Tue, Jul 25, 2017 at 6:54 PM, Jacob Ouanounou  wrote:

> When I enter this directly on the browser, using the correct user and pwd,
> I get this
>
> {"serviceResult":{"code":-1,"message":"Login failed","type":"ERROR"}}
>
>
> Le 25/07/2017 à 13:47, Maxim Solodovnik a écrit :
>
> to login and get SID you can just type in your browser:
> http://35.157.227.184:5080/openmeetings/services/user/login?user=XXX&;
> pass=XXX
>
> Here is the link to PHP API (seems to work, just have tested with Moodle)
> https://github.com/openmeetings/openmeetings-api-plugin
>
> Here is the link to Java Unit tests we are using in nightly builds
> https://github.com/apache/openmeetings/tree/3.3.x/
> openmeetings-web/src/test/java/org/apache/openmeetings/test/webservice
>
> How are you planning to use the API?
>
> On Tue, Jul 25, 2017 at 6:40 PM, Jacob Ouanounou  wrote:
>
>> Can you please send me your code, si that I could see a code that works
>> and get inspired ...
>>
>> Le 25/07/2017 à 13:33, Maxim Solodovnik a écrit :
>>
>> just have tested on demo server, works as expected
>> how are you using the service?
>>
>> On Tue, Jul 25, 2017 at 6:28 PM, Jacob Ouanounou  wrote:
>>
>>> I have followed the first example, and I get this error :
>>> (services/user/login)
>>>
>>> No 'Access-Control-Allow-Origin' header is present on the requested
>>> resource. Origin 'null' is therefore not allowed access.
>>>
>>>
>>>
>>> Le 25/07/2017 à 12:24, Maxim Solodovnik a écrit :
>>>
>>> Yes, API was changed
>>> please check the example
>>> I believe it is cleaner now :)
>>>
>>> On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanounou  wrote:
>>>
 In a previous version, I started by using this link to do a session
 request :

 http://:5080/openmeetings/services/UserService/getSession

 to initiate the connection process

 Now I get this answer :


 http://schemas.xmlsoap.org/soap/envelope/";>
 
 
 soap:Server
 
 No binding operation info while invoking unknown method with params
 unknown.
 
 
 
 



 Le 25/07/2017 à 11:59, Maxim Solodovnik a écrit :

 It is definitely possible :)
 Here is sample: http://openmeetings.apache.org/RestAPISample.html
 Here is the link to the API javadoc: http://openmeetings.a
 pache.org/openmeetings-webservice/apidocs/index.html

 On Tue, Jul 25, 2017 at 4:57 PM, Jacob Ouanounou 
 wrote:

> Hi,
>
> It seems that it is not possible anymore to connect to OM server using
> REST. Is it ?
>
> Thank you
>
> Le 24/07/2017 à 18:00, Maxim Solodovnik a écrit :
>
> Thanks :)
> Will try to create custom CSS, might take some time :(
> Will report back here
> please ping me in case I'll be too silent
>
> On Mon, Jul 24, 2017 at 10:58 PM, Jacob Ouanounou 
> wrote:
>
>> Hi Maxim,
>>
>> I am using OM 5.3.3.0
>>
>> Resolution 1280 x 800
>>
>>
>>
>>
>> Le 24/07/2017 à 14:07, Maxim Solodovnik a écrit :
>>
>> Hello Jacob,
>>
>> sure it is possible :)
>> what screen resolution do you have? what version of OM are you using?
>>
>>
>> On Mon, Jul 24, 2017 at 7:03 PM, Jacob Ouanounou 
>> wrote:
>>
>>> Hi
>>>
>>> In the meeting rooms, there is on the left side of the screen a
>>> large pane, displaying the list of users and the files. In my screen, it
>>> appears very large (I have a Mac). Is it possible either : to hide /show
>>> it, or iconize it, or to define smaller fonts ?
>>>
>>> Thank you
>>>
>>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>>
>>
>
>
> --
> WBR
> Maxim aka solomax
>
>
>


 --
 WBR
 Maxim aka solomax



>>>
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>>
>>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>>
>>
>
>
> --
> WBR
> Maxim aka solomax
>
>
>


-- 
WBR
Maxim aka solomax


Re: REST API for OM

2017-07-25 Thread Jacob Ouanounou
When I enter this directly on the browser, using the correct user and 
pwd, I get this


{"serviceResult":{"code":-1,"message":"Login failed","type":"ERROR"}}


Le 25/07/2017 à 13:47, Maxim Solodovnik a écrit :

to login and get SID you can just type in your browser:
http://35.157.227.184:5080/openmeetings/services/user/login?user=XXX&pass=XXX

Here is the link to PHP API (seems to work, just have tested with Moodle)
https://github.com/openmeetings/openmeetings-api-plugin

Here is the link to Java Unit tests we are using in nightly builds
https://github.com/apache/openmeetings/tree/3.3.x/openmeetings-web/src/test/java/org/apache/openmeetings/test/webservice

How are you planning to use the API?

On Tue, Jul 25, 2017 at 6:40 PM, Jacob Ouanounou > wrote:


Can you please send me your code, si that I could see a code that
works and get inspired ...


Le 25/07/2017 à 13:33, Maxim Solodovnik a écrit :

just have tested on demo server, works as expected
how are you using the service?

On Tue, Jul 25, 2017 at 6:28 PM, Jacob Ouanounou mailto:nav...@free.fr>> wrote:

I have followed the first example, and I get this error :
(services/user/login)

No 'Access-Control-Allow-Origin' header is present on the
requested resource. Origin 'null' is therefore not allowed
access.



Le 25/07/2017 à 12:24, Maxim Solodovnik a écrit :

Yes, API was changed
please check the example
I believe it is cleaner now :)

On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

In a previous version, I started by using this link to
do a session request :

http://:5080/openmeetings/services/UserService/getSession

to initiate the connection process

Now I get this answer :


http://schemas.xmlsoap.org/soap/envelope/
">


soap:Server

No binding operation info while invoking unknown method
with params unknown.







Le 25/07/2017 à 11:59, Maxim Solodovnik a écrit :

It is definitely possible :)
Here is sample:
http://openmeetings.apache.org/RestAPISample.html

Here is the link to the API javadoc:

http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html



On Tue, Jul 25, 2017 at 4:57 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

Hi,

It seems that it is not possible anymore to connect
to OM server using REST. Is it ?

Thank you


Le 24/07/2017 à 18:00, Maxim Solodovnik a écrit :

Thanks :)
Will try to create custom CSS, might take some time :(
Will report back here
please ping me in case I'll be too silent

On Mon, Jul 24, 2017 at 10:58 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

Hi Maxim,

I am using OM 5.3.3.0

Resolution 1280 x 800




Le 24/07/2017 à 14:07, Maxim Solodovnik a écrit :

Hello Jacob,

sure it is possible :)
what screen resolution do you have? what
version of OM are you using?


On Mon, Jul 24, 2017 at 7:03 PM, Jacob
Ouanounou mailto:nav...@free.fr>> wrote:

Hi

In the meeting rooms, there is on the
left side of the screen a large pane,
displaying the list of users and the
files. In my screen, it appears very
large (I have a Mac). Is it possible
either : to hide /show it, or iconize it,
or to define smaller fonts ?

Thank you





-- 
WBR

Maxim aka solomax





-- 
WBR

Maxim aka solomax





-- 
WBR

Maxim aka solomax





-- 
WBR

Maxim aka solomax





-- 
WBR

Maxim aka solomax





--
WBR
Maxim aka solomax




Re: REST API for OM

2017-07-25 Thread Maxim Solodovnik
to login and get SID you can just type in your browser:
http://35.157.227.184:5080/openmeetings/services/user/login?user=XXX&;
pass=XXX

Here is the link to PHP API (seems to work, just have tested with Moodle)
https://github.com/openmeetings/openmeetings-api-plugin

Here is the link to Java Unit tests we are using in nightly builds
https://github.com/apache/openmeetings/tree/3.3.x/openmeetings-web/src/test/java/org/apache/openmeetings/test/webservice

How are you planning to use the API?

On Tue, Jul 25, 2017 at 6:40 PM, Jacob Ouanounou  wrote:

> Can you please send me your code, si that I could see a code that works
> and get inspired ...
>
> Le 25/07/2017 à 13:33, Maxim Solodovnik a écrit :
>
> just have tested on demo server, works as expected
> how are you using the service?
>
> On Tue, Jul 25, 2017 at 6:28 PM, Jacob Ouanounou  wrote:
>
>> I have followed the first example, and I get this error :
>> (services/user/login)
>>
>> No 'Access-Control-Allow-Origin' header is present on the requested
>> resource. Origin 'null' is therefore not allowed access.
>>
>>
>>
>> Le 25/07/2017 à 12:24, Maxim Solodovnik a écrit :
>>
>> Yes, API was changed
>> please check the example
>> I believe it is cleaner now :)
>>
>> On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanounou  wrote:
>>
>>> In a previous version, I started by using this link to do a session
>>> request :
>>>
>>> http://:5080/openmeetings/services/UserService/getSession
>>>
>>> to initiate the connection process
>>>
>>> Now I get this answer :
>>>
>>>
>>> http://schemas.xmlsoap.org/soap/envelope/";>
>>> 
>>> 
>>> soap:Server
>>> 
>>> No binding operation info while invoking unknown method with params
>>> unknown.
>>> 
>>> 
>>> 
>>> 
>>>
>>>
>>>
>>> Le 25/07/2017 à 11:59, Maxim Solodovnik a écrit :
>>>
>>> It is definitely possible :)
>>> Here is sample: http://openmeetings.apache.org/RestAPISample.html
>>> Here is the link to the API javadoc: http://openmeetings.a
>>> pache.org/openmeetings-webservice/apidocs/index.html
>>>
>>> On Tue, Jul 25, 2017 at 4:57 PM, Jacob Ouanounou  wrote:
>>>
 Hi,

 It seems that it is not possible anymore to connect to OM server using
 REST. Is it ?

 Thank you

 Le 24/07/2017 à 18:00, Maxim Solodovnik a écrit :

 Thanks :)
 Will try to create custom CSS, might take some time :(
 Will report back here
 please ping me in case I'll be too silent

 On Mon, Jul 24, 2017 at 10:58 PM, Jacob Ouanounou 
 wrote:

> Hi Maxim,
>
> I am using OM 5.3.3.0
>
> Resolution 1280 x 800
>
>
>
>
> Le 24/07/2017 à 14:07, Maxim Solodovnik a écrit :
>
> Hello Jacob,
>
> sure it is possible :)
> what screen resolution do you have? what version of OM are you using?
>
>
> On Mon, Jul 24, 2017 at 7:03 PM, Jacob Ouanounou 
> wrote:
>
>> Hi
>>
>> In the meeting rooms, there is on the left side of the screen a large
>> pane, displaying the list of users and the files. In my screen, it 
>> appears
>> very large (I have a Mac). Is it possible either : to hide /show it, or
>> iconize it, or to define smaller fonts ?
>>
>> Thank you
>>
>>
>
>
> --
> WBR
> Maxim aka solomax
>
>
>


 --
 WBR
 Maxim aka solomax



>>>
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>>
>>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>>
>>
>
>
> --
> WBR
> Maxim aka solomax
>
>
>


-- 
WBR
Maxim aka solomax


Re: REST API for OM

2017-07-25 Thread Jacob Ouanounou
Can you please send me your code, si that I could see a code that works 
and get inspired ...



Le 25/07/2017 à 13:33, Maxim Solodovnik a écrit :

just have tested on demo server, works as expected
how are you using the service?

On Tue, Jul 25, 2017 at 6:28 PM, Jacob Ouanounou > wrote:


I have followed the first example, and I get this error :
(services/user/login)

No 'Access-Control-Allow-Origin' header is present on the
requested resource. Origin 'null' is therefore not allowed access.



Le 25/07/2017 à 12:24, Maxim Solodovnik a écrit :

Yes, API was changed
please check the example
I believe it is cleaner now :)

On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanounou mailto:nav...@free.fr>> wrote:

In a previous version, I started by using this link to do a
session request :

http://:5080/openmeetings/services/UserService/getSession

to initiate the connection process

Now I get this answer :


http://schemas.xmlsoap.org/soap/envelope/
">


soap:Server

No binding operation info while invoking unknown method with
params unknown.







Le 25/07/2017 à 11:59, Maxim Solodovnik a écrit :

It is definitely possible :)
Here is sample:
http://openmeetings.apache.org/RestAPISample.html

Here is the link to the API javadoc:

http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html



On Tue, Jul 25, 2017 at 4:57 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

Hi,

It seems that it is not possible anymore to connect to
OM server using REST. Is it ?

Thank you


Le 24/07/2017 à 18:00, Maxim Solodovnik a écrit :

Thanks :)
Will try to create custom CSS, might take some time :(
Will report back here
please ping me in case I'll be too silent

On Mon, Jul 24, 2017 at 10:58 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

Hi Maxim,

I am using OM 5.3.3.0

Resolution 1280 x 800




Le 24/07/2017 à 14:07, Maxim Solodovnik a écrit :

Hello Jacob,

sure it is possible :)
what screen resolution do you have? what version
of OM are you using?


On Mon, Jul 24, 2017 at 7:03 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

Hi

In the meeting rooms, there is on the left
side of the screen a large pane, displaying
the list of users and the files. In my screen,
it appears very large (I have a Mac). Is it
possible either : to hide /show it, or iconize
it, or to define smaller fonts ?

Thank you





-- 
WBR

Maxim aka solomax





-- 
WBR

Maxim aka solomax





-- 
WBR

Maxim aka solomax





-- 
WBR

Maxim aka solomax





--
WBR
Maxim aka solomax




Re: REST API for OM

2017-07-25 Thread Jacob Ouanounou

In a script, java inserted these lines

$.ajax({
  method: "GET",
  url: "http://35.157.227.184:5080/openmeetings/services/user/login";,
  data: {user: 'XXX',
  pass: 'XXX'},
  dataType: "json"
});


Le 25/07/2017 à 13:33, Maxim Solodovnik a écrit :

just have tested on demo server, works as expected
how are you using the service?

On Tue, Jul 25, 2017 at 6:28 PM, Jacob Ouanounou > wrote:


I have followed the first example, and I get this error :
(services/user/login)

No 'Access-Control-Allow-Origin' header is present on the
requested resource. Origin 'null' is therefore not allowed access.



Le 25/07/2017 à 12:24, Maxim Solodovnik a écrit :

Yes, API was changed
please check the example
I believe it is cleaner now :)

On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanounou mailto:nav...@free.fr>> wrote:

In a previous version, I started by using this link to do a
session request :

http://:5080/openmeetings/services/UserService/getSession

to initiate the connection process

Now I get this answer :


http://schemas.xmlsoap.org/soap/envelope/
">


soap:Server

No binding operation info while invoking unknown method with
params unknown.







Le 25/07/2017 à 11:59, Maxim Solodovnik a écrit :

It is definitely possible :)
Here is sample:
http://openmeetings.apache.org/RestAPISample.html

Here is the link to the API javadoc:

http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html



On Tue, Jul 25, 2017 at 4:57 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

Hi,

It seems that it is not possible anymore to connect to
OM server using REST. Is it ?

Thank you


Le 24/07/2017 à 18:00, Maxim Solodovnik a écrit :

Thanks :)
Will try to create custom CSS, might take some time :(
Will report back here
please ping me in case I'll be too silent

On Mon, Jul 24, 2017 at 10:58 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

Hi Maxim,

I am using OM 5.3.3.0

Resolution 1280 x 800




Le 24/07/2017 à 14:07, Maxim Solodovnik a écrit :

Hello Jacob,

sure it is possible :)
what screen resolution do you have? what version
of OM are you using?


On Mon, Jul 24, 2017 at 7:03 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

Hi

In the meeting rooms, there is on the left
side of the screen a large pane, displaying
the list of users and the files. In my screen,
it appears very large (I have a Mac). Is it
possible either : to hide /show it, or iconize
it, or to define smaller fonts ?

Thank you





-- 
WBR

Maxim aka solomax





-- 
WBR

Maxim aka solomax





-- 
WBR

Maxim aka solomax





-- 
WBR

Maxim aka solomax





--
WBR
Maxim aka solomax




Re: REST API for OM

2017-07-25 Thread Maxim Solodovnik
just have tested on demo server, works as expected
how are you using the service?

On Tue, Jul 25, 2017 at 6:28 PM, Jacob Ouanounou  wrote:

> I have followed the first example, and I get this error :
> (services/user/login)
>
> No 'Access-Control-Allow-Origin' header is present on the requested
> resource. Origin 'null' is therefore not allowed access.
>
>
>
> Le 25/07/2017 à 12:24, Maxim Solodovnik a écrit :
>
> Yes, API was changed
> please check the example
> I believe it is cleaner now :)
>
> On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanounou  wrote:
>
>> In a previous version, I started by using this link to do a session
>> request :
>>
>> http://:5080/openmeetings/services/UserService/getSession
>>
>> to initiate the connection process
>>
>> Now I get this answer :
>>
>>
>> http://schemas.xmlsoap.org/soap/envelope/";>
>> 
>> 
>> soap:Server
>> 
>> No binding operation info while invoking unknown method with params
>> unknown.
>> 
>> 
>> 
>> 
>>
>>
>>
>> Le 25/07/2017 à 11:59, Maxim Solodovnik a écrit :
>>
>> It is definitely possible :)
>> Here is sample: http://openmeetings.apache.org/RestAPISample.html
>> Here is the link to the API javadoc: http://openmeetings.a
>> pache.org/openmeetings-webservice/apidocs/index.html
>>
>> On Tue, Jul 25, 2017 at 4:57 PM, Jacob Ouanounou  wrote:
>>
>>> Hi,
>>>
>>> It seems that it is not possible anymore to connect to OM server using
>>> REST. Is it ?
>>>
>>> Thank you
>>>
>>> Le 24/07/2017 à 18:00, Maxim Solodovnik a écrit :
>>>
>>> Thanks :)
>>> Will try to create custom CSS, might take some time :(
>>> Will report back here
>>> please ping me in case I'll be too silent
>>>
>>> On Mon, Jul 24, 2017 at 10:58 PM, Jacob Ouanounou 
>>> wrote:
>>>
 Hi Maxim,

 I am using OM 5.3.3.0

 Resolution 1280 x 800




 Le 24/07/2017 à 14:07, Maxim Solodovnik a écrit :

 Hello Jacob,

 sure it is possible :)
 what screen resolution do you have? what version of OM are you using?


 On Mon, Jul 24, 2017 at 7:03 PM, Jacob Ouanounou 
 wrote:

> Hi
>
> In the meeting rooms, there is on the left side of the screen a large
> pane, displaying the list of users and the files. In my screen, it appears
> very large (I have a Mac). Is it possible either : to hide /show it, or
> iconize it, or to define smaller fonts ?
>
> Thank you
>
>


 --
 WBR
 Maxim aka solomax



>>>
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>>
>>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>>
>>
>
>
> --
> WBR
> Maxim aka solomax
>
>
>


-- 
WBR
Maxim aka solomax


Re: REST API for OM

2017-07-25 Thread Jacob Ouanounou
I have followed the first example, and I get this error : 
(services/user/login)


No 'Access-Control-Allow-Origin' header is present on the requested 
resource. Origin 'null' is therefore not allowed access.




Le 25/07/2017 à 12:24, Maxim Solodovnik a écrit :

Yes, API was changed
please check the example
I believe it is cleaner now :)

On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanounou > wrote:


In a previous version, I started by using this link to do a
session request :

http://:5080/openmeetings/services/UserService/getSession

to initiate the connection process

Now I get this answer :


http://schemas.xmlsoap.org/soap/envelope/
">


soap:Server

No binding operation info while invoking unknown method with
params unknown.







Le 25/07/2017 à 11:59, Maxim Solodovnik a écrit :

It is definitely possible :)
Here is sample: http://openmeetings.apache.org/RestAPISample.html

Here is the link to the API javadoc:
http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html


On Tue, Jul 25, 2017 at 4:57 PM, Jacob Ouanounou mailto:nav...@free.fr>> wrote:

Hi,

It seems that it is not possible anymore to connect to OM
server using REST. Is it ?

Thank you


Le 24/07/2017 à 18:00, Maxim Solodovnik a écrit :

Thanks :)
Will try to create custom CSS, might take some time :(
Will report back here
please ping me in case I'll be too silent

On Mon, Jul 24, 2017 at 10:58 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

Hi Maxim,

I am using OM 5.3.3.0

Resolution 1280 x 800




Le 24/07/2017 à 14:07, Maxim Solodovnik a écrit :

Hello Jacob,

sure it is possible :)
what screen resolution do you have? what version of OM
are you using?


On Mon, Jul 24, 2017 at 7:03 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

Hi

In the meeting rooms, there is on the left side of
the screen a large pane, displaying the list of
users and the files. In my screen, it appears very
large (I have a Mac). Is it possible either : to
hide /show it, or iconize it, or to define smaller
fonts ?

Thank you





-- 
WBR

Maxim aka solomax





-- 
WBR

Maxim aka solomax





-- 
WBR

Maxim aka solomax





--
WBR
Maxim aka solomax




Re: REST API for OM

2017-07-25 Thread Maxim Solodovnik
Yes, API was changed
please check the example
I believe it is cleaner now :)

On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanounou  wrote:

> In a previous version, I started by using this link to do a session
> request :
>
> http://:5080/openmeetings/services/UserService/getSession
>
> to initiate the connection process
>
> Now I get this answer :
>
>
> http://schemas.xmlsoap.org/soap/envelope/";>
> 
> 
> soap:Server
> 
> No binding operation info while invoking unknown method with params
> unknown.
> 
> 
> 
> 
>
>
>
> Le 25/07/2017 à 11:59, Maxim Solodovnik a écrit :
>
> It is definitely possible :)
> Here is sample: http://openmeetings.apache.org/RestAPISample.html
> Here is the link to the API javadoc: http://openmeetings.
> apache.org/openmeetings-webservice/apidocs/index.html
>
> On Tue, Jul 25, 2017 at 4:57 PM, Jacob Ouanounou  wrote:
>
>> Hi,
>>
>> It seems that it is not possible anymore to connect to OM server using
>> REST. Is it ?
>>
>> Thank you
>>
>> Le 24/07/2017 à 18:00, Maxim Solodovnik a écrit :
>>
>> Thanks :)
>> Will try to create custom CSS, might take some time :(
>> Will report back here
>> please ping me in case I'll be too silent
>>
>> On Mon, Jul 24, 2017 at 10:58 PM, Jacob Ouanounou  wrote:
>>
>>> Hi Maxim,
>>>
>>> I am using OM 5.3.3.0
>>>
>>> Resolution 1280 x 800
>>>
>>>
>>>
>>>
>>> Le 24/07/2017 à 14:07, Maxim Solodovnik a écrit :
>>>
>>> Hello Jacob,
>>>
>>> sure it is possible :)
>>> what screen resolution do you have? what version of OM are you using?
>>>
>>>
>>> On Mon, Jul 24, 2017 at 7:03 PM, Jacob Ouanounou  wrote:
>>>
 Hi

 In the meeting rooms, there is on the left side of the screen a large
 pane, displaying the list of users and the files. In my screen, it appears
 very large (I have a Mac). Is it possible either : to hide /show it, or
 iconize it, or to define smaller fonts ?

 Thank you


>>>
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>>
>>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>>
>>
>
>
> --
> WBR
> Maxim aka solomax
>
>
>


-- 
WBR
Maxim aka solomax


Re: REST API for OM

2017-07-25 Thread Jacob Ouanounou
In a previous version, I started by using this link to do a session 
request :


http://:5080/openmeetings/services/UserService/getSession

to initiate the connection process

Now I get this answer :


http://schemas.xmlsoap.org/soap/envelope/";>


soap:Server

No binding operation info while invoking unknown method with params unknown.







Le 25/07/2017 à 11:59, Maxim Solodovnik a écrit :

It is definitely possible :)
Here is sample: http://openmeetings.apache.org/RestAPISample.html
Here is the link to the API javadoc: 
http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html


On Tue, Jul 25, 2017 at 4:57 PM, Jacob Ouanounou > wrote:


Hi,

It seems that it is not possible anymore to connect to OM server
using REST. Is it ?

Thank you


Le 24/07/2017 à 18:00, Maxim Solodovnik a écrit :

Thanks :)
Will try to create custom CSS, might take some time :(
Will report back here
please ping me in case I'll be too silent

On Mon, Jul 24, 2017 at 10:58 PM, Jacob Ouanounou mailto:nav...@free.fr>> wrote:

Hi Maxim,

I am using OM 5.3.3.0

Resolution 1280 x 800




Le 24/07/2017 à 14:07, Maxim Solodovnik a écrit :

Hello Jacob,

sure it is possible :)
what screen resolution do you have? what version of OM are
you using?


On Mon, Jul 24, 2017 at 7:03 PM, Jacob Ouanounou
mailto:nav...@free.fr>> wrote:

Hi

In the meeting rooms, there is on the left side of the
screen a large pane, displaying the list of users and
the files. In my screen, it appears very large (I have a
Mac). Is it possible either : to hide /show it, or
iconize it, or to define smaller fonts ?

Thank you





-- 
WBR

Maxim aka solomax





-- 
WBR

Maxim aka solomax





--
WBR
Maxim aka solomax




Re: REST API for OM

2017-07-25 Thread Maxim Solodovnik
It is definitely possible :)
Here is sample: http://openmeetings.apache.org/RestAPISample.html
Here is the link to the API javadoc:
http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html

On Tue, Jul 25, 2017 at 4:57 PM, Jacob Ouanounou  wrote:

> Hi,
>
> It seems that it is not possible anymore to connect to OM server using
> REST. Is it ?
>
> Thank you
>
> Le 24/07/2017 à 18:00, Maxim Solodovnik a écrit :
>
> Thanks :)
> Will try to create custom CSS, might take some time :(
> Will report back here
> please ping me in case I'll be too silent
>
> On Mon, Jul 24, 2017 at 10:58 PM, Jacob Ouanounou  wrote:
>
>> Hi Maxim,
>>
>> I am using OM 5.3.3.0
>>
>> Resolution 1280 x 800
>>
>>
>>
>>
>> Le 24/07/2017 à 14:07, Maxim Solodovnik a écrit :
>>
>> Hello Jacob,
>>
>> sure it is possible :)
>> what screen resolution do you have? what version of OM are you using?
>>
>>
>> On Mon, Jul 24, 2017 at 7:03 PM, Jacob Ouanounou  wrote:
>>
>>> Hi
>>>
>>> In the meeting rooms, there is on the left side of the screen a large
>>> pane, displaying the list of users and the files. In my screen, it appears
>>> very large (I have a Mac). Is it possible either : to hide /show it, or
>>> iconize it, or to define smaller fonts ?
>>>
>>> Thank you
>>>
>>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>>
>>
>
>
> --
> WBR
> Maxim aka solomax
>
>
>


-- 
WBR
Maxim aka solomax


Re: REST API

2016-10-10 Thread Alessio Falsetti
Hi Maxim,

thank you very much!
I try this new improvement and let you know if everything is ok! ;)

Alessio



2016-10-10 5:30 GMT+02:00 Maxim Solodovnik :

> Hello Alessio,
>
> I believe this [1] commit might be interesting for you :)
> I have added "createFile" method and basic test to prove it works :)
>
> [1] https://github.com/openmeetings/openmeetings-api-plugin/commit/
> 51ccde85b71bc32b1e4c5074171822606606dfad
>
> On Thu, Sep 22, 2016 at 11:35 PM, Maxim Solodovnik 
> wrote:
> > Hello Alessio,
> >
> > I don't have time right now to implement it in PHP, maybe next week :((
> >
> > Here is the example of how this method is currently used [1] [2], it's
> not
> > PHP but you will get an idea
> > RestCall is custom class [3]
> > I'll try to improve PHP API, please ping me if I'll be too silent
> >
> > [1]
> > https://github.com/apache/openmeetings/blob/3.1.x/
> openmeetings-flash/src/main/swf/modules/conference/
> tabcontent/fileexplorer/fileExplorer.lzx#L212
> > [2]
> > https://github.com/apache/openmeetings/blob/3.1.x/
> openmeetings-flash/src/main/swf/modules/conference/
> tabcontent/fileexplorer/fileExplorer.lzx#L225
> > [3]
> > https://github.com/apache/openmeetings/blob/3.1.x/
> openmeetings-flash/src/main/swf/base/remote/restCall.lzx#L172
> >
> > On Thu, Sep 22, 2016 at 10:21 PM, Alessio Falsetti <
> alessio.false...@eng.it>
> > wrote:
> >>
> >> Hi Maxim,
> >>
> >> I made many test, this is an example of what I tried to do:
> >>
> >> --
> >> $restService = new OmRestService();
> >> $path = "http://www.mysite.com/myfile.jpg";;
> >> $data = array("ownerId" => 2,
> >> "externalId" => 1000,
> >> "externalType" => "moodle",
> >> "roomId" => 12,
> >> "parentId" => 0,
> >> "name" => "myfile.jpg"
> >> );
> >>
> >> $streamData = new CurlFile($path, 'image/jpg');
> >>
> >> $params = array("file" => json_encode($data),
> >> "stream" => $streamData
> >> );
> >> // Chiama la funzione per importare i file
> >> $result = $restService->call($this->getRestUrl("file"),
> >> RestMethod::POST,
> >> $this->sessionId,
> >> $params,
> >> null,
> >> "fileExplorerItemDTO");
> >> --
> >>
> >> If I use
> >> $streamData = '@'.$path
> >>
> >> or
> >>
> >> new CurlFile($path, 'image/jpg');
> >>
> >> the result does not change. Service return this error: "Request
> >> OpenMeetings! OpenMeetings Service failed and no response was returned.
> >> Additioanl info:"
> >> but Additional info is empty.
> >>
> >> No duobt there is an error in the SOAP parameters, but digging in the
> Java
> >> source code of OM, in the class FileExplorerItemDTO there is'nt method
> >> fromString, which has been present in the RoomDTO class or
> ExternalUserDTO.
> >>
> >> Where is the mistake?
> >>
> >> Thank you, and please let me know.
> >>
> >>
> >> Alessio
> >>
> >>
> >>
> >> 2016-09-20 20:18 GMT+02:00 Maxim Solodovnik :
> >>>
> >>> Current version of the Gateway is unable to work with files
> >>> But there are lots of examples (for ex. here
> >>> http://blog.derakkilgo.com/2009/06/07/send-a-file-via-
> post-with-curl-and-php/)
> >>> how this can be implemented
> >>> I can add it to the api
> >>> https://github.com/openmeetings/openmeetings-api-plugin
> >>> but unfortunately not right now :(
> >>>
> >>> On Tue, Sep 20, 2016 at 11:56 PM, Alessio Falsetti
> >>>  wrote:
> 
>  Hello Hemant,
> 
>  thank you for your help! I had already seen this documentation, but
>  there is still the problem of inserting files into the room. With the
>  previous version of OM Gateway & APIs, I call this:
> 
>  $result = $restService->call($this->getRestUrl("FileService") .
>  "importFile?SID=" . $this->session_id
>  . "&externalUserId=" . urlencode($userId)
>  . "&externalFileId=" . $externalFileId
>  . "&externalType=" . urlencode($externalType)
>  . "&room_id=" . urlencode($room_id)
>  . "&isOwner=" . $isOwner
>  . "&path=" . urlencode($path)
>  . "&parentFolderId=" . $parentFolderId
>  . "&fileSystemName=" . urlencode($fileSystemName));
> 
>  and everything works smoothly, OM takes the files directly from the
> URL
>  specified in "path".
> 
>  With the new version, this no longer works, and the funcion "add" is
>  described in the documentation as follows:
>  --
> 
>  add
> 
>  @POST
>  @Consumes(value="multipart/form-data")
>  @Path(value="/")
>  public FileExplorerItemDTO add(@QueryParam(value="sid")
> String sid,
> FileExplorerItemDTO file,
>    InputStream stream)
>    throws
>  org.apache.openmeetings.webservice.error.ServiceException
> 
>  to add a folder to the private drive, set parentFileExplorerItemId = 0
>  and isOwner to 1/true and externalUserId/externalUserType to a valid
>

Re: REST API

2016-10-09 Thread Maxim Solodovnik
Hello Alessio,

I believe this [1] commit might be interesting for you :)
I have added "createFile" method and basic test to prove it works :)

[1] 
https://github.com/openmeetings/openmeetings-api-plugin/commit/51ccde85b71bc32b1e4c5074171822606606dfad

On Thu, Sep 22, 2016 at 11:35 PM, Maxim Solodovnik  wrote:
> Hello Alessio,
>
> I don't have time right now to implement it in PHP, maybe next week :((
>
> Here is the example of how this method is currently used [1] [2], it's not
> PHP but you will get an idea
> RestCall is custom class [3]
> I'll try to improve PHP API, please ping me if I'll be too silent
>
> [1]
> https://github.com/apache/openmeetings/blob/3.1.x/openmeetings-flash/src/main/swf/modules/conference/tabcontent/fileexplorer/fileExplorer.lzx#L212
> [2]
> https://github.com/apache/openmeetings/blob/3.1.x/openmeetings-flash/src/main/swf/modules/conference/tabcontent/fileexplorer/fileExplorer.lzx#L225
> [3]
> https://github.com/apache/openmeetings/blob/3.1.x/openmeetings-flash/src/main/swf/base/remote/restCall.lzx#L172
>
> On Thu, Sep 22, 2016 at 10:21 PM, Alessio Falsetti 
> wrote:
>>
>> Hi Maxim,
>>
>> I made many test, this is an example of what I tried to do:
>>
>> --
>> $restService = new OmRestService();
>> $path = "http://www.mysite.com/myfile.jpg";;
>> $data = array("ownerId" => 2,
>> "externalId" => 1000,
>> "externalType" => "moodle",
>> "roomId" => 12,
>> "parentId" => 0,
>> "name" => "myfile.jpg"
>> );
>>
>> $streamData = new CurlFile($path, 'image/jpg');
>>
>> $params = array("file" => json_encode($data),
>> "stream" => $streamData
>> );
>> // Chiama la funzione per importare i file
>> $result = $restService->call($this->getRestUrl("file"),
>> RestMethod::POST,
>> $this->sessionId,
>> $params,
>> null,
>> "fileExplorerItemDTO");
>> --
>>
>> If I use
>> $streamData = '@'.$path
>>
>> or
>>
>> new CurlFile($path, 'image/jpg');
>>
>> the result does not change. Service return this error: "Request
>> OpenMeetings! OpenMeetings Service failed and no response was returned.
>> Additioanl info:"
>> but Additional info is empty.
>>
>> No duobt there is an error in the SOAP parameters, but digging in the Java
>> source code of OM, in the class FileExplorerItemDTO there is'nt method
>> fromString, which has been present in the RoomDTO class or ExternalUserDTO.
>>
>> Where is the mistake?
>>
>> Thank you, and please let me know.
>>
>>
>> Alessio
>>
>>
>>
>> 2016-09-20 20:18 GMT+02:00 Maxim Solodovnik :
>>>
>>> Current version of the Gateway is unable to work with files
>>> But there are lots of examples (for ex. here
>>> http://blog.derakkilgo.com/2009/06/07/send-a-file-via-post-with-curl-and-php/)
>>> how this can be implemented
>>> I can add it to the api
>>> https://github.com/openmeetings/openmeetings-api-plugin
>>> but unfortunately not right now :(
>>>
>>> On Tue, Sep 20, 2016 at 11:56 PM, Alessio Falsetti
>>>  wrote:

 Hello Hemant,

 thank you for your help! I had already seen this documentation, but
 there is still the problem of inserting files into the room. With the
 previous version of OM Gateway & APIs, I call this:

 $result = $restService->call($this->getRestUrl("FileService") .
 "importFile?SID=" . $this->session_id
 . "&externalUserId=" . urlencode($userId)
 . "&externalFileId=" . $externalFileId
 . "&externalType=" . urlencode($externalType)
 . "&room_id=" . urlencode($room_id)
 . "&isOwner=" . $isOwner
 . "&path=" . urlencode($path)
 . "&parentFolderId=" . $parentFolderId
 . "&fileSystemName=" . urlencode($fileSystemName));

 and everything works smoothly, OM takes the files directly from the URL
 specified in "path".

 With the new version, this no longer works, and the funcion "add" is
 described in the documentation as follows:
 --

 add

 @POST
 @Consumes(value="multipart/form-data")
 @Path(value="/")
 public FileExplorerItemDTO add(@QueryParam(value="sid")
String sid,
FileExplorerItemDTO file,
   InputStream stream)
   throws
 org.apache.openmeetings.webservice.error.ServiceException

 to add a folder to the private drive, set parentFileExplorerItemId = 0
 and isOwner to 1/true and externalUserId/externalUserType to a valid user
 Parameters:sid - The SID of the User. This SID must be marked as logged
 infile - the The file to be addedstream - the The file to be added 
 Returns:-
 Object created
 --

 How do I pass the FileExplorerItemDTO and, above all, the InputStream
 through OmGateway.php or OmRestService,php??

 Thank you and let me know!

 Alessio




 2016-0

Re: REST API

2016-09-22 Thread Maxim Solodovnik
Hello Alessio,

I don't have time right now to implement it in PHP, maybe next week :((

Here is the example of how this method is currently used [1] [2], it's not
PHP but you will get an idea
RestCall is custom class [3]
I'll try to improve PHP API, please ping me if I'll be too silent

[1]
https://github.com/apache/openmeetings/blob/3.1.x/openmeetings-flash/src/main/swf/modules/conference/tabcontent/fileexplorer/fileExplorer.lzx#L212
[2]
https://github.com/apache/openmeetings/blob/3.1.x/openmeetings-flash/src/main/swf/modules/conference/tabcontent/fileexplorer/fileExplorer.lzx#L225
[3]
https://github.com/apache/openmeetings/blob/3.1.x/openmeetings-flash/src/main/swf/base/remote/restCall.lzx#L172

On Thu, Sep 22, 2016 at 10:21 PM, Alessio Falsetti 
wrote:

> Hi Maxim,
>
> I made many test, this is an example of what I tried to do:
>
> --
> $restService = new OmRestService();
> $path = "http://www.mysite.com/myfile.jpg";;
> $data = array("ownerId" => 2,
> "externalId" => 1000,
> "externalType" => "moodle",
> "roomId" => 12,
> "parentId" => 0,
> "name" => "myfile.jpg"
> );
>
> $streamData = new CurlFile($path, 'image/jpg');
>
> $params = array("file" => json_encode($data),
> "stream" => $streamData
> );
> // Chiama la funzione per importare i file
> $result = $restService->call($this->getRestUrl("file"),
> RestMethod::POST,
> $this->sessionId,
> $params,
> null,
> "fileExplorerItemDTO");
> --
>
> If I use
> $streamData = '@'.$path
>
> or
>
> new CurlFile($path, 'image/jpg');
>
> the result does not change. Service return this error: "*Request
> OpenMeetings! OpenMeetings Service failed and no response was returned.
> Additioanl info:*"
> but Additional info is empty.
>
> No duobt there is an error in the SOAP parameters, but digging in the Java
> source code of OM, in the class FileExplorerItemDTO there is'nt method
> fromString, which has been present in the RoomDTO class or
> ExternalUserDTO.
>
> Where is the mistake?
>
> Thank you, and please let me know.
>
>
> Alessio
>
>
>
> 2016-09-20 20:18 GMT+02:00 Maxim Solodovnik :
>
>> Current version of the Gateway is unable to work with files
>> But there are lots of examples (for ex. here http://blog.derakkilgo.co
>> m/2009/06/07/send-a-file-via-post-with-curl-and-php/) how this can be
>> implemented
>> I can add it to the api https://github.com/openmee
>> tings/openmeetings-api-plugin
>> but unfortunately not right now :(
>>
>> On Tue, Sep 20, 2016 at 11:56 PM, Alessio Falsetti <
>> alessio.false...@eng.it> wrote:
>>
>>> Hello Hemant,
>>>
>>> thank you for your help! I had already seen this documentation, but
>>> there is still the problem of inserting files into the room. With the
>>> previous version of OM Gateway & APIs, I call this:
>>>
>>> $result = $restService->call($this->getRestUrl("FileService") .
>>> "importFile?SID=" . $this->session_id
>>> . "&externalUserId=" . urlencode($userId)
>>> . "&externalFileId=" . $externalFileId
>>> . "&externalType=" . urlencode($externalType)
>>> . "&room_id=" . urlencode($room_id)
>>> . "&isOwner=" . $isOwner
>>> . "&path=" . urlencode($path)
>>> . "&parentFolderId=" . $parentFolderId
>>> . "&fileSystemName=" . urlencode($fileSystemName));
>>>
>>> and everything works smoothly, OM takes the files directly from the URL 
>>> specified
>>> in "*path*".
>>>
>>> With the new version, this no longer works, and the funcion "*add*" is
>>> described in the documentation as follows:
>>> --
>>> add
>>>
>>> @POST
>>> @Consumes(value="multipart/form-data")
>>> @Path(value="/")
>>> public FileExplorerItemDTO 
>>> 
>>>  add(@QueryParam(value="sid")
>>>String 
>>> 
>>>  sid,
>>>FileExplorerItemDTO 
>>> 
>>>  file,
>>>   InputStream 
>>> 
>>>  stream)
>>>   throws org.apache.openmeetings.webservice.error.ServiceException 
>>> 
>>>
>>> to add a folder to the private drive, set parentFileExplorerItemId = 0
>>> and isOwner to 1/true and externalUserId/externalUserType to a valid
>>> user
>>> Parameters:sid - The SID of the User. This SID must be marked as logged
>>> infile - the The file to be addedstream - the The file to be added
>>> Returns:- Object created
>>> --
>>>
>>> How do I pass th

Re: REST API

2016-09-22 Thread Alessio Falsetti
Hi Maxim,

I made many test, this is an example of what I tried to do:

--
$restService = new OmRestService();
$path = "http://www.mysite.com/myfile.jpg";;
$data = array("ownerId" => 2,
"externalId" => 1000,
"externalType" => "moodle",
"roomId" => 12,
"parentId" => 0,
"name" => "myfile.jpg"
);

$streamData = new CurlFile($path, 'image/jpg');

$params = array("file" => json_encode($data),
"stream" => $streamData
);
// Chiama la funzione per importare i file
$result = $restService->call($this->getRestUrl("file"),
RestMethod::POST,
$this->sessionId,
$params,
null,
"fileExplorerItemDTO");
--

If I use
$streamData = '@'.$path

or

new CurlFile($path, 'image/jpg');

the result does not change. Service return this error: "*Request
OpenMeetings! OpenMeetings Service failed and no response was returned.
Additioanl info:*"
but Additional info is empty.

No duobt there is an error in the SOAP parameters, but digging in the Java
source code of OM, in the class FileExplorerItemDTO there is'nt method
fromString, which has been present in the RoomDTO class or ExternalUserDTO.

Where is the mistake?

Thank you, and please let me know.


Alessio



2016-09-20 20:18 GMT+02:00 Maxim Solodovnik :

> Current version of the Gateway is unable to work with files
> But there are lots of examples (for ex. here http://blog.derakkilgo.
> com/2009/06/07/send-a-file-via-post-with-curl-and-php/) how this can be
> implemented
> I can add it to the api https://github.com/openmeetings/openmeetings-api-
> plugin
> but unfortunately not right now :(
>
> On Tue, Sep 20, 2016 at 11:56 PM, Alessio Falsetti <
> alessio.false...@eng.it> wrote:
>
>> Hello Hemant,
>>
>> thank you for your help! I had already seen this documentation, but there
>> is still the problem of inserting files into the room. With the previous
>> version of OM Gateway & APIs, I call this:
>>
>> $result = $restService->call($this->getRestUrl("FileService") .
>> "importFile?SID=" . $this->session_id
>> . "&externalUserId=" . urlencode($userId)
>> . "&externalFileId=" . $externalFileId
>> . "&externalType=" . urlencode($externalType)
>> . "&room_id=" . urlencode($room_id)
>> . "&isOwner=" . $isOwner
>> . "&path=" . urlencode($path)
>> . "&parentFolderId=" . $parentFolderId
>> . "&fileSystemName=" . urlencode($fileSystemName));
>>
>> and everything works smoothly, OM takes the files directly from the URL 
>> specified
>> in "*path*".
>>
>> With the new version, this no longer works, and the funcion "*add*" is
>> described in the documentation as follows:
>> --
>> add
>>
>> @POST
>> @Consumes(value="multipart/form-data")
>> @Path(value="/")
>> public FileExplorerItemDTO 
>> 
>>  add(@QueryParam(value="sid")
>>String 
>> 
>>  sid,
>>FileExplorerItemDTO 
>> 
>>  file,
>>   InputStream 
>> 
>>  stream)
>>   throws org.apache.openmeetings.webservice.error.ServiceException 
>> 
>>
>> to add a folder to the private drive, set parentFileExplorerItemId = 0
>> and isOwner to 1/true and externalUserId/externalUserType to a valid user
>> Parameters:sid - The SID of the User. This SID must be marked as logged
>> infile - the The file to be addedstream - the The file to be added
>> Returns:- Object created
>> --
>>
>> How do I pass the FileExplorerItemDTO and, above all, the InputStream
>> through OmGateway.php or OmRestService,php??
>>
>> Thank you and let me know!
>>
>> Alessio
>>
>>
>>
>>
>> 2016-09-19 19:13 GMT+02:00 Coscend@OM :
>>
>>> Hello Alessio,
>>>
>>> Guide and snippets:  https://github.com/openmeeting
>>> s/openmeetings-api-plugin/wiki
>>> Moodle plugin:  http://openmeetings.apache.org/MoodlePlugin.html
>>>
>>> Thank you.
>>>
>>> Sincerely,
>>>
>>> Hemant K. Sabat
>>>
>>> Coscend Communications Solutions
>>> Web site: www.Coscend.com
>>> --
>>> CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail
>>> Messages from Coscend Communications Solutions' posted at:
>>> http://www.Coscend.com/Terms_and_Conditions.html
>>>
>>>
>>>
>>> -Original Message-
>>> From: Alessio Falsetti [mailto:alessio.false...@eng.it]
>>> Sent: Monday, September 19, 2016 12:08 PM

Re: REST API

2016-09-20 Thread Maxim Solodovnik
Current version of the Gateway is unable to work with files
But there are lots of examples (for ex. here
http://blog.derakkilgo.com/2009/06/07/send-a-file-via-post-with-curl-and-php/)
how this can be implemented
I can add it to the api
https://github.com/openmeetings/openmeetings-api-plugin
but unfortunately not right now :(

On Tue, Sep 20, 2016 at 11:56 PM, Alessio Falsetti 
wrote:

> Hello Hemant,
>
> thank you for your help! I had already seen this documentation, but there
> is still the problem of inserting files into the room. With the previous
> version of OM Gateway & APIs, I call this:
>
> $result = $restService->call($this->getRestUrl("FileService") .
> "importFile?SID=" . $this->session_id
> . "&externalUserId=" . urlencode($userId)
> . "&externalFileId=" . $externalFileId
> . "&externalType=" . urlencode($externalType)
> . "&room_id=" . urlencode($room_id)
> . "&isOwner=" . $isOwner
> . "&path=" . urlencode($path)
> . "&parentFolderId=" . $parentFolderId
> . "&fileSystemName=" . urlencode($fileSystemName));
>
> and everything works smoothly, OM takes the files directly from the URL 
> specified
> in "*path*".
>
> With the new version, this no longer works, and the funcion "*add*" is
> described in the documentation as follows:
> --
> add
>
> @POST
> @Consumes(value="multipart/form-data")
> @Path(value="/")
> public FileExplorerItemDTO 
> 
>  add(@QueryParam(value="sid")
>String 
> 
>  sid,
>FileExplorerItemDTO 
> 
>  file,
>   InputStream 
> 
>  stream)
>   throws org.apache.openmeetings.webservice.error.ServiceException 
> 
>
> to add a folder to the private drive, set parentFileExplorerItemId = 0 and
> isOwner to 1/true and externalUserId/externalUserType to a valid user
> Parameters:sid - The SID of the User. This SID must be marked as logged in
> file - the The file to be addedstream - the The file to be added Returns:-
> Object created
> --
>
> How do I pass the FileExplorerItemDTO and, above all, the InputStream
> through OmGateway.php or OmRestService,php??
>
> Thank you and let me know!
>
> Alessio
>
>
>
>
> 2016-09-19 19:13 GMT+02:00 Coscend@OM :
>
>> Hello Alessio,
>>
>> Guide and snippets:  https://github.com/openmeeting
>> s/openmeetings-api-plugin/wiki
>> Moodle plugin:  http://openmeetings.apache.org/MoodlePlugin.html
>>
>> Thank you.
>>
>> Sincerely,
>>
>> Hemant K. Sabat
>>
>> Coscend Communications Solutions
>> Web site: www.Coscend.com
>> --
>> CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail
>> Messages from Coscend Communications Solutions' posted at:
>> http://www.Coscend.com/Terms_and_Conditions.html
>>
>>
>>
>> -Original Message-
>> From: Alessio Falsetti [mailto:alessio.false...@eng.it]
>> Sent: Monday, September 19, 2016 12:08 PM
>> To: user@openmeetings.apache.org
>> Subject: REST API
>>
>> Hi,
>>
>> through the REST API of OpenMeetings (3.1.1), I'm trying to upload files
>> into a room.
>>
>> I'm trying to use the FileWebService API to add the files. Reading the
>> documentation I seem to have understood that the function to be used is
>> ADD, but until now I have not been successful use it, because I have not
>> clear what and how parameters needs to pass to the function.
>>
>> Where can I find a *working* example in PHP?
>> Thanks a lot!
>>
>> Alessio
>>
>>
>>
>>
>> -
>> No virus found in this message.
>> Checked by AVG - www.avg.com
>> Version: 2016.0.7797 / Virus Database: 4656/13044 - Release Date: 09/19/16
>>
>>
>


-- 
WBR
Maxim aka solomax


Re: REST API

2016-09-20 Thread Alessio Falsetti
Hello Hemant,

thank you for your help! I had already seen this documentation, but there
is still the problem of inserting files into the room. With the previous
version of OM Gateway & APIs, I call this:

$result = $restService->call($this->getRestUrl("FileService") .
"importFile?SID=" . $this->session_id
. "&externalUserId=" . urlencode($userId)
. "&externalFileId=" . $externalFileId
. "&externalType=" . urlencode($externalType)
. "&room_id=" . urlencode($room_id)
. "&isOwner=" . $isOwner
. "&path=" . urlencode($path)
. "&parentFolderId=" . $parentFolderId
. "&fileSystemName=" . urlencode($fileSystemName));

and everything works smoothly, OM takes the files directly from the
URL specified
in "*path*".

With the new version, this no longer works, and the funcion "*add*" is
described in the documentation as follows:
--
add

@POST
@Consumes(value="multipart/form-data")
@Path(value="/")
public FileExplorerItemDTO

add(@QueryParam(value="sid")
   String

sid,
   FileExplorerItemDTO

file,
  InputStream

stream)
  throws
org.apache.openmeetings.webservice.error.ServiceException


to add a folder to the private drive, set parentFileExplorerItemId = 0 and
isOwner to 1/true and externalUserId/externalUserType to a valid user
Parameters:sid - The SID of the User. This SID must be marked as logged in
file - the The file to be addedstream - the The file to be added Returns:-
Object created
--

How do I pass the FileExplorerItemDTO and, above all, the InputStream
through OmGateway.php or OmRestService,php??

Thank you and let me know!

Alessio




2016-09-19 19:13 GMT+02:00 Coscend@OM :

> Hello Alessio,
>
> Guide and snippets:  https://github.com/openmeetings/openmeetings-api-
> plugin/wiki
> Moodle plugin:  http://openmeetings.apache.org/MoodlePlugin.html
>
> Thank you.
>
> Sincerely,
>
> Hemant K. Sabat
>
> Coscend Communications Solutions
> Web site: www.Coscend.com
> --
> CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail
> Messages from Coscend Communications Solutions' posted at:
> http://www.Coscend.com/Terms_and_Conditions.html
>
>
>
> -Original Message-
> From: Alessio Falsetti [mailto:alessio.false...@eng.it]
> Sent: Monday, September 19, 2016 12:08 PM
> To: user@openmeetings.apache.org
> Subject: REST API
>
> Hi,
>
> through the REST API of OpenMeetings (3.1.1), I'm trying to upload files
> into a room.
>
> I'm trying to use the FileWebService API to add the files. Reading the
> documentation I seem to have understood that the function to be used is
> ADD, but until now I have not been successful use it, because I have not
> clear what and how parameters needs to pass to the function.
>
> Where can I find a *working* example in PHP?
> Thanks a lot!
>
> Alessio
>
>
>
>
> -
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2016.0.7797 / Virus Database: 4656/13044 - Release Date: 09/19/16
>
>


RE: REST API

2016-09-19 Thread Coscend@OM
Hello Alessio,

Guide and snippets:  
https://github.com/openmeetings/openmeetings-api-plugin/wiki
Moodle plugin:  http://openmeetings.apache.org/MoodlePlugin.html

Thank you.

Sincerely,

Hemant K. Sabat

Coscend Communications Solutions
Web site: www.Coscend.com 
--
CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail Messages 
from Coscend Communications Solutions' posted at: 
http://www.Coscend.com/Terms_and_Conditions.html 



-Original Message-
From: Alessio Falsetti [mailto:alessio.false...@eng.it] 
Sent: Monday, September 19, 2016 12:08 PM
To: user@openmeetings.apache.org
Subject: REST API

Hi,

through the REST API of OpenMeetings (3.1.1), I'm trying to upload files into a 
room.

I'm trying to use the FileWebService API to add the files. Reading the 
documentation I seem to have understood that the function to be used is ADD, 
but until now I have not been successful use it, because I have not clear what 
and how parameters needs to pass to the function.

Where can I find a *working* example in PHP?
Thanks a lot!

Alessio




-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2016.0.7797 / Virus Database: 4656/13044 - Release Date: 09/19/16