PHP code example of uicosss / aits_term_query

1. Go to this page and download the library: Download uicosss/aits_term_query 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_term_query example snippets


composer nce 'vendor/autoload.php';

Required:
$campus = 'uic'; // One of 'uic', 'uis', 'uiuc')

Optional:
$term = 'nextYear'; // Banner Term or term period ('current', 'nextYear', 'pastYear'). Default is `current`

$termApi->findTerm($campus, $term); // Conduct the term query
echo $termApi->getResponse(true); // See raw JSON response
$json = $termApi->getResponse(); // Get decoded JSON array