$timeout, 'sslverify' => false, ) ); if ( is_array($response) && isset($response['body']) && isset($response['response']['code']) && (int)$response['response']['code'] == 200 ) { $result = $response['body']; } return $result; } $options = get_option('activedemand_options_field'); $activedemand_appkey = $options["activedemand_appkey"]; if ("" != $activedemand_appkey) { //get Forms $url = "https://api.activedemand.com/v1/forms.xml?api-key=" . $activedemand_appkey . ""; $str = activedemand_partial_getHTML($url, 10); $form_xml = simplexml_load_string($str); //get Blocks $url = "https://api.activedemand.com/v1/smart_blocks.xml?api-key=" . $activedemand_appkey . ""; $str = activedemand_partial_getHTML($url, 10); $block_xml = simplexml_load_string($str); } ?>