You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@openmeetings.apache.org by Jibsan Joel Rosa Toirac <ji...@gmail.com> on 2020/06/25 09:35:02 UTC

Room service through API REST

Hello there,greetings to all. Please I need help, I want now to create a
Room using the same way you sent me which is the one I was looking for,
this one for creating an user:



curl --location --request POST 'http:// <http:///>
192.168.14.98:5080/openmeetings/services/user
<http://192.168.14.98:5080/openmeetings/services/user/login?&user=admin&pass=my_password>/?sid=cc8d1754-87c8-459a-adf7-e2a1a80cba9b'
\
--form 'user= {
    "firstname": "Jibsan",
    "lastname": "Test",
    "externalId": jibsan",
"password":"QQQ999!!!qqq",
    "login": jibsan,
"address" : {
"email": "jib@san.cu"
}
  }' \
--form 'confirm=false'



Now I want to create a room and I’m using the same to create the room, but
I need to fill some data, in this case “type” which is like a form, and
“allowRecording” which is a boolean.



I’m doing something like this:



curl --location --request POST '
http://192.168.14.98:5080/dialogo/services/room/?sid=493604c7-8576-477d-babc-9bc5d09a188d'
\

--form 'room= {

    "name": "Test",

    "comment": "Test number one",

    "type" : {



    }

    "capacity":     "30",

    "allowRecording": "true",

    "externalId": "testroom"

  }'



So I want to fill the “type” because I read that it could be Private,
Public, Interview, etc.

Also if you could provide me with a final help, I need to get the Hash
invitation with params using the same way and if you believe that what I'm
doing is missing something, please tell me.



Thank you,

Jibsan.

Re: Room service through API REST

Posted by Maxim Solodovnik <so...@gmail.com>.
Hello Jibsan,

I made some changes in build config and now you can go to
https://builds.apache.org/view/M-R/view/OpenMeetings/job/openmeetings/lastBuild/consoleFull
and check request/response of existent Unit tests




On Sat, 27 Jun 2020 at 02:18, Daniel Baker <in...@collisiondetection.biz>
wrote:

