PHP code example of dbp / campusonline-api

1. Go to this page and download the library: Download dbp/campusonline-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dbp / campusonline-api example snippets




use Dbp\CampusonlineApi\Rest\Api;

$api = new Api('https://qline.example.at/online/', 'client_id', 'client_secret');
$ucard = $api->UCard();
$ucard->getCardsForIdentIdObfuscated('1234567890');



use Dbp\CampusonlineApi\Rest\Api;

$api = new Api('https://qline.example.at/online/', 'client_id', 'client_secret');
$generic = $api->GenericApi('loc_apiMyExport');
$generic->getResource('ID', '42);



use Dbp\CampusonlineApi\LegacyWebService\Api;

$api = new Api('https://qline.example.at/online/', 'api_token');
$org = $api->OrganizationUnit();
$org->getOrganizationUnitById('1234');