24/07
2018
dev-master
9999999-devPackage for easing tcu integration with your admission system
The Requires
by Amani
Package for easing tcu integration with your admission system
How to use;, (*1)
Install through composer, (*2)
composer require coas/tcu
Using the package, (*3)
Use Coas/TCU/TCU; $tcu = new TCU(username, token, instutionCode, inJson); username ( string ) = TCU username token ( string ) = TCU secret token credential instutionCode ( string ) = Institute code or null ( defaults to username ) inJson ( bool ) = Tells to return results as a json object, set to false return the original xml response //Example $response = $tcu->checkStatus(âindexNumberâ); // Returns XML response as a json object
if you wish to return the original XML, (*4)
$tcu->inJson(false);
or pass the fourth parameter as false, (*5)
$tcu = new TCU(username, token, null, false);
Response, (*6)
$response = $tcu->add(category,indexF4, indexF6, otherForm4, otherFormSix ); $status = $response->RESPONSE->RESPONSEPARAMETERS->STATUS; $code = $response->RESPONSE->RESPONSEPARAMETERS->ERROR_CODE; $description = $response->RESPONSE->RESPONSEPARAMETERS->STATUS_DESCRIPTION;
Methods All methods as defined in the original TCU document API, (*7)
Package for easing tcu integration with your admission system