Yep, But don't grab Moodle plugin, grab php-api :) WBR, Maxim (from mobile, sorry for the typos)
On Jul 18, 2016 16:59, "Ben Lewis" <[email protected]> wrote: > Ok, starting to piece this together, so I want to grab those moddle > plugins, add them to my Chamilo plugins then create a config array, gateway > instance, get room hash, then launch? > > On 17 July 2016 at 16:36, Maxim Solodovnik <[email protected]> wrote: > >> Hello Ben, >> >> this is PHP API, you ned to use it from your PHP Chamilo plugin >> >> you need to >> 1) append these >> https://github.com/openmeetings/openmeetings-api-plugin/tree/master/src/main/scripts >> files to your project >> 2) create config array >> https://github.com/openmeetings/openmeetings-moodle-plugin/blob/083a442f3c393b16d05183faf6687043b3dbc30c/lib.php#L81 >> 3) create instance of OmGateway >> https://github.com/openmeetings/openmeetings-moodle-plugin/blob/083a442f3c393b16d05183faf6687043b3dbc30c/renderer.php#L114 >> 4) get room hash >> https://github.com/openmeetings/openmeetings-moodle-plugin/blob/083a442f3c393b16d05183faf6687043b3dbc30c/renderer.php#L122 >> ($gateway->getSecureHash) >> 5) open OM using "http://localhost:5080/openmeetings/swf?&secureHash=" . >> $hash . "&scopeRoomId=" . $room_id . "&language=" . $language; >> >> will update github in case these instructions are useful >> >> On Sun, Jul 17, 2016 at 4:26 AM, Ben Lewis <[email protected]> >> wrote: >> >>> Maxim, >>> I've looked through the source code, and not being a developer, i have >>> no idea how I am supposed to import this into openmeetings and or use it. >>> Do you have any documentation? >>> >>> On 15 July 2016 at 20:22, Ben Lewis <[email protected]> wrote: >>> >>>> Documentation on how the API works :) >>>> >>>> >>>> On 15 July 2016 at 19:34, Maxim Solodovnik <[email protected]> >>>> wrote: >>>> >>>>> documentation on how to contribute? >>>>> >>>>> 1) create JIRA ticket: attach the patch >>>>> or >>>>> 2) write to dev@ mailing list in text how something can be improved, >>>>> I'll try to handle ASAP .... >>>>> >>>>> or documentation on how to use PHP API? >>>>> >>>>> On Fri, Jul 15, 2016 at 3:32 PM, Ben Lewis <[email protected]> >>>>> wrote: >>>>> >>>>>> got any documentation? :) >>>>>> >>>>>> >>>>>> On 15 July 2016 at 15:33, Maxim Solodovnik <[email protected]> >>>>>> wrote: >>>>>> >>>>>>> ideas and contributions on how this can be improved are highly >>>>>>> welcome ;) >>>>>>> >>>>>>> On Fri, Jul 15, 2016 at 11:28 AM, Ben Lewis <[email protected]> >>>>>>> wrote: >>>>>>> >>>>>>>> right... thought they might be. Bit difficult to use the APIs as >>>>>>>> they are :). >>>>>>>> >>>>>>>> On 15 July 2016 at 15:24, Maxim Solodovnik <[email protected]> >>>>>>>> wrote: >>>>>>>> >>>>>>>>> I'm afraid this examples are a little bit outdated >>>>>>>>> I would recommend to use PHP API >>>>>>>>> or implement your own using API guide >>>>>>>>> http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html >>>>>>>>> >>>>>>>>> On Fri, Jul 15, 2016 at 11:22 AM, Ben Lewis < >>>>>>>>> [email protected]> wrote: >>>>>>>>> >>>>>>>>>> I must be a bit confused here, when I use some of these REST >>>>>>>>>> calls: >>>>>>>>>> http://openmeetings.apache.org/RestAPISample.html >>>>>>>>>> >>>>>>>>>> I get the same SOAP error. So I need to change the API on >>>>>>>>>> openmeeting right? >>>>>>>>>> >>>>>>>>>> On 15 July 2016 at 12:45, Maxim Solodovnik <[email protected]> >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>>> Hello, >>>>>>>>>>> >>>>>>>>>>> The problem is caused by the fact you are trying to talk to SOAP >>>>>>>>>>> without SOAP :) >>>>>>>>>>> you can use REST >>>>>>>>>>> or you can use OM PHP API: >>>>>>>>>>> https://github.com/openmeetings/openmeetings-api-plugin >>>>>>>>>>> >>>>>>>>>>> On Fri, Jul 15, 2016 at 8:08 AM, Ben Lewis < >>>>>>>>>>> [email protected]> wrote: >>>>>>>>>>> >>>>>>>>>>>> Openmeetings 3.1.1 1736485 >>>>>>>>>>>> Chamilo 1.10.6 >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> I am trying to get the openmeetings plugin to work in Chamilo. >>>>>>>>>>>> I setup my own openmeetings server, I can login to the web >>>>>>>>>>>> interface (ie >>>>>>>>>>>> http://myserver.mydomain.com:5080/openmeetings). I can start a >>>>>>>>>>>> conference etc. The trouble begins when I try to launch the plugin >>>>>>>>>>>> from >>>>>>>>>>>> Chamilo. From within Chamilo I get the following error: >>>>>>>>>>>> >>>>>>>>>>>> Could not initiate session with server through >>>>>>>>>>>> OpenMeetingsGateway::loginUser() >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On the openmeetings server I see the following error: >>>>>>>>>>>> >>>>>>>>>>>> --------------------------- >>>>>>>>>>>> >>>>>>>>>>>> ID: 4 >>>>>>>>>>>> >>>>>>>>>>>> Response-Code: 500 >>>>>>>>>>>> >>>>>>>>>>>> Encoding: UTF-8 >>>>>>>>>>>> >>>>>>>>>>>> Content-Type: text/xml >>>>>>>>>>>> >>>>>>>>>>>> Headers: {} >>>>>>>>>>>> >>>>>>>>>>>> Payload: <soap:Envelope xmlns:soap=" >>>>>>>>>>>> http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>No >>>>>>>>>>>> binding operation info while invoking unknown method with params >>>>>>>>>>>> unknown.</faultstring></soap:Fault></soap:Body></soap:Envelope> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> any help would be appreciated... >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> On the openmeeting server I tried to do the following: >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> $wget >>>>>>>>>>>> http://127.0.0.1:5080/openmeetings/services/UserService/getSession >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> And I am returned the error.. No binding operation info while >>>>>>>>>>>> invoking unknown method with params unknown >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> Ben Lewis >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> WBR >>>>>>>>>>> Maxim aka solomax >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Ben Lewis >>>>>>>>>> https://twitter.com/calgaryaussies >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> WBR >>>>>>>>> Maxim aka solomax >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Ben Lewis >>>>>>>> https://twitter.com/calgaryaussies >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> WBR >>>>>>> Maxim aka solomax >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Ben Lewis >>>>>> https://twitter.com/calgaryaussies >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> WBR >>>>> Maxim aka solomax >>>>> >>>> >>>> >>>> >>>> -- >>>> Ben Lewis >>>> https://twitter.com/calgaryaussies >>>> >>> >>> >>> >>> -- >>> Ben Lewis >>> https://twitter.com/calgaryaussies >>> >> >> >> >> -- >> WBR >> Maxim aka solomax >> > > > > -- > Ben Lewis > https://twitter.com/calgaryaussies >
