PHP code example of uicosss / aits_admissions_decision_processing

1. Go to this page and download the library: Download uicosss/aits_admissions_decision_processing 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/ */

    

uicosss / aits_admissions_decision_processing example snippets


composer once 'vendor/autoload.php';

try {
    $admissionsDecision = new Uicosss\AITS\AdmissionsDecisionProcessing($apiUrl, $subscriptionKey);
    $admissionsDecisionResponse = $admissionsDecision->create($studentId, $termCode, $applNo, $decisionCode);
    
    if ($admissionsDecisionResponse->isSuccess()) {
        echo 'Success' . PHP_EOL;
    } else {
        echo 'Error' . PHP_EOL;
    }
} catch (GuzzleException|Exception $e) {
    print_r($e->getMessage());
}