protected function JanrainCaptureApi::decodeData in Janrain Registration 7.4
Same name and namespace in other branches
- 7.2 includes/janrain_capture.api.inc \JanrainCaptureApi::decodeData()
2 calls to JanrainCaptureApi::decodeData()
- JanrainCaptureApi::call in includes/
janrain_capture.api.inc - Performs the HTTP request.
- JanrainCaptureApi::getShareProviders in includes/
janrain_capture.api.inc - Retrieves a list of Social Sharing providers for Engage
File
- includes/
janrain_capture.api.inc, line 97 - An API Client for making calls to the Janrain Capture web service.
Class
- JanrainCaptureApi
- @file An API Client for making calls to the Janrain Capture web service.
Code
protected function decodeData($result) {
if (!isset($result->data) || $result->code != '200') {
$this
->reportError($result);
return FALSE;
}
$json_data = json_decode($result->data, TRUE);
return $json_data;
}