library api-php
PHP wrapper for Coursio API
coursio/api-php
PHP wrapper for Coursio API
- Tuesday, November 19, 2013
- by hussfelt
- Repository
- 9 Watchers
- 0 Stars
- 5 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 4 Versions
- 0 % Grown
Api-php
Version 1.0, (*1)
Introduction
This repository is a wrapper for the Coursio API, which simplifies the key-generation and communication to the API, (*2)
Installation
Main Setup
By cloning project
- Clone this project into your
./vendor/
directory.
With composer
-
Add this project in your composer.json:, (*3)
{
...
"name": ...,
"require": {
...
"coursio/api-php": "v1.0",
...
}
...
}
-
Now tell composer to download Api-php by running the command:, (*4)
$ 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);
v1.0
1.0.0.0
PHP wrapper for Coursio API
Sources
Download
GPLv2
The Requires
by
Vladimir Osipov