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:[email protected]] Sent: 02 June 2020 11:44 To: pooja.kamra <[email protected]> Cc: Openmeetings user-list <[email protected]> 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 <[email protected] <mailto:[email protected]> > wrote: And the error in openmeetings.log is ....? (from mobile, sorry for typos) On Tue, Jun 2, 2020, 13:09 pooja.kamra <[email protected] <mailto:[email protected]> > 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:[email protected] <mailto:[email protected]> ] Sent: 02 June 2020 07:20 To: Openmeetings user-list <[email protected] <mailto:[email protected]> > Cc: pooja.kamra <[email protected] <mailto:[email protected]> > 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 <[email protected] <mailto:[email protected]> > 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 (<[email protected] <mailto:[email protected]> >) 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:[email protected] <mailto:[email protected]> ] Sent: 01 June 2020 12:26 To: Openmeetings user-list <[email protected] <mailto:[email protected]> > Cc: nelson gomez <[email protected] <mailto:[email protected]> > 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 <[email protected] <mailto:[email protected]> > 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:[email protected] <mailto:[email protected]> ] Sent: 01 June 2020 11:34 To: Openmeetings user-list <[email protected] <mailto:[email protected]> > Cc: nelson gomez <[email protected] <mailto:[email protected]> > 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 <[email protected] <mailto:[email protected]> > 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:[email protected] <mailto:[email protected]> ] Sent: 31 May 2020 21:06 To: Openmeetings user-list <[email protected] <mailto:[email protected]> >; [email protected] <mailto:[email protected]> 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.
