coursio / api-php
This package is abandoned and no longer maintained.
No replacement package was suggested.
PHP wrapper for Coursio API
v1.1
2013-11-19 15:57 UTC
Requires
- php: >=5.3.3
This package is not auto-updated.
Last update: 2022-02-01 12:28:28 UTC
README
Version 1.0
Introduction
This repository is a wrapper for the Coursio API, which simplifies the key-generation and communication to the API
Installation
Main Setup
By cloning project
- Clone this project into your
./vendor/
directory.
With composer
-
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
Usage
<?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);