You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@openmeetings.apache.org by Nelson Gomez <ng...@gmail.com> on 2020/05/31 15:36:20 UTC
How to get room hash via REST
Hello guys I hope your're very well.
*Note: I'm doing requesting in local*
*I have a problem when I try catch Hash via rest.* I did follow link
https://openmeetings.apache.org/RestAPISample.html and I can get
Authorized SID but it Not the Hash.
*Structure Json*
url: '
http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83
',
type: 'POST',
data: {user: JSON.stringify({
firstname: 'Nelson',
lastname: 'Gomez',
externalId: 'uid1',
externalType: 'myCMS',
login: 'ngomezleal'
}),
options: JSON.stringify({
roomId: 5,
moderator: true,
showAudioVideoTest: true
})
},
dataType: "json",
*Error in console*
Access to XMLHttpRequest at '
http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83'
from origin 'null' has been blocked by CORS policy: No
'Access-Control-Allow-Origin' header is present on the requested resource.
file3.html:49
*Rooms actived*
[image: image.png]
Can you help me please?
Regards,
Nelson
[image: Mailtrack]
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
Sender
notified by
Mailtrack
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
31/05/20
10:35:06
Re: How to get room hash via REST
Posted by Maxim Solodovnik <so...@gmail.com>.
Hello,
On Tue, 2 Jun 2020 at 14:00, pooja.kamra <po...@newgen.co.in> wrote:
> Actually I am testing other apis as well.
>
The API might not be consistent (different methods might require different
param encoding)
Most of them are covered by unit tests which are passed
Here is the HTTP dump of successful call
Address:
http://localhost:38763/openmeetings/services/user/?sid=38ee0ff7-7e4d-49ad-a914-cb4f8169b1f4
Content-Type: application/json
ResponseCode: 200
ExchangeId: 5772fe92-3477-4f44-8651-a2c77e4460b3
Headers: {Date=Tue, 19 May 2020 16:39:53 GMT,
Content-Type=application/json}
Payload:
{"userDTO":{"address":{"country":"US","deleted":false,"email":"440d2194-ed72-4106-b25d-1056159d2609@local
","id":5},"externalId":"440d2194-ed72-4106-b25d-1056159d2609","firstname":"testF440d2194-ed72-4106-b25d-1056159d2609","id":5,"languageId":0,"lastname":"testL440d2194-ed72-4106-b25d-1056159d2609","login":"test440d2194-ed72-4106-b25d-1056159d2609","rights":["ROOM"],"timeZoneId":"Europe/Astrakhan","type":"EXTERNAL"}}
> I tested the same given in link and it is giving me room hash now. Thanks
> for the help.
>
> But when I open that link in chrome:
>
> It is giving me error “Access Denied”.
>
this usually happens if you have OM logged-in in same browser (separate
tab/window)
>
>
> Regards,
>
> Pooja
>
>
>
> *From:* Maxim Solodovnik [mailto:solomax666@gmail.com]
> *Sent:* 02 June 2020 11:44
> *To:* pooja.kamra <po...@newgen.co.in>
> *Cc:* Openmeetings user-list <us...@openmeetings.apache.org>
> *Subject:* Re: How to get room hash via REST
>
>
>
> Andthe additional question: why are you adding user?
>
> Can just repeat the steps from example?
>
> (from mobile, sorry for typos)
>
>
>
> On Tue, Jun 2, 2020, 13:11 Maxim Solodovnik <so...@gmail.com> wrote:
>
> And the error in openmeetings.log is ....?
>
> (from mobile, sorry for typos)
>
>
>
> On Tue, Jun 2, 2020, 13:09 pooja.kamra <po...@newgen.co.in> wrote:
>
> Same error. I have tested in chrome console to add user :
>
> $.ajax({
>
> method: "POST",
>
> url: "services/user?sid=66706560-2c66-4984-aead-6841aea34148",
>
> data: {user: JSON.stringify({
>
> firstname: 'John',
>
> lastname: 'Doe',
>
> externalId: 'uid1',
>
> externalType: 'myCMS',
>
> login: 'superjohn'
>
> }),
>
> confirm:false},
>
> dataType: "json"
>
> });
>
> Error is internal server error.
>
>
>
> Regards,
>
> Pooja
>
>
>
> *From:* Maxim Solodovnik [mailto:solomax666@gmail.com]
> *Sent:* 02 June 2020 07:20
> *To:* Openmeetings user-list <us...@openmeetings.apache.org>
> *Cc:* pooja.kamra <po...@newgen.co.in>
> *Subject:* Re: How to get room hash via REST
>
>
>
> The example from https://openmeetings.apache.org/RestAPISample.html works
> from browser console
>
>
>
> the steps are:
>
> 1) open your favourite browser
>
> 2) open OM sign in page (DO NOT login)
>
> 3) open browser console
>
> 4) paste the code from example
>
>
>
> I have no idea what the postman is and have no time to investigate ....
>
>
>
>
>
> On Mon, 1 Jun 2020 at 20:22, Nelson Gomez <ng...@gmail.com> wrote:
>
> Hello, its the same, I'm using postman, but, I receive 400 error.
>
>
>
>
>
> Can you connect?
>
>
> Regards,
>
> Nelson
>
>
> [image: image.gif]
>
>
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
>
> Sender notified by
> Mailtrack
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> 01/06/20
> 08:21:20
>
>
>
> El lun., 1 jun. 2020 a las 2:07, pooja.kamra (<po...@newgen.co.in>)
> escribió:
>
> Sorry Maxim,
>
> I have sent the wrong screenshot. I have used POST only.
>
> Actually I am very new to REST APIs.
>
> Please see below:
>
>
>
> Regards,
>
> Pooja
>
>
>
> *From:* Maxim Solodovnik [mailto:solomax666@gmail.com]
> *Sent:* 01 June 2020 12:26
> *To:* Openmeetings user-list <us...@openmeetings.apache.org>
> *Cc:* nelson gomez <ng...@gmail.com>
> *Subject:* Re: How to get room hash via REST
>
>
>
> Example page clearly states the request should be made using POST
>
>
>
> You sending GET and get the super clear error "Method not allowed" ....
>
>
>
> On Mon, 1 Jun 2020 at 13:53, pooja.kamra <po...@newgen.co.in> wrote:
>
> Hi Maxim,
>
> I have already referred this link. But still getting issue as shown in
> screenshot.
>
> Please help.
>
>
>
> Regards,
>
> Pooja
>
>
>
> *From:* Maxim Solodovnik [mailto:solomax666@gmail.com]
> *Sent:* 01 June 2020 11:34
> *To:* Openmeetings user-list <us...@openmeetings.apache.org>
> *Cc:* nelson gomez <ng...@gmail.com>
> *Subject:* Re: How to get room hash via REST
>
>
>
> Here is the sample:
>
>
>
> https://openmeetings.apache.org/RestAPISample.html
>
>
>
> On Mon, 1 Jun 2020 at 13:03, pooja.kamra <po...@newgen.co.in> wrote:
>
> Hi Nelson,
>
>
>
> Which tool are you using to send REST APIs. If u are using Postman, please
> help me in this. When I am calling this REST api on my localhost, I am
> getting this error:
>
>
>
> Please help.
>
>
>
> Regards,
>
> Pooja
>
>
>
> *From:* Nelson Gomez [mailto:ngomezleal@gmail.com]
> *Sent:* 31 May 2020 21:06
> *To:* Openmeetings user-list <us...@openmeetings.apache.org>;
> openmeetings-en-espanol@googlegroups.com
> *Subject:* How to get room hash via REST
>
>
>
> Hello guys I hope your're very well.
>
>
>
> *Note: I'm doing requesting in local*
>
> *I have a problem when I try catch Hash via rest.* I did follow link
> https://openmeetings.apache.org/RestAPISample.html and I can get
> Authorized SID but it Not the Hash.
>
>
>
> *Structure Json*
>
>
>
> url: '
> http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83
> ',
> type: 'POST',
> data: {user: JSON.stringify({
> firstname: 'Nelson',
> lastname: 'Gomez',
> externalId: 'uid1',
> externalType: 'myCMS',
> login: 'ngomezleal'
> }),
> options: JSON.stringify({
> roomId: 5,
> moderator: true,
> showAudioVideoTest: true
> })
> },
> dataType: "json",
>
>
>
> *Error in console*
>
> Access to XMLHttpRequest at '
> http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83'
> from origin 'null' has been blocked by CORS policy: No
> 'Access-Control-Allow-Origin' header is present on the requested resource.
> file3.html:49
>
>
>
> *Rooms actived*
>
>
>
> Can you help me please?
>
>
>
> Regards,
>
> Nelson
>
>
> [image: image.gif]
>
>
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
>
> Sender notified by
> Mailtrack
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> 31/05/20
> 10:35:06
>
>
>
> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>
>
>
>
>
>
>
>
>
>
> --
>
> Best regards,
> Maxim
>
>
>
> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>
>
>
>
>
>
>
>
>
>
> --
>
> Best regards,
> Maxim
>
>
>
> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>
>
>
>
>
>
>
>
>
>
> --
>
> A la espera de su valiosa respuesta, se despide,
>
>
> [image: image.jpeg]
>
> Nelson Gomez
> Gerente General
> Develop & Design C.A
> +58 414-6096796
> http://www.develop-design.com.ve
> [image: image.png]
>
>
>
>
> --
>
> Best regards,
> Maxim
>
>
>
> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>
>
>
>
>
>
>
>
> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>
>
>
>
>
--
Best regards,
Maxim
RE: How to get room hash via REST
Posted by "pooja.kamra" <po...@newgen.co.in>.
Actually I am testing other apis as well.
I tested the same given in link and it is giving me room hash now. Thanks for the help.
But when I open that link in chrome:
It is giving me error “Access Denied”.
Regards,
Pooja
From: Maxim Solodovnik [mailto:solomax666@gmail.com]
Sent: 02 June 2020 11:44
To: pooja.kamra <po...@newgen.co.in>
Cc: Openmeetings user-list <us...@openmeetings.apache.org>
Subject: Re: How to get room hash via REST
Andthe additional question: why are you adding user?
Can just repeat the steps from example?
(from mobile, sorry for typos)
On Tue, Jun 2, 2020, 13:11 Maxim Solodovnik <solomax666@gmail.com <ma...@gmail.com> > wrote:
And the error in openmeetings.log is ....?
(from mobile, sorry for typos)
On Tue, Jun 2, 2020, 13:09 pooja.kamra <pooja.kamra@newgen.co.in <ma...@newgen.co.in> > wrote:
Same error. I have tested in chrome console to add user :
$.ajax({
method: "POST",
url: "services/user?sid=66706560-2c66-4984-aead-6841aea34148",
data: {user: JSON.stringify({
firstname: 'John',
lastname: 'Doe',
externalId: 'uid1',
externalType: 'myCMS',
login: 'superjohn'
}),
confirm:false},
dataType: "json"
});
Error is internal server error.
Regards,
Pooja
From: Maxim Solodovnik [mailto:solomax666@gmail.com <ma...@gmail.com> ]
Sent: 02 June 2020 07:20
To: Openmeetings user-list <user@openmeetings.apache.org <ma...@openmeetings.apache.org> >
Cc: pooja.kamra <pooja.kamra@newgen.co.in <ma...@newgen.co.in> >
Subject: Re: How to get room hash via REST
The example from https://openmeetings.apache.org/RestAPISample.html works from browser console
the steps are:
1) open your favourite browser
2) open OM sign in page (DO NOT login)
3) open browser console
4) paste the code from example
I have no idea what the postman is and have no time to investigate ....
On Mon, 1 Jun 2020 at 20:22, Nelson Gomez <ngomezleal@gmail.com <ma...@gmail.com> > wrote:
Hello, its the same, I'm using postman, but, I receive 400 error.
Can you connect?
Regards,
Nelson
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
Sender notified by
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> Mailtrack 01/06/20 08:21:20
El lun., 1 jun. 2020 a las 2:07, pooja.kamra (<pooja.kamra@newgen.co.in <ma...@newgen.co.in> >) escribió:
Sorry Maxim,
I have sent the wrong screenshot. I have used POST only.
Actually I am very new to REST APIs.
Please see below:
Regards,
Pooja
From: Maxim Solodovnik [mailto:solomax666@gmail.com <ma...@gmail.com> ]
Sent: 01 June 2020 12:26
To: Openmeetings user-list <user@openmeetings.apache.org <ma...@openmeetings.apache.org> >
Cc: nelson gomez <ngomezleal@gmail.com <ma...@gmail.com> >
Subject: Re: How to get room hash via REST
Example page clearly states the request should be made using POST
You sending GET and get the super clear error "Method not allowed" ....
On Mon, 1 Jun 2020 at 13:53, pooja.kamra <pooja.kamra@newgen.co.in <ma...@newgen.co.in> > wrote:
Hi Maxim,
I have already referred this link. But still getting issue as shown in screenshot.
Please help.
Regards,
Pooja
From: Maxim Solodovnik [mailto:solomax666@gmail.com <ma...@gmail.com> ]
Sent: 01 June 2020 11:34
To: Openmeetings user-list <user@openmeetings.apache.org <ma...@openmeetings.apache.org> >
Cc: nelson gomez <ngomezleal@gmail.com <ma...@gmail.com> >
Subject: Re: How to get room hash via REST
Here is the sample:
https://openmeetings.apache.org/RestAPISample.html
On Mon, 1 Jun 2020 at 13:03, pooja.kamra <pooja.kamra@newgen.co.in <ma...@newgen.co.in> > wrote:
Hi Nelson,
Which tool are you using to send REST APIs. If u are using Postman, please help me in this. When I am calling this REST api on my localhost, I am getting this error:
Please help.
Regards,
Pooja
From: Nelson Gomez [mailto:ngomezleal@gmail.com <ma...@gmail.com> ]
Sent: 31 May 2020 21:06
To: Openmeetings user-list <user@openmeetings.apache.org <ma...@openmeetings.apache.org> >; openmeetings-en-espanol@googlegroups.com <ma...@googlegroups.com>
Subject: How to get room hash via REST
Hello guys I hope your're very well.
Note: I'm doing requesting in local
I have a problem when I try catch Hash via rest. I did follow link https://openmeetings.apache.org/RestAPISample.html and I can get Authorized SID but it Not the Hash.
Structure Json
url: 'http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83',
type: 'POST',
data: {user: JSON.stringify({
firstname: 'Nelson',
lastname: 'Gomez',
externalId: 'uid1',
externalType: 'myCMS',
login: 'ngomezleal'
}),
options: JSON.stringify({
roomId: 5,
moderator: true,
showAudioVideoTest: true
})
},
dataType: "json",
Error in console
Access to XMLHttpRequest at 'http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
file3.html:49
Rooms actived
Can you help me please?
Regards,
Nelson
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
Sender notified by
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> Mailtrack 31/05/20 10:35:06
Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
--
Best regards,
Maxim
Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
--
Best regards,
Maxim
Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
--
A la espera de su valiosa respuesta, se despide,
<https://docs.google.com/uc?id=0B8kWmZLebfaRc2xrWEhvLV9PMlk&export=download>
Nelson Gomez
Gerente General
Develop & Design C.A
+58 414-6096796
http://www.develop-design.com.ve <http://www.develop-design.com.ve/>
<https://mailtrack.io/trace/mail/4026c3dc0c94354121f5613ed2518622b0e99d4f.png?u=4462814>
--
Best regards,
Maxim
Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
Re: How to get room hash via REST
Posted by Maxim Solodovnik <so...@gmail.com>.
Andthe additional question: why are you adding user?
Can just repeat the steps from example?
(from mobile, sorry for typos)
On Tue, Jun 2, 2020, 13:11 Maxim Solodovnik <so...@gmail.com> wrote:
> And the error in openmeetings.log is ....?
>
> (from mobile, sorry for typos)
>
> On Tue, Jun 2, 2020, 13:09 pooja.kamra <po...@newgen.co.in> wrote:
>
>> Same error. I have tested in chrome console to add user :
>>
>> $.ajax({
>>
>> method: "POST",
>>
>> url: "services/user?sid=66706560-2c66-4984-aead-6841aea34148",
>>
>> data: {user: JSON.stringify({
>>
>> firstname: 'John',
>>
>> lastname: 'Doe',
>>
>> externalId: 'uid1',
>>
>> externalType: 'myCMS',
>>
>> login: 'superjohn'
>>
>> }),
>>
>> confirm:false},
>>
>> dataType: "json"
>>
>> });
>>
>> Error is internal server error.
>>
>>
>>
>> Regards,
>>
>> Pooja
>>
>>
>>
>> *From:* Maxim Solodovnik [mailto:solomax666@gmail.com]
>> *Sent:* 02 June 2020 07:20
>> *To:* Openmeetings user-list <us...@openmeetings.apache.org>
>> *Cc:* pooja.kamra <po...@newgen.co.in>
>> *Subject:* Re: How to get room hash via REST
>>
>>
>>
>> The example from https://openmeetings.apache.org/RestAPISample.html
>> works from browser console
>>
>>
>>
>> the steps are:
>>
>> 1) open your favourite browser
>>
>> 2) open OM sign in page (DO NOT login)
>>
>> 3) open browser console
>>
>> 4) paste the code from example
>>
>>
>>
>> I have no idea what the postman is and have no time to investigate ....
>>
>>
>>
>>
>>
>> On Mon, 1 Jun 2020 at 20:22, Nelson Gomez <ng...@gmail.com> wrote:
>>
>> Hello, its the same, I'm using postman, but, I receive 400 error.
>>
>>
>>
>> [image: image.png]
>>
>>
>>
>> Can you connect?
>>
>>
>> Regards,
>>
>> Nelson
>>
>>
>>
>> [image: Mailtrack]
>> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
>>
>> Sender notified by
>> Mailtrack
>> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> 01/06/20
>> 08:21:20
>>
>>
>>
>> El lun., 1 jun. 2020 a las 2:07, pooja.kamra (<po...@newgen.co.in>)
>> escribió:
>>
>> Sorry Maxim,
>>
>> I have sent the wrong screenshot. I have used POST only.
>>
>> Actually I am very new to REST APIs.
>>
>> Please see below:
>>
>>
>>
>> Regards,
>>
>> Pooja
>>
>>
>>
>> *From:* Maxim Solodovnik [mailto:solomax666@gmail.com]
>> *Sent:* 01 June 2020 12:26
>> *To:* Openmeetings user-list <us...@openmeetings.apache.org>
>> *Cc:* nelson gomez <ng...@gmail.com>
>> *Subject:* Re: How to get room hash via REST
>>
>>
>>
>> Example page clearly states the request should be made using POST
>>
>>
>>
>> You sending GET and get the super clear error "Method not allowed" ....
>>
>>
>>
>> On Mon, 1 Jun 2020 at 13:53, pooja.kamra <po...@newgen.co.in>
>> wrote:
>>
>> Hi Maxim,
>>
>> I have already referred this link. But still getting issue as shown in
>> screenshot.
>>
>> Please help.
>>
>>
>>
>> Regards,
>>
>> Pooja
>>
>>
>>
>> *From:* Maxim Solodovnik [mailto:solomax666@gmail.com]
>> *Sent:* 01 June 2020 11:34
>> *To:* Openmeetings user-list <us...@openmeetings.apache.org>
>> *Cc:* nelson gomez <ng...@gmail.com>
>> *Subject:* Re: How to get room hash via REST
>>
>>
>>
>> Here is the sample:
>>
>>
>>
>> https://openmeetings.apache.org/RestAPISample.html
>>
>>
>>
>> On Mon, 1 Jun 2020 at 13:03, pooja.kamra <po...@newgen.co.in>
>> wrote:
>>
>> Hi Nelson,
>>
>>
>>
>> Which tool are you using to send REST APIs. If u are using Postman,
>> please help me in this. When I am calling this REST api on my localhost, I
>> am getting this error:
>>
>>
>>
>> Please help.
>>
>>
>>
>> Regards,
>>
>> Pooja
>>
>>
>>
>> *From:* Nelson Gomez [mailto:ngomezleal@gmail.com]
>> *Sent:* 31 May 2020 21:06
>> *To:* Openmeetings user-list <us...@openmeetings.apache.org>;
>> openmeetings-en-espanol@googlegroups.com
>> *Subject:* How to get room hash via REST
>>
>>
>>
>> Hello guys I hope your're very well.
>>
>>
>>
>> *Note: I'm doing requesting in local*
>>
>> *I have a problem when I try catch Hash via rest.* I did follow link
>> https://openmeetings.apache.org/RestAPISample.html and I can get
>> Authorized SID but it Not the Hash.
>>
>>
>>
>> *Structure Json*
>>
>>
>>
>> url: '
>> http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83
>> ',
>> type: 'POST',
>> data: {user: JSON.stringify({
>> firstname: 'Nelson',
>> lastname: 'Gomez',
>> externalId: 'uid1',
>> externalType: 'myCMS',
>> login: 'ngomezleal'
>> }),
>> options: JSON.stringify({
>> roomId: 5,
>> moderator: true,
>> showAudioVideoTest: true
>> })
>> },
>> dataType: "json",
>>
>>
>>
>> *Error in console*
>>
>> Access to XMLHttpRequest at '
>> http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83'
>> from origin 'null' has been blocked by CORS policy: No
>> 'Access-Control-Allow-Origin' header is present on the requested resource.
>> file3.html:49
>>
>>
>>
>> *Rooms actived*
>>
>> [image: image.png]
>>
>>
>>
>> Can you help me please?
>>
>>
>>
>> Regards,
>>
>> Nelson
>>
>>
>>
>> [image: Mailtrack]
>> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
>>
>> Sender notified by
>> Mailtrack
>> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> 31/05/20
>> 10:35:06
>>
>>
>>
>> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>> Best regards,
>> Maxim
>>
>>
>>
>> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>> Best regards,
>> Maxim
>>
>>
>>
>> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>> A la espera de su valiosa respuesta, se despide,
>>
>>
>>
>> Nelson Gomez
>> Gerente General
>> Develop & Design C.A
>> +58 414-6096796
>> http://www.develop-design.com.ve
>>
>>
>>
>>
>> --
>>
>> Best regards,
>> Maxim
>>
>> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>>
>>
>>
>>
>>
Re: How to get room hash via REST
Posted by Maxim Solodovnik <so...@gmail.com>.
And the error in openmeetings.log is ....?
(from mobile, sorry for typos)
On Tue, Jun 2, 2020, 13:09 pooja.kamra <po...@newgen.co.in> wrote:
> Same error. I have tested in chrome console to add user :
>
> $.ajax({
>
> method: "POST",
>
> url: "services/user?sid=66706560-2c66-4984-aead-6841aea34148",
>
> data: {user: JSON.stringify({
>
> firstname: 'John',
>
> lastname: 'Doe',
>
> externalId: 'uid1',
>
> externalType: 'myCMS',
>
> login: 'superjohn'
>
> }),
>
> confirm:false},
>
> dataType: "json"
>
> });
>
> Error is internal server error.
>
>
>
> Regards,
>
> Pooja
>
>
>
> *From:* Maxim Solodovnik [mailto:solomax666@gmail.com]
> *Sent:* 02 June 2020 07:20
> *To:* Openmeetings user-list <us...@openmeetings.apache.org>
> *Cc:* pooja.kamra <po...@newgen.co.in>
> *Subject:* Re: How to get room hash via REST
>
>
>
> The example from https://openmeetings.apache.org/RestAPISample.html works
> from browser console
>
>
>
> the steps are:
>
> 1) open your favourite browser
>
> 2) open OM sign in page (DO NOT login)
>
> 3) open browser console
>
> 4) paste the code from example
>
>
>
> I have no idea what the postman is and have no time to investigate ....
>
>
>
>
>
> On Mon, 1 Jun 2020 at 20:22, Nelson Gomez <ng...@gmail.com> wrote:
>
> Hello, its the same, I'm using postman, but, I receive 400 error.
>
>
>
> [image: image.png]
>
>
>
> Can you connect?
>
>
> Regards,
>
> Nelson
>
>
>
> [image: Mailtrack]
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
>
> Sender notified by
> Mailtrack
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> 01/06/20
> 08:21:20
>
>
>
> El lun., 1 jun. 2020 a las 2:07, pooja.kamra (<po...@newgen.co.in>)
> escribió:
>
> Sorry Maxim,
>
> I have sent the wrong screenshot. I have used POST only.
>
> Actually I am very new to REST APIs.
>
> Please see below:
>
>
>
> Regards,
>
> Pooja
>
>
>
> *From:* Maxim Solodovnik [mailto:solomax666@gmail.com]
> *Sent:* 01 June 2020 12:26
> *To:* Openmeetings user-list <us...@openmeetings.apache.org>
> *Cc:* nelson gomez <ng...@gmail.com>
> *Subject:* Re: How to get room hash via REST
>
>
>
> Example page clearly states the request should be made using POST
>
>
>
> You sending GET and get the super clear error "Method not allowed" ....
>
>
>
> On Mon, 1 Jun 2020 at 13:53, pooja.kamra <po...@newgen.co.in> wrote:
>
> Hi Maxim,
>
> I have already referred this link. But still getting issue as shown in
> screenshot.
>
> Please help.
>
>
>
> Regards,
>
> Pooja
>
>
>
> *From:* Maxim Solodovnik [mailto:solomax666@gmail.com]
> *Sent:* 01 June 2020 11:34
> *To:* Openmeetings user-list <us...@openmeetings.apache.org>
> *Cc:* nelson gomez <ng...@gmail.com>
> *Subject:* Re: How to get room hash via REST
>
>
>
> Here is the sample:
>
>
>
> https://openmeetings.apache.org/RestAPISample.html
>
>
>
> On Mon, 1 Jun 2020 at 13:03, pooja.kamra <po...@newgen.co.in> wrote:
>
> Hi Nelson,
>
>
>
> Which tool are you using to send REST APIs. If u are using Postman, please
> help me in this. When I am calling this REST api on my localhost, I am
> getting this error:
>
>
>
> Please help.
>
>
>
> Regards,
>
> Pooja
>
>
>
> *From:* Nelson Gomez [mailto:ngomezleal@gmail.com]
> *Sent:* 31 May 2020 21:06
> *To:* Openmeetings user-list <us...@openmeetings.apache.org>;
> openmeetings-en-espanol@googlegroups.com
> *Subject:* How to get room hash via REST
>
>
>
> Hello guys I hope your're very well.
>
>
>
> *Note: I'm doing requesting in local*
>
> *I have a problem when I try catch Hash via rest.* I did follow link
> https://openmeetings.apache.org/RestAPISample.html and I can get
> Authorized SID but it Not the Hash.
>
>
>
> *Structure Json*
>
>
>
> url: '
> http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83
> ',
> type: 'POST',
> data: {user: JSON.stringify({
> firstname: 'Nelson',
> lastname: 'Gomez',
> externalId: 'uid1',
> externalType: 'myCMS',
> login: 'ngomezleal'
> }),
> options: JSON.stringify({
> roomId: 5,
> moderator: true,
> showAudioVideoTest: true
> })
> },
> dataType: "json",
>
>
>
> *Error in console*
>
> Access to XMLHttpRequest at '
> http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83'
> from origin 'null' has been blocked by CORS policy: No
> 'Access-Control-Allow-Origin' header is present on the requested resource.
> file3.html:49
>
>
>
> *Rooms actived*
>
> [image: image.png]
>
>
>
> Can you help me please?
>
>
>
> Regards,
>
> Nelson
>
>
>
> [image: Mailtrack]
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
>
> Sender notified by
> Mailtrack
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> 31/05/20
> 10:35:06
>
>
>
> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>
>
>
>
>
>
>
>
>
>
> --
>
> Best regards,
> Maxim
>
>
>
> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>
>
>
>
>
>
>
>
>
>
> --
>
> Best regards,
> Maxim
>
>
>
> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>
>
>
>
>
>
>
>
>
>
> --
>
> A la espera de su valiosa respuesta, se despide,
>
>
>
> Nelson Gomez
> Gerente General
> Develop & Design C.A
> +58 414-6096796
> http://www.develop-design.com.ve
>
>
>
>
> --
>
> Best regards,
> Maxim
>
> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>
>
>
>
>
RE: How to get room hash via REST
Posted by "pooja.kamra" <po...@newgen.co.in>.
Same error. I have tested in chrome console to add user :
$.ajax({
method: "POST",
url: "services/user?sid=66706560-2c66-4984-aead-6841aea34148",
data: {user: JSON.stringify({
firstname: 'John',
lastname: 'Doe',
externalId: 'uid1',
externalType: 'myCMS',
login: 'superjohn'
}),
confirm:false},
dataType: "json"
});
Error is internal server error.
Regards,
Pooja
From: Maxim Solodovnik [mailto:solomax666@gmail.com]
Sent: 02 June 2020 07:20
To: Openmeetings user-list <us...@openmeetings.apache.org>
Cc: pooja.kamra <po...@newgen.co.in>
Subject: Re: How to get room hash via REST
The example from https://openmeetings.apache.org/RestAPISample.html works from browser console
the steps are:
1) open your favourite browser
2) open OM sign in page (DO NOT login)
3) open browser console
4) paste the code from example
I have no idea what the postman is and have no time to investigate ....
On Mon, 1 Jun 2020 at 20:22, Nelson Gomez <ngomezleal@gmail.com <ma...@gmail.com> > wrote:
Hello, its the same, I'm using postman, but, I receive 400 error.
Can you connect?
Regards,
Nelson
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
Sender notified by
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> Mailtrack 01/06/20 08:21:20
El lun., 1 jun. 2020 a las 2:07, pooja.kamra (<pooja.kamra@newgen.co.in <ma...@newgen.co.in> >) escribió:
Sorry Maxim,
I have sent the wrong screenshot. I have used POST only.
Actually I am very new to REST APIs.
Please see below:
Regards,
Pooja
From: Maxim Solodovnik [mailto:solomax666@gmail.com <ma...@gmail.com> ]
Sent: 01 June 2020 12:26
To: Openmeetings user-list <user@openmeetings.apache.org <ma...@openmeetings.apache.org> >
Cc: nelson gomez <ngomezleal@gmail.com <ma...@gmail.com> >
Subject: Re: How to get room hash via REST
Example page clearly states the request should be made using POST
You sending GET and get the super clear error "Method not allowed" ....
On Mon, 1 Jun 2020 at 13:53, pooja.kamra <pooja.kamra@newgen.co.in <ma...@newgen.co.in> > wrote:
Hi Maxim,
I have already referred this link. But still getting issue as shown in screenshot.
Please help.
Regards,
Pooja
From: Maxim Solodovnik [mailto:solomax666@gmail.com <ma...@gmail.com> ]
Sent: 01 June 2020 11:34
To: Openmeetings user-list <user@openmeetings.apache.org <ma...@openmeetings.apache.org> >
Cc: nelson gomez <ngomezleal@gmail.com <ma...@gmail.com> >
Subject: Re: How to get room hash via REST
Here is the sample:
https://openmeetings.apache.org/RestAPISample.html
On Mon, 1 Jun 2020 at 13:03, pooja.kamra <pooja.kamra@newgen.co.in <ma...@newgen.co.in> > wrote:
Hi Nelson,
Which tool are you using to send REST APIs. If u are using Postman, please help me in this. When I am calling this REST api on my localhost, I am getting this error:
Please help.
Regards,
Pooja
From: Nelson Gomez [mailto:ngomezleal@gmail.com <ma...@gmail.com> ]
Sent: 31 May 2020 21:06
To: Openmeetings user-list <user@openmeetings.apache.org <ma...@openmeetings.apache.org> >; openmeetings-en-espanol@googlegroups.com <ma...@googlegroups.com>
Subject: How to get room hash via REST
Hello guys I hope your're very well.
Note: I'm doing requesting in local
I have a problem when I try catch Hash via rest. I did follow link https://openmeetings.apache.org/RestAPISample.html and I can get Authorized SID but it Not the Hash.
Structure Json
url: 'http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83',
type: 'POST',
data: {user: JSON.stringify({
firstname: 'Nelson',
lastname: 'Gomez',
externalId: 'uid1',
externalType: 'myCMS',
login: 'ngomezleal'
}),
options: JSON.stringify({
roomId: 5,
moderator: true,
showAudioVideoTest: true
})
},
dataType: "json",
Error in console
Access to XMLHttpRequest at 'http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
file3.html:49
Rooms actived
Can you help me please?
Regards,
Nelson
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
Sender notified by
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> Mailtrack 31/05/20 10:35:06
Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
--
Best regards,
Maxim
Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
--
Best regards,
Maxim
Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
--
A la espera de su valiosa respuesta, se despide,
<https://docs.google.com/uc?id=0B8kWmZLebfaRc2xrWEhvLV9PMlk&export=download>
Nelson Gomez
Gerente General
Develop & Design C.A
+58 414-6096796
http://www.develop-design.com.ve <http://www.develop-design.com.ve/>
<https://mailtrack.io/trace/mail/4026c3dc0c94354121f5613ed2518622b0e99d4f.png?u=4462814>
--
Best regards,
Maxim
Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
Re: How to get room hash via REST
Posted by Maxim Solodovnik <so...@gmail.com>.
The example from https://openmeetings.apache.org/RestAPISample.html works
from browser console
the steps are:
1) open your favourite browser
2) open OM sign in page (DO NOT login)
3) open browser console
4) paste the code from example
I have no idea what the postman is and have no time to investigate ....
On Mon, 1 Jun 2020 at 20:22, Nelson Gomez <ng...@gmail.com> wrote:
> Hello, its the same, I'm using postman, but, I receive 400 error.
>
> [image: image.png]
>
> Can you connect?
>
> Regards,
> Nelson
>
>
>
> [image: Mailtrack]
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> Sender
> notified by
> Mailtrack
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> 01/06/20
> 08:21:20
>
> El lun., 1 jun. 2020 a las 2:07, pooja.kamra (<po...@newgen.co.in>)
> escribió:
>
>> Sorry Maxim,
>>
>> I have sent the wrong screenshot. I have used POST only.
>>
>> Actually I am very new to REST APIs.
>>
>> Please see below:
>>
>>
>>
>> Regards,
>>
>> Pooja
>>
>>
>>
>> *From:* Maxim Solodovnik [mailto:solomax666@gmail.com]
>> *Sent:* 01 June 2020 12:26
>> *To:* Openmeetings user-list <us...@openmeetings.apache.org>
>> *Cc:* nelson gomez <ng...@gmail.com>
>> *Subject:* Re: How to get room hash via REST
>>
>>
>>
>> Example page clearly states the request should be made using POST
>>
>>
>>
>> You sending GET and get the super clear error "Method not allowed" ....
>>
>>
>>
>> On Mon, 1 Jun 2020 at 13:53, pooja.kamra <po...@newgen.co.in>
>> wrote:
>>
>> Hi Maxim,
>>
>> I have already referred this link. But still getting issue as shown in
>> screenshot.
>>
>> Please help.
>>
>>
>>
>> Regards,
>>
>> Pooja
>>
>>
>>
>> *From:* Maxim Solodovnik [mailto:solomax666@gmail.com]
>> *Sent:* 01 June 2020 11:34
>> *To:* Openmeetings user-list <us...@openmeetings.apache.org>
>> *Cc:* nelson gomez <ng...@gmail.com>
>> *Subject:* Re: How to get room hash via REST
>>
>>
>>
>> Here is the sample:
>>
>>
>>
>> https://openmeetings.apache.org/RestAPISample.html
>>
>>
>>
>> On Mon, 1 Jun 2020 at 13:03, pooja.kamra <po...@newgen.co.in>
>> wrote:
>>
>> Hi Nelson,
>>
>>
>>
>> Which tool are you using to send REST APIs. If u are using Postman,
>> please help me in this. When I am calling this REST api on my localhost, I
>> am getting this error:
>>
>>
>>
>> Please help.
>>
>>
>>
>> Regards,
>>
>> Pooja
>>
>>
>>
>> *From:* Nelson Gomez [mailto:ngomezleal@gmail.com]
>> *Sent:* 31 May 2020 21:06
>> *To:* Openmeetings user-list <us...@openmeetings.apache.org>;
>> openmeetings-en-espanol@googlegroups.com
>> *Subject:* How to get room hash via REST
>>
>>
>>
>> Hello guys I hope your're very well.
>>
>>
>>
>> *Note: I'm doing requesting in local*
>>
>> *I have a problem when I try catch Hash via rest.* I did follow link
>> https://openmeetings.apache.org/RestAPISample.html and I can get
>> Authorized SID but it Not the Hash.
>>
>>
>>
>> *Structure Json*
>>
>>
>>
>> url: '
>> http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83
>> ',
>> type: 'POST',
>> data: {user: JSON.stringify({
>> firstname: 'Nelson',
>> lastname: 'Gomez',
>> externalId: 'uid1',
>> externalType: 'myCMS',
>> login: 'ngomezleal'
>> }),
>> options: JSON.stringify({
>> roomId: 5,
>> moderator: true,
>> showAudioVideoTest: true
>> })
>> },
>> dataType: "json",
>>
>>
>>
>> *Error in console*
>>
>> Access to XMLHttpRequest at '
>> http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83'
>> from origin 'null' has been blocked by CORS policy: No
>> 'Access-Control-Allow-Origin' header is present on the requested resource.
>> file3.html:49
>>
>>
>>
>> *Rooms actived*
>>
>> [image: image.png]
>>
>>
>>
>> Can you help me please?
>>
>>
>>
>> Regards,
>>
>> Nelson
>>
>>
>>
>> [image: Mailtrack]
>> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
>>
>> Sender notified by
>> Mailtrack
>> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> 31/05/20
>> 10:35:06
>>
>>
>>
>> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>> Best regards,
>> Maxim
>>
>>
>>
>> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>> Best regards,
>> Maxim
>>
>> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>>
>>
>>
>>
>>
>
> --
> A la espera de su valiosa respuesta, se despide,
>
>
> Nelson Gomez
> Gerente General
> Develop & Design C.A
> +58 414-6096796
> http://www.develop-design.com.ve
>
--
Best regards,
Maxim
Re: How to get room hash via REST
Posted by Nelson Gomez <ng...@gmail.com>.
Hello, its the same, I'm using postman, but, I receive 400 error.
[image: image.png]
Can you connect?
Regards,
Nelson
[image: Mailtrack]
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
Sender
notified by
Mailtrack
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
01/06/20
08:21:20
El lun., 1 jun. 2020 a las 2:07, pooja.kamra (<po...@newgen.co.in>)
escribió:
> Sorry Maxim,
>
> I have sent the wrong screenshot. I have used POST only.
>
> Actually I am very new to REST APIs.
>
> Please see below:
>
>
>
> Regards,
>
> Pooja
>
>
>
> *From:* Maxim Solodovnik [mailto:solomax666@gmail.com]
> *Sent:* 01 June 2020 12:26
> *To:* Openmeetings user-list <us...@openmeetings.apache.org>
> *Cc:* nelson gomez <ng...@gmail.com>
> *Subject:* Re: How to get room hash via REST
>
>
>
> Example page clearly states the request should be made using POST
>
>
>
> You sending GET and get the super clear error "Method not allowed" ....
>
>
>
> On Mon, 1 Jun 2020 at 13:53, pooja.kamra <po...@newgen.co.in> wrote:
>
> Hi Maxim,
>
> I have already referred this link. But still getting issue as shown in
> screenshot.
>
> Please help.
>
>
>
> Regards,
>
> Pooja
>
>
>
> *From:* Maxim Solodovnik [mailto:solomax666@gmail.com]
> *Sent:* 01 June 2020 11:34
> *To:* Openmeetings user-list <us...@openmeetings.apache.org>
> *Cc:* nelson gomez <ng...@gmail.com>
> *Subject:* Re: How to get room hash via REST
>
>
>
> Here is the sample:
>
>
>
> https://openmeetings.apache.org/RestAPISample.html
>
>
>
> On Mon, 1 Jun 2020 at 13:03, pooja.kamra <po...@newgen.co.in> wrote:
>
> Hi Nelson,
>
>
>
> Which tool are you using to send REST APIs. If u are using Postman, please
> help me in this. When I am calling this REST api on my localhost, I am
> getting this error:
>
>
>
> Please help.
>
>
>
> Regards,
>
> Pooja
>
>
>
> *From:* Nelson Gomez [mailto:ngomezleal@gmail.com]
> *Sent:* 31 May 2020 21:06
> *To:* Openmeetings user-list <us...@openmeetings.apache.org>;
> openmeetings-en-espanol@googlegroups.com
> *Subject:* How to get room hash via REST
>
>
>
> Hello guys I hope your're very well.
>
>
>
> *Note: I'm doing requesting in local*
>
> *I have a problem when I try catch Hash via rest.* I did follow link
> https://openmeetings.apache.org/RestAPISample.html and I can get
> Authorized SID but it Not the Hash.
>
>
>
> *Structure Json*
>
>
>
> url: '
> http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83
> ',
> type: 'POST',
> data: {user: JSON.stringify({
> firstname: 'Nelson',
> lastname: 'Gomez',
> externalId: 'uid1',
> externalType: 'myCMS',
> login: 'ngomezleal'
> }),
> options: JSON.stringify({
> roomId: 5,
> moderator: true,
> showAudioVideoTest: true
> })
> },
> dataType: "json",
>
>
>
> *Error in console*
>
> Access to XMLHttpRequest at '
> http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83'
> from origin 'null' has been blocked by CORS policy: No
> 'Access-Control-Allow-Origin' header is present on the requested resource.
> file3.html:49
>
>
>
> *Rooms actived*
>
> [image: image.png]
>
>
>
> Can you help me please?
>
>
>
> Regards,
>
> Nelson
>
>
>
> [image: Mailtrack]
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
>
> Sender notified by
> Mailtrack
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> 31/05/20
> 10:35:06
>
>
>
> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>
>
>
>
>
>
>
>
>
>
> --
>
> Best regards,
> Maxim
>
>
>
> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>
>
>
>
>
>
>
>
>
>
> --
>
> Best regards,
> Maxim
>
> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>
>
>
>
>
--
A la espera de su valiosa respuesta, se despide,
Nelson Gomez
Gerente General
Develop & Design C.A
+58 414-6096796
http://www.develop-design.com.ve
RE: How to get room hash via REST
Posted by "pooja.kamra" <po...@newgen.co.in>.
Sorry Maxim,
I have sent the wrong screenshot. I have used POST only.
Actually I am very new to REST APIs.
Please see below:
Regards,
Pooja
From: Maxim Solodovnik [mailto:solomax666@gmail.com]
Sent: 01 June 2020 12:26
To: Openmeetings user-list <us...@openmeetings.apache.org>
Cc: nelson gomez <ng...@gmail.com>
Subject: Re: How to get room hash via REST
Example page clearly states the request should be made using POST
You sending GET and get the super clear error "Method not allowed" ....
On Mon, 1 Jun 2020 at 13:53, pooja.kamra <pooja.kamra@newgen.co.in <ma...@newgen.co.in> > wrote:
Hi Maxim,
I have already referred this link. But still getting issue as shown in screenshot.
Please help.
Regards,
Pooja
From: Maxim Solodovnik [mailto:solomax666@gmail.com <ma...@gmail.com> ]
Sent: 01 June 2020 11:34
To: Openmeetings user-list <user@openmeetings.apache.org <ma...@openmeetings.apache.org> >
Cc: nelson gomez <ngomezleal@gmail.com <ma...@gmail.com> >
Subject: Re: How to get room hash via REST
Here is the sample:
https://openmeetings.apache.org/RestAPISample.html
On Mon, 1 Jun 2020 at 13:03, pooja.kamra <pooja.kamra@newgen.co.in <ma...@newgen.co.in> > wrote:
Hi Nelson,
Which tool are you using to send REST APIs. If u are using Postman, please help me in this. When I am calling this REST api on my localhost, I am getting this error:
Please help.
Regards,
Pooja
From: Nelson Gomez [mailto:ngomezleal@gmail.com <ma...@gmail.com> ]
Sent: 31 May 2020 21:06
To: Openmeetings user-list <user@openmeetings.apache.org <ma...@openmeetings.apache.org> >; openmeetings-en-espanol@googlegroups.com <ma...@googlegroups.com>
Subject: How to get room hash via REST
Hello guys I hope your're very well.
Note: I'm doing requesting in local
I have a problem when I try catch Hash via rest. I did follow link https://openmeetings.apache.org/RestAPISample.html and I can get Authorized SID but it Not the Hash.
Structure Json
url: 'http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83',
type: 'POST',
data: {user: JSON.stringify({
firstname: 'Nelson',
lastname: 'Gomez',
externalId: 'uid1',
externalType: 'myCMS',
login: 'ngomezleal'
}),
options: JSON.stringify({
roomId: 5,
moderator: true,
showAudioVideoTest: true
})
},
dataType: "json",
Error in console
Access to XMLHttpRequest at 'http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
file3.html:49
Rooms actived
Can you help me please?
Regards,
Nelson
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
Sender notified by
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> Mailtrack 31/05/20 10:35:06
<https://mailtrack.io/trace/mail/9d469529981c15f5ac417db642bf1bdc156d65f2.png?u=4462814>
Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
--
Best regards,
Maxim
Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
--
Best regards,
Maxim
Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
Re: How to get room hash via REST
Posted by Maxim Solodovnik <so...@gmail.com>.
Example page clearly states the request should be made using POST
You sending GET and get the super clear error "Method not allowed" ....
On Mon, 1 Jun 2020 at 13:53, pooja.kamra <po...@newgen.co.in> wrote:
> Hi Maxim,
>
> I have already referred this link. But still getting issue as shown in
> screenshot.
>
> Please help.
>
>
>
> Regards,
>
> Pooja
>
>
>
> *From:* Maxim Solodovnik [mailto:solomax666@gmail.com]
> *Sent:* 01 June 2020 11:34
> *To:* Openmeetings user-list <us...@openmeetings.apache.org>
> *Cc:* nelson gomez <ng...@gmail.com>
> *Subject:* Re: How to get room hash via REST
>
>
>
> Here is the sample:
>
>
>
> https://openmeetings.apache.org/RestAPISample.html
>
>
>
> On Mon, 1 Jun 2020 at 13:03, pooja.kamra <po...@newgen.co.in> wrote:
>
> Hi Nelson,
>
>
>
> Which tool are you using to send REST APIs. If u are using Postman, please
> help me in this. When I am calling this REST api on my localhost, I am
> getting this error:
>
>
>
> Please help.
>
>
>
> Regards,
>
> Pooja
>
>
>
> *From:* Nelson Gomez [mailto:ngomezleal@gmail.com]
> *Sent:* 31 May 2020 21:06
> *To:* Openmeetings user-list <us...@openmeetings.apache.org>;
> openmeetings-en-espanol@googlegroups.com
> *Subject:* How to get room hash via REST
>
>
>
> Hello guys I hope your're very well.
>
>
>
> *Note: I'm doing requesting in local*
>
> *I have a problem when I try catch Hash via rest.* I did follow link
> https://openmeetings.apache.org/RestAPISample.html and I can get
> Authorized SID but it Not the Hash.
>
>
>
> *Structure Json*
>
>
>
> url: '
> http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83
> ',
> type: 'POST',
> data: {user: JSON.stringify({
> firstname: 'Nelson',
> lastname: 'Gomez',
> externalId: 'uid1',
> externalType: 'myCMS',
> login: 'ngomezleal'
> }),
> options: JSON.stringify({
> roomId: 5,
> moderator: true,
> showAudioVideoTest: true
> })
> },
> dataType: "json",
>
>
>
> *Error in console*
>
> Access to XMLHttpRequest at '
> http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83'
> from origin 'null' has been blocked by CORS policy: No
> 'Access-Control-Allow-Origin' header is present on the requested resource.
> file3.html:49
>
>
>
> *Rooms actived*
>
> [image: image.png]
>
>
>
> Can you help me please?
>
>
>
> Regards,
>
> Nelson
>
>
>
> [image: Mailtrack]
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
>
> Sender notified by
> Mailtrack
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> 31/05/20
> 10:35:06
>
>
>
> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>
>
>
>
>
>
>
>
>
>
> --
>
> Best regards,
> Maxim
>
> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>
>
>
>
>
--
Best regards,
Maxim
RE: How to get room hash via REST
Posted by "pooja.kamra" <po...@newgen.co.in>.
Hi Maxim,
I have already referred this link. But still getting issue as shown in screenshot.
Please help.
Regards,
Pooja
From: Maxim Solodovnik [mailto:solomax666@gmail.com]
Sent: 01 June 2020 11:34
To: Openmeetings user-list <us...@openmeetings.apache.org>
Cc: nelson gomez <ng...@gmail.com>
Subject: Re: How to get room hash via REST
Here is the sample:
https://openmeetings.apache.org/RestAPISample.html
On Mon, 1 Jun 2020 at 13:03, pooja.kamra <pooja.kamra@newgen.co.in <ma...@newgen.co.in> > wrote:
Hi Nelson,
Which tool are you using to send REST APIs. If u are using Postman, please help me in this. When I am calling this REST api on my localhost, I am getting this error:
Please help.
Regards,
Pooja
From: Nelson Gomez [mailto:ngomezleal@gmail.com <ma...@gmail.com> ]
Sent: 31 May 2020 21:06
To: Openmeetings user-list <user@openmeetings.apache.org <ma...@openmeetings.apache.org> >; openmeetings-en-espanol@googlegroups.com <ma...@googlegroups.com>
Subject: How to get room hash via REST
Hello guys I hope your're very well.
Note: I'm doing requesting in local
I have a problem when I try catch Hash via rest. I did follow link https://openmeetings.apache.org/RestAPISample.html and I can get Authorized SID but it Not the Hash.
Structure Json
url: 'http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83',
type: 'POST',
data: {user: JSON.stringify({
firstname: 'Nelson',
lastname: 'Gomez',
externalId: 'uid1',
externalType: 'myCMS',
login: 'ngomezleal'
}),
options: JSON.stringify({
roomId: 5,
moderator: true,
showAudioVideoTest: true
})
},
dataType: "json",
Error in console
Access to XMLHttpRequest at 'http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
file3.html:49
Rooms actived
Can you help me please?
Regards,
Nelson
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
Sender notified by
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> Mailtrack 31/05/20 10:35:06
<https://mailtrack.io/trace/mail/9d469529981c15f5ac417db642bf1bdc156d65f2.png?u=4462814>
Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
--
Best regards,
Maxim
Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
Re: How to get room hash via REST
Posted by Maxim Solodovnik <so...@gmail.com>.
Here is the sample:
https://openmeetings.apache.org/RestAPISample.html
On Mon, 1 Jun 2020 at 13:03, pooja.kamra <po...@newgen.co.in> wrote:
> Hi Nelson,
>
>
>
> Which tool are you using to send REST APIs. If u are using Postman, please
> help me in this. When I am calling this REST api on my localhost, I am
> getting this error:
>
>
>
> Please help.
>
>
>
> Regards,
>
> Pooja
>
>
>
> *From:* Nelson Gomez [mailto:ngomezleal@gmail.com]
> *Sent:* 31 May 2020 21:06
> *To:* Openmeetings user-list <us...@openmeetings.apache.org>;
> openmeetings-en-espanol@googlegroups.com
> *Subject:* How to get room hash via REST
>
>
>
> Hello guys I hope your're very well.
>
>
>
> *Note: I'm doing requesting in local*
>
> *I have a problem when I try catch Hash via rest.* I did follow link
> https://openmeetings.apache.org/RestAPISample.html and I can get
> Authorized SID but it Not the Hash.
>
>
>
> *Structure Json*
>
>
>
> url: '
> http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83
> ',
> type: 'POST',
> data: {user: JSON.stringify({
> firstname: 'Nelson',
> lastname: 'Gomez',
> externalId: 'uid1',
> externalType: 'myCMS',
> login: 'ngomezleal'
> }),
> options: JSON.stringify({
> roomId: 5,
> moderator: true,
> showAudioVideoTest: true
> })
> },
> dataType: "json",
>
>
>
> *Error in console*
>
> Access to XMLHttpRequest at '
> http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83'
> from origin 'null' has been blocked by CORS policy: No
> 'Access-Control-Allow-Origin' header is present on the requested resource.
> file3.html:49
>
>
>
> *Rooms actived*
>
> [image: image.png]
>
>
>
> Can you help me please?
>
>
>
> Regards,
>
> Nelson
>
>
>
> [image: Mailtrack]
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
>
> Sender notified by
> Mailtrack
> <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> 31/05/20
> 10:35:06
>
>
> Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.
>
>
>
>
>
--
Best regards,
Maxim
RE: How to get room hash via REST
Posted by "pooja.kamra" <po...@newgen.co.in>.
Hi Nelson,
Which tool are you using to send REST APIs. If u are using Postman, please help me in this. When I am calling this REST api on my localhost, I am getting this error:
Please help.
Regards,
Pooja
From: Nelson Gomez [mailto:ngomezleal@gmail.com]
Sent: 31 May 2020 21:06
To: Openmeetings user-list <us...@openmeetings.apache.org>; openmeetings-en-espanol@googlegroups.com
Subject: How to get room hash via REST
Hello guys I hope your're very well.
Note: I'm doing requesting in local
I have a problem when I try catch Hash via rest. I did follow link https://openmeetings.apache.org/RestAPISample.html and I can get Authorized SID but it Not the Hash.
Structure Json
url: 'http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83',
type: 'POST',
data: {user: JSON.stringify({
firstname: 'Nelson',
lastname: 'Gomez',
externalId: 'uid1',
externalType: 'myCMS',
login: 'ngomezleal'
}),
options: JSON.stringify({
roomId: 5,
moderator: true,
showAudioVideoTest: true
})
},
dataType: "json",
Error in console
Access to XMLHttpRequest at 'http://34.229.137.116:5080/services/user/hash?sid=6c41a005-0743-490f-8ed8-86d7a7f46a83' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
file3.html:49
Rooms actived
Can you help me please?
Regards,
Nelson
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
Sender notified by
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&> Mailtrack 31/05/20 10:35:06
<https://mailtrack.io/trace/mail/9d469529981c15f5ac417db642bf1bdc156d65f2.png?u=4462814>
Disclaimer :- This e-mail and any attachment may contain confidential, proprietary or legally privileged information. If you are not the original intended recipient and have erroneously received this message, you are prohibited from using, copying, altering or disclosing the content of this message. Please delete it immediately and notify the sender. Newgen Software Technologies Ltd (NSTL) accepts no responsibilities for loss or damage arising from the use of the information transmitted by this email including damages from virus and further acknowledges that no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of NSTL.