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 <[email protected]>
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": "[email protected]"
> }
>   }' \
> --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 (<[email protected]>)
> 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 <[email protected]>
>> 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": "[email protected]"
>>> }
>>>   }' \
>>> --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

Reply via email to