function JanrainCaptureApi::__construct in Janrain Registration 6
Same name and namespace in other branches
- 7.4 includes/janrain_capture.api.inc \JanrainCaptureApi::__construct()
- 7 janrain_capture.api.inc \JanrainCaptureApi::__construct()
- 7.2 includes/janrain_capture.api.inc \JanrainCaptureApi::__construct()
- 7.3 includes/janrain_capture.api.inc \JanrainCaptureApi::__construct()
Retrives API access credentials from settings.
File
- ./
janrain_capture.api.inc, line 16 - API Client for making calls to the Janrain Capture web service
Class
- JanrainCaptureApi
- @file API Client for making calls to the Janrain Capture web service
Code
function __construct() {
$janrain_capture_main = variable_get('janrain_capture_main', array());
$janrain_capture_optional = variable_get('janrain_capture_optional', array());
$this->args = array();
$this->args['client_id'] = isset($janrain_capture_main['capture_client_id']) ? $janrain_capture_main['capture_client_id'] : '';
$this->args['client_secret'] = isset($janrain_capture_main['capture_client_secret']) ? $janrain_capture_main['capture_client_secret'] : '';
$this->captureAddr = !empty($janrain_capture_main['capture_address']) ? $janrain_capture_main['capture_address'] : '';
}