I don't see which of the numerous files shows an example of connection to OM classroom.

I feel it would be easier to have the sequence of calls, witha doc on the parameters and their structure.

I suppose that $gateway contains attributes : user, pass, and url (?) ... what else ?

The call to the method :
$gateway->getSecureHash($gateway->getUser(.... params with necessary user data here ...), .... additional options here ...);

where can I find an explicit doc on the "params user data" and a doc about the options

Once I get the hash, what is the function to call to enter a room ?

Thank you

Le 26/07/2017 à 12:15, Maxim Solodovnik a écrit :
Have added user@

Examples can be found in our open source plugin for Moodle: https://github.com/openmeetings/openmeetings-moodle-plugin

$gateway = new OmGateway(..... config parameters as array here .... );
if ($gateway->login()) {
$hash = $gateway->getSecureHash($gateway->getUser(.... params with necessary user data here ...), .... additional options here ...);
}

On Wed, Jul 26, 2017 at 5:08 PM, Jacob Ouanounou <[email protected] <mailto:[email protected]>> wrote:

    I have had a look on the PHP code. I see the functions, but what
    is the sequence of calls to login, and enter a room ?

    Thanks


    Le 26/07/2017 à 11:44, Maxim Solodovnik a écrit :
    Please do not hijack mail threads

    For PHP I would recommend to use PHP API:
    
https://github.com/openmeetings/openmeetings-api-plugin/tree/master/src/main/scripts
    
<https://github.com/openmeetings/openmeetings-api-plugin/tree/master/src/main/scripts>

    On Wed, Jul 26, 2017 at 4:42 PM, Maxim Solodovnik<[email protected]> 
<mailto:[email protected]>  wrote:
    Could you please tell me how are you call the service?

    Example onhttp://openmeetings.apache.org/RestAPISample.html
    <http://openmeetings.apache.org/RestAPISample.html>  requires
    jquery, so it cannot be _just used_
    To use REST you need client able to send GET/POST/etc. requests.
    Which one are you using?

    The error you are getting doesn't make sense :( CSRF checks are not
    active for REST

    On Wed, Jul 26, 2017 at 4:30 PM, Jacob Ouanounou<[email protected]> 
<mailto:[email protected]>  wrote:
    Back to REST API : I succeed to get the SID, but when I try to get the hash,
    using excatly the code written there :
    http://openmeetings.apache.org/RestAPISample.html
    <http://openmeetings.apache.org/RestAPISample.html>  , with the sid I 
obtained,
    I get an error (in the console of the browser) :


    
http://35.157.227.184:5080/openmeetings/services/user/hash?sid=1a35cf5f-21f3-45f3-a679-4e6c88d6911d
    
<http://35.157.227.184:5080/openmeetings/services/user/hash?sid=1a35cf5f-21f3-45f3-a679-4e6c88d6911d>.
    No 'Access-Control-Allow-Origin' header is present on the requested
    resource.

    Don't understand


    Le 25/07/2017 à 14:11, Jacob Ouanounou a écrit :

    In which directory is this file ?


    Le 25/07/2017 à 13:57, Maxim Solodovnik a écrit :

    is there anything suspicious in openmeetings.log file?

    On Tue, Jul 25, 2017 at 6:54 PM, Jacob Ouanounou<[email protected]> 
<mailto:[email protected]>  wrote:
    When I enter this directly on the browser, using the correct user and pwd,
    I get this

    {"serviceResult":{"code":-1,"message":"Login failed","type":"ERROR"}}


    Le 25/07/2017 à 13:47, Maxim Solodovnik a écrit :

    to login and get SID you can just type in your browser:

    
http://35.157.227.184:5080/openmeetings/services/user/login?user=XXX&pass=XXX
    
<http://35.157.227.184:5080/openmeetings/services/user/login?user=XXX&pass=XXX>

    Here is the link to PHP API (seems to work, just have tested with Moodle)
    https://github.com/openmeetings/openmeetings-api-plugin
    <https://github.com/openmeetings/openmeetings-api-plugin>

    Here is the link to Java Unit tests we are using in nightly builds

    
https://github.com/apache/openmeetings/tree/3.3.x/openmeetings-web/src/test/java/org/apache/openmeetings/test/webservice
    
<https://github.com/apache/openmeetings/tree/3.3.x/openmeetings-web/src/test/java/org/apache/openmeetings/test/webservice>

    How are you planning to use the API?

    On Tue, Jul 25, 2017 at 6:40 PM, Jacob Ouanounou<[email protected]> 
<mailto:[email protected]>  wrote:
    Can you please send me your code, si that I could see a code that works
    and get inspired ...


    Le 25/07/2017 à 13:33, Maxim Solodovnik a écrit :

    just have tested on demo server, works as expected
    how are you using the service?

    On Tue, Jul 25, 2017 at 6:28 PM, Jacob Ouanounou<[email protected]> 
<mailto:[email protected]>  wrote:
    I have followed the first example, and I get this error :
    (services/user/login)

    No 'Access-Control-Allow-Origin' header is present on the requested
    resource. Origin 'null' is therefore not allowed access.



    Le 25/07/2017 à 12:24, Maxim Solodovnik a écrit :

    Yes, API was changed
    please check the example
    I believe it is cleaner now :)

    On Tue, Jul 25, 2017 at 5:22 PM, Jacob Ouanounou<[email protected]> 
<mailto:[email protected]>  wrote:
    In a previous version, I started by using this link to do a session
    request :

    http://<Server-IP>:5080/openmeetings/services/UserService/getSession

    to initiate the connection process

    Now I get this answer :


    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
    <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>



    Le 25/07/2017 à 11:59, Maxim Solodovnik a écrit :

    It is definitely possible :)
    Here is sample:http://openmeetings.apache.org/RestAPISample.html
    <http://openmeetings.apache.org/RestAPISample.html>
    Here is the link to the API javadoc:
    http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html
    <http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.html>

    On Tue, Jul 25, 2017 at 4:57 PM, Jacob Ouanounou<[email protected]> 
<mailto:[email protected]>
    wrote:
    Hi,

    It seems that it is not possible anymore to connect to OM server using
    REST. Is it ?

    Thank you


    Le 24/07/2017 à 18:00, Maxim Solodovnik a écrit :

    Thanks :)
    Will try to create custom CSS, might take some time :(
    Will report back here
    please ping me in case I'll be too silent

    On Mon, Jul 24, 2017 at 10:58 PM, Jacob Ouanounou<[email protected]> 
<mailto:[email protected]>
    wrote:
    Hi Maxim,

    I am using OM 5.3.3.0

    Resolution 1280 x 800




    Le 24/07/2017 à 14:07, Maxim Solodovnik a écrit :

    Hello Jacob,

    sure it is possible :)
    what screen resolution do you have? what version of OM are you using?


    On Mon, Jul 24, 2017 at 7:03 PM, Jacob Ouanounou<[email protected]> 
<mailto:[email protected]>
    wrote:
    Hi

    In the meeting rooms, there is on the left side of the screen a
    large pane, displaying the list of users and the files. In my screen, it
    appears very large (I have a Mac). Is it possible either : to hide /show it,
    or iconize it, or to define smaller fonts ?

    Thank you


    --
    WBR
    Maxim aka solomax


    --
    WBR
    Maxim aka solomax


    --
    WBR
    Maxim aka solomax


    --
    WBR
    Maxim aka solomax


    --
    WBR
    Maxim aka solomax


    --
    WBR
    Maxim aka solomax


    --
    WBR
    Maxim aka solomax



    --
    WBR
    Maxim aka solomax




--
WBR
Maxim aka solomax

Reply via email to