zeena 9e7a4bd4da | ||
---|---|---|
.idea | ||
vendor | ||
README.md | ||
SASConnector.php | ||
active_user.php | ||
aes.php | ||
composer.json | ||
composer.lock | ||
create_manager.php | ||
create_profile.php | ||
create_user.php | ||
delete_manager.php | ||
delete_profile.php | ||
delete_user.php | ||
test.php | ||
update_manager.php | ||
update_profile.php | ||
update_user.php |
README.md
sasconnector-php
API connector for SAS Radius 4
Installation
Clone the git repository:
git clone https://github.com/hasanenalbana/sasconnector-php
Install required libraries:
curl -sS https://getcomposer.org/installer | php
php composer.phar install
Usage
require_once 'SASConnector.php';
$api = new SASConnector('demo4.sasradius.com', 'manager_username', 'manager_password');
$api->login();
$res = $api->post('index/user', []);
print_r(json_decode($res));