> Did you try  :
> ['type'] = 'CONFERENCE';
> On 6/26/2020 10:59 AM, Jibsan Joel Rosa Toirac wrote:
>
> Hello Maxim, I'm sorry but it gives me the idea, but still don't knowing
> how to fill out the remaining "type" field that I need, Irene wrote me this
> for creating an user with CURL:
>
> curl --location --request POST 'http://
> 192.168.14.98:5080/openmeetings/services/user
> <http://192.168.14.98:5080/openmeetings/services/user/login?&user=admin&pass=my_password>/?sid=cc8d1754-87c8-459a-adf7-e2a1a80cba9b'
> \
> --form 'user= {
>     "firstname": "Jibsan",
>     "lastname": "Test",
>     "externalId": jibsan",
> "password":"QQQ999!!!qqq",
>     "login": jibsan,
> "address" : {
> "email": "jib@san.cu"
> }
>   }' \
> --form 'confirm=false'
>
> And that worked perfectly for me. So I need to do the same but this time
> with a room, so I did this:
>
> curl --location --request POST '
> http://192.168.14.98:5080/dialogo/services/room/?sid=493604c7-8576-477d-babc-9bc5d09a188d'
> \
>
> --form 'room= {
>
>     "name": "Test",
>
>     "comment": "Test number one",
>
>     "type" : {
>
>
>
>     }
>
>     "capacity":     "30",
>
>     "allowRecording": "true",
>
>     "externalId": "testroom"
>
>   }'
>
>  Just I need to finish the "type" data to use it with CURL. Please I need
> help with that. I have not to use PHP or JAVA, this is like JSON.
>
>
> Greeting,
>
> Jibsan.
>
> El jue., 25 jun. 2020 a las 18:06, Maxim Solodovnik (<so...@gmail.com>)
> escribió:
>
>> Hello Jibsan,
>>
>> you can check our PHP API to get exact syntax
>> please use these values for type:
>> https://github.com/apache/openmeetings/blob/master/openmeetings-db/src/main/java/org/apache/openmeetings/db/entity/room/Room.java#L130
>>
>> On Thu, 25 Jun 2020 at 22:34, Jibsan Joel Rosa Toirac <ji...@gmail.com>
>> wrote:
>>
>>> Hello there,greetings to all. Please I need help, I want now to create a
>>> Room using the same way you sent me which is the one I was looking for,
>>> this one for creating an user:
>>>
>>>
>>>
>>> curl --location --request POST 'http:// <http:///>
>>> 192.168.14.98:5080/openmeetings/services/user
>>> <http://192.168.14.98:5080/openmeetings/services/user/login?&user=admin&pass=my_password>/?sid=cc8d1754-87c8-459a-adf7-e2a1a80cba9b'
>>> \
>>> --form 'user= {
>>>     "firstname": "Jibsan",
>>>     "lastname": "Test",
>>>     "externalId": jibsan",
>>> "password":"QQQ999!!!qqq",
>>>     "login": jibsan,
>>> "address" : {
>>> "email": "jib@san.cu"
>>> }
>>>   }' \
>>> --form 'confirm=false'
>>>
>>>
>>>
>>> Now I want to create a room and I’m using the same to create the room,
>>> but I need to fill some data, in this case “type” which is like a form, and
>>> “allowRecording” which is a boolean.
>>>
>>>
>>>
>>> I’m doing something like this:
>>>
>>>
>>>
>>> curl --location --request POST '
>>> http://192.168.14.98:5080/dialogo/services/room/?sid=493604c7-8576-477d-babc-9bc5d09a188d'
>>> \
>>>
>>> --form 'room= {
>>>
>>>     "name": "Test",
>>>
>>>     "comment": "Test number one",
>>>
>>>     "type" : {
>>>
>>>
>>>
>>>     }
>>>
>>>     "capacity":     "30",
>>>
>>>     "allowRecording": "true",
>>>
>>>     "externalId": "testroom"
>>>
>>>   }'
>>>
>>>
>>>
>>> So I want to fill the “type” because I read that it could be Private,
>>> Public, Interview, etc.
>>>
>>> Also if you could provide me with a final help, I need to get the Hash
>>> invitation with params using the same way and if you believe that what I'm
>>> doing is missing something, please tell me.
>>>
>>>
>>>
>>> Thank you,
>>>
>>> Jibsan.
>>>
>>
>>
>> --
>> Best regards,
>> Maxim
>>
>

-- 
Best regards,
Maxim

Re: Room service through API REST

Posted by Daniel Baker <in...@collisiondetection.biz>.
Did you try  :

