Version 1.0
This repository is a wrapper for the Coursio API, which simplifies the key-generation and communication to the API
- Clone this project into your
./vendor/
directory.
-
Add this project in your composer.json:
{ ... "name": ..., "require": { ... "coursio/api-php": "v1.0", ... } ... }
-
Now tell composer to download Api-php by running the command:
$ php composer.phar update
<?php
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);