dev-master
9999999-dev https://bitbucket.org/dpazuic/aits_enterprise_userPHP Wrapper API for the AITS Enterprise User API
MIT
The Requires
- php >5.3.0
PHP Wrapper API for the AITS Enterprise User API
PHP Library for using the AITS Enterprise User API (contact AITS for additional details on API)., (*1)
To use the library, you need to:, (*2)
include_once(aits_enterprise_user.php');
composer require dpazuic\aits_enterprise_user
include_once('vendor/autoload.php');
dpazuic\aits_enterprise_user
$netid = 'sparky'; $campusDomain = 'uic.edu'; // Allowed: (uic.edu|uiuc.edu|illinois.edu|uis.edu|100|200|400) $senderAppID = 'YOUR_SENDER_APP_ID'; // Contact AITS for this $personApi = new dpazuic\aits_enterprise_user($netid, $campusDomain, $senderAppID);
The default response will be JSON, but you can also request the raw data which will be an object of StdClass. Contact AITS for additional details on API schema., (*3)
$personApi->findPerson(); // Conduct the person lookup $response = $personApi->getResponse(); // See JSON response
You can use the attached examples/cli-test.php
file from the command line to test functionality.
php cli-test.php YOUR_SENDER_APP_ID NETID CAMPUS_DOMAIN
, (*4)
PHP Wrapper API for the AITS Enterprise User API
MIT