['type'] = 'CONFERENCE';
On 6/26/2020 10:59 AM, Jibsan Joel Rosa Toirac wrote:
> Hello Maxim, I'm sorry but it gives me the idea, but still don't 
> knowing how to fill out the remaining "type" field that I need, Irene 
> wrote me this for creating an user with CURL:
>
> curl --location --request POST 'http:// 
> <http:>192.168.14.98:5080/openmeetings/services/user 
> <http://192.168.14.98:5080/openmeetings/services/user/login?&user=admin&pass=my_password>/?sid=cc8d1754-87c8-459a-adf7-e2a1a80cba9b' 
> \
> --form 'user= {
>     "firstname": "Jibsan",
>     "lastname": "Test",
>     "externalId": jibsan",
> "password":"QQQ999!!!qqq",
>     "login": jibsan,
> "address" : {
> "email": "jib@san.cu <ma...@san.cu>"
> }
>   }' \
> --form 'confirm=false'
>
> And that worked perfectly for me. So I need to do the same but this 
> time with a room, so I did this:
>
> curl --location --request POST 
> 'http://192.168.14.98:5080/dialogo/services/room/?sid=493604c7-8576-477d-babc-9bc5d09a188d' 
> \
>
> --form 'room= {
>
>     "name": "Test",
>
>     "comment": "Test number one",
>
>     "type" : {
>
>     }
>
>     "capacity":     "30",
>
>     "allowRecording": "true",
>
>     "externalId": "testroom"
>
>   }'
>
>  Just I need to finish the "type" data to use it with CURL. Please I 
> need help with that. I have not to use PHP or JAVA, this is like JSON.
>
>
> Greeting,
>
> Jibsan.
>
>
> El jue., 25 jun. 2020 a las 18:06, Maxim Solodovnik 
> (<solomax666@gmail.com <ma...@gmail.com>>) escribió:
>
>     Hello Jibsan,
>
>     you can check our PHP API to get exact syntax
>     please use these values for type:
>     https://github.com/apache/openmeetings/blob/master/openmeetings-db/src/main/java/org/apache/openmeetings/db/entity/room/Room.java#L130
>
>     On Thu, 25 Jun 2020 at 22:34, Jibsan Joel Rosa Toirac
>     <jibsan94@gmail.com <ma...@gmail.com>> wrote:
>
>         Hello there,greetings to all. Please I need help, I want now
>         to create a Room using the same way you sent me which is the
>         one I was looking for, this one for creating an user:
>
>         curl --location --request POST 'http://
>         <http:///>192.168.14.98:5080/openmeetings/services/user
>         <http://192.168.14.98:5080/openmeetings/services/user/login?&user=admin&pass=my_password>/?sid=cc8d1754-87c8-459a-adf7-e2a1a80cba9b'
>         \
>         --form 'user= {
>             "firstname": "Jibsan",
>             "lastname": "Test",
>             "externalId": jibsan",
>         "password":"QQQ999!!!qqq",
>             "login": jibsan,
>         "address" : {
>         "email": "jib@san.cu <ma...@san.cu>"
>         }
>           }' \
>         --form 'confirm=false'
>
>         Now I want to create a room and I’m using the same to create
>         the room, but I need to fill some data, in this case “type”
>         which is like a form, and “allowRecording” which is a boolean.
>
>         I’m doing something like this:
>
>         curl --location --request POST
>         'http://192.168.14.98:5080/dialogo/services/room/?sid=493604c7-8576-477d-babc-9bc5d09a188d'
>         \
>
>         --form 'room= {
>
>         "name": "Test",
>
>         "comment": "Test number one",
>
>         "type" : {
>
>         }
>
>         "capacity":"30",
>
>         "allowRecording": "true",
>
>         "externalId": "testroom"
>
>         }'
>
>         So I want to fill the “type” because I read that it could be
>         Private, Public, Interview, etc.
>
>         Also if you could provide me with a final help, I need to get
>         the Hash invitation with params using the same way and if you
>         believe that what I'm doing is missing something, please tell me.
>
>         Thank you,
>
>         Jibsan.
>
>
>
>     -- 
>     Best regards,
>     Maxim
>

Re: Room service through API REST

Posted by Jibsan Joel Rosa Toirac <ji...@gmail.com>.
Hello Maxim, I'm sorry but it gives me the idea, but still don't knowing
how to fill out the remaining "type" field that I need, Irene wrote me this
for creating an user with CURL:

curl --location --request POST 'http:// <http:>
192.168.14.98:5080/openmeetings/services/user
<http://192.168.14.98:5080/openmeetings/services/user/login?&user=admin&pass=my_password>/?sid=cc8d1754-87c8-459a-adf7-e2a1a80cba9b'
\
--form 'user= {
    "firstname": "Jibsan",
    "lastname": "Test",
    "externalId": jibsan",
"password":"QQQ999!!!qqq",
    "login": jibsan,
"address" : {
"email": "jib@san.cu"
}
  }' \
--form 'confirm=false'

And that worked perfectly for me. So I need to do the same but this time
with a room, so I did this:

curl --location --request POST '
http://192.168.14.98:5080/dialogo/services/room/?sid=493604c7-8576-477d-babc-9bc5d09a188d'
\

--form 'room= {

    "name": "Test",

    "comment": "Test number one",

    "type" : {



    }

    "capacity":     "30",

    "allowRecording": "true",

    "externalId": "testroom"

  }'

 Just I need to finish the "type" data to use it with CURL. Please I need
help with that. I have not to use PHP or JAVA, this is like JSON.


Greeting,

Jibsan.

El jue., 25 jun. 2020 a las 18:06, Maxim Solodovnik (<so...@gmail.com>)
escribió:

