PHP code example of coursio / api-php
1. Go to this page and download the library: Download coursio/api-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
coursio / api-php example snippets
use CoursioApi\CoursioApi;
$API = new CoursioApi ("YOUR_PUBLIC_KEY", "YOUR_PRIVATE_KEY", "YOUR_SALT");
$result = $API->Get('courses');
print_r($result);
$result = $API->Post('invitations', array
(
'courseId' => 65,
));
print_r($result);
bash
$ php composer.phar update