coursio / api-php
PHP wrapper for Coursio API
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 10
Forks: 0
Open Issues: 0
pkg:composer/coursio/api-php
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);