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