> Hello Jibsan,
>
> you can check our PHP API to get exact syntax
> please use these values for type:
> https://github.com/apache/openmeetings/blob/master/openmeetings-db/src/main/java/org/apache/openmeetings/db/entity/room/Room.java#L130
>
> On Thu, 25 Jun 2020 at 22:34, Jibsan Joel Rosa Toirac <ji...@gmail.com>
> wrote:
>
>> Hello there,greetings to all. Please I need help, I want now to create a
>> Room using the same way you sent me which is the one I was looking for,
>> this one for creating an user:
>>
>>
>>
>> curl --location --request POST 'http:// <http:///>
>> 192.168.14.98:5080/openmeetings/services/user
>> <http://192.168.14.98:5080/openmeetings/services/user/login?&user=admin&pass=my_password>/?sid=cc8d1754-87c8-459a-adf7-e2a1a80cba9b'
>> \
>> --form 'user= {
>>     "firstname": "Jibsan",
>>     "lastname": "Test",
>>     "externalId": jibsan",
>> "password":"QQQ999!!!qqq",
>>     "login": jibsan,
>> "address" : {
>> "email": "jib@san.cu"
>> }
>>   }' \
>> --form 'confirm=false'
>>
>>
>>
>> Now I want to create a room and I’m using the same to create the room,
>> but I need to fill some data, in this case “type” which is like a form, and
>> “allowRecording” which is a boolean.
>>
>>
>>
>> I’m doing something like this:
>>
>>
>>
>> curl --location --request POST '
>> http://192.168.14.98:5080/dialogo/services/room/?sid=493604c7-8576-477d-babc-9bc5d09a188d'
>> \
>>
>> --form 'room= {
>>
>>     "name": "Test",
>>
>>     "comment": "Test number one",
>>
>>     "type" : {
>>
>>
>>
>>     }
>>
>>     "capacity":     "30",
>>
>>     "allowRecording": "true",
>>
>>     "externalId": "testroom"
>>
>>   }'
>>
>>
>>
>> So I want to fill the “type” because I read that it could be Private,
>> Public, Interview, etc.
>>
>> Also if you could provide me with a final help, I need to get the Hash
>> invitation with params using the same way and if you believe that what I'm
>> doing is missing something, please tell me.
>>
>>
>>
>> Thank you,
>>
>> Jibsan.
>>
>
>
> --
> Best regards,
> Maxim
>

Re: Room service through API REST

Posted by Maxim Solodovnik <so...@gmail.com>.
Hello Jibsan,

you can check our PHP API to get exact syntax
please use these values for type:
https://github.com/apache/openmeetings/blob/master/openmeetings-db/src/main/java/org/apache/openmeetings/db/entity/room/Room.java#L130

On Thu, 25 Jun 2020 at 22:34, Jibsan Joel Rosa Toirac <ji...@gmail.com>
wrote:

> Hello there,greetings to all. Please I need help, I want now to create a
> Room using the same way you sent me which is the one I was looking for,
> this one for creating an user:
>
>
>
> curl --location --request POST 'http:// <http:///>
> 192.168.14.98:5080/openmeetings/services/user
> <http://192.168.14.98:5080/openmeetings/services/user/login?&user=admin&pass=my_password>/?sid=cc8d1754-87c8-459a-adf7-e2a1a80cba9b'
> \
> --form 'user= {
>     "firstname": "Jibsan",
>     "lastname": "Test",
>     "externalId": jibsan",
> "password":"QQQ999!!!qqq",
>     "login": jibsan,
> "address" : {
> "email": "jib@san.cu"
> }
>   }' \
> --form 'confirm=false'
>
>
>
> Now I want to create a room and I’m using the same to create the room, but
> I need to fill some data, in this case “type” which is like a form, and
> “allowRecording” which is a boolean.
>
>
>
> I’m doing something like this:
>
>
>
> curl --location --request POST '
> http://192.168.14.98:5080/dialogo/services/room/?sid=493604c7-8576-477d-babc-9bc5d09a188d'
> \
>
> --form 'room= {
>
>     "name": "Test",
>
>     "comment": "Test number one",
>
>     "type" : {
>
>
>
>     }
>
>     "capacity":     "30",
>
>     "allowRecording": "true",
>
>     "externalId": "testroom"
>
>   }'
>
>
>
> So I want to fill the “type” because I read that it could be Private,
> Public, Interview, etc.
>
> Also if you could provide me with a final help, I need to get the Hash
> invitation with params using the same way and if you believe that what I'm
> doing is missing something, please tell me.
>
>
>
> Thank you,
>
> Jibsan.
>


-- 
Best regards,
Maxim