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:solomax...@gmail.com] Sent: 02 June 2020 11:44 To: pooja.kamra <pooja.ka...@newgen.co.in> Cc: Openmeetings user-list <user@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 <solomax...@gmail.com <mailto:solomax...@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.ka...@newgen.co.in <mailto:pooja.ka...@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:solomax...@gmail.com <mailto:solomax...@gmail.com> ] Sent: 02 June 2020 07:20 To: Openmeetings user-list <user@openmeetings.apache.org <mailto:user@openmeetings.apache.org> > Cc: pooja.kamra <pooja.ka...@newgen.co.in <mailto:pooja.ka...@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 <ngomezl...@gmail.com <mailto:ngomezl...@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.ka...@newgen.co.in <mailto:pooja.ka...@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:solomax...@gmail.com <mailto:solomax...@gmail.com> ] Sent: 01 June 2020 12:26 To: Openmeetings user-list <user@openmeetings.apache.org <mailto:user@openmeetings.apache.org> > Cc: nelson gomez <ngomezl...@gmail.com <mailto:ngomezl...@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.ka...@newgen.co.in <mailto:pooja.ka...@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:solomax...@gmail.com <mailto:solomax...@gmail.com> ] Sent: 01 June 2020 11:34 To: Openmeetings user-list <user@openmeetings.apache.org <mailto:user@openmeetings.apache.org> > Cc: nelson gomez <ngomezl...@gmail.com <mailto:ngomezl...@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.ka...@newgen.co.in <mailto:pooja.ka...@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:ngomezl...@gmail.com <mailto:ngomezl...@gmail.com> ] Sent: 31 May 2020 21:06 To: Openmeetings user-list <user@openmeetings.apache.org <mailto:user@openmeetings.apache.org> >; openmeetings-en-espa...@googlegroups.com <mailto:openmeetings-en-espa...@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.