How to use PHP API (Using Parse server as backend)

270 views
Skip to first unread message

Rashid

unread,
Jun 25, 2016, 1:36:00 AM6/25/16
to bigbluebutton-users
I have added both PARSE and PHP libraries to the root folder using "composer", Parse server queries are working fine but, when adding BBB PHP api codes as mentioned in the "https://github.com/bigbluebutton/bigbluebutton-api-php" github page, I'm getting ERROR 500. Could anyone guide me to use this API effectively?

Added the below code to (/etc/nginx/sites-available/bigbluebutton)

       location ~ \.php$ {
        try_files $uri =404;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }



composer.json
{
    "require": {
        "bigbluebutton/bigbluebutton-api-php": "dev-master",
        "parse/php-sdk" : "1.2.*"
    }
}



Root Directory
username@sk-97072:/usr/share/nginx/html$ ls
50x.html  composer.json  composer.lock  dashboard.php  index.html  meeting.php  myaccount.php  vendor


BigBlueButton php API directory
username@sk-97072:/usr/share/nginx/html/vendor/bigbluebutton/bigbluebutton-api-php$ ls
codeception.yml  composer.json  LICENSE  phpunit.xml.dist  README.md  src  tests


Ghazi TRIKI

unread,
Jul 4, 2016, 5:05:25 PM7/4/16
to bigbluebutton-users
Hello,

You should have "index.php" like defined in "/etc/nginx/sites-available/bigbluebutton" then you need to follow the usage example like described here https://github.com/bigbluebutton/bigbluebutton-api-php#usage to be able to call the API.

Regards
Reply all
Reply to author
Forward
0 new messages