1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57:
<?php
/**
* @link : http://www.loginradius.com
* @category : CustomerRegistration
* @package : ConfigAPI
* @author : LoginRadius Team
* @license : https://opensource.org/licenses/MIT
*/
namespace LoginRadiusSDK\Advance;
use LoginRadiusSDK\Utility\Functions;
use LoginRadiusSDK\LoginRadiusException;
/**
* Class for ConfigAPI
*
* This is the main class to communicate with LoginRadius to get configuration list.
*/
class ConfigAPI
{
/**
*
* @param type $apikey
* @param type $apisecret
* @param type $options
*/
public function __construct($apikey = '', $apisecret = '', $options = array())
{
new Functions($apikey, $apisecret, $options);
}
/**
* To fetch Configuration list
*
* @return Configuration Object
*/
public function getConfigurationList()
{
return Functions::apiClient(API_CONFIG_DOMAIN . "/ciam/appInfo", '', array('authentication' => 'key'));
}
/**
* This API allows you to query your LoginRadius account for basic server information and server time information which is useful when generating an SOTT token.
*
* @param $time_difference = "10";
* @return Serverinfo Object
*/
public function getServerTime($time_difference = '10') {
return Functions::apiClient(API_DOMAIN. "/identity/v2/serverinfo", array("timedifference" => $time_difference), array('authentication' => 'key'));
}
}