studentconnect / api-client
StudentConnect API Client Library
Installs: 176
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/studentconnect/api-client
Requires
- php: >=5.5.9
- acquia/http-hmac-php: ^2.1
- guzzlehttp/guzzle: ^6.2
- monolog/monolog: ^1.20
- vlucas/phpdotenv: ^2.3
Requires (Dev)
- codeception/codeception: ^2.2
- codeception/phpbuiltinserver: ^1.2
- fzaninotto/faker: ^1.6
- mockery/mockery: ^0.9
- phpunit/phpunit: ^5.4
- symfony/http-foundation: ^3.1
This package is not auto-updated.
Last update: 2020-01-22 02:03:59 UTC
README
This is the official PHP client for StudentConnect API
Installation
composer require studentconnect/api-client
Example code
<?php
use StudentConnect\API\Client\Client;
use StudentConnect\API\Client\Exceptions\ClientException;
try{
$Client = new Client('https://api.endpoint', '{app_key}', '{app_secret}');
$Client->authorize();
$uri = $Client->tokenizeURI( $Client->generateSignInURI() );
echo ( '<a href="'. $uri .'">Sign In with StudentConnect →</a>' );
}
catch(ClientException $e){
throw new App\ApplicationException( $e->getMessage(), $e->getStatus(), $e );
}
Quickstart
If you have a web server at hand, just set the host's root to /quickstart/web.php and check the guide.
Documentation can be found here: docs.studentconnectapi.com