- Posts: 1
- Thank you received: 0
Please Log in to join the conversation.
Please Log in to join the conversation.
and fetch the session_secret from the response.ws.areyouahuman.com/ws/setruntimeoptions/<publisher_key>
$fields = array('config' => array()); // empty options for now, maybe configurable gameid later.
$resp = $this->doHttpsPostReturnJSONArray(self::AYAH_WEB_SERVICE_HOST, "/ws/setruntimeoptions".urlencode($this->ayah_publisher_key), $fields);
if ($resp) {
$this->session_secret = $resp->session_secret;
$url = 'https://' . self::AYAH_WEB_SERVICE_HOST . "/ws/script/".urlencode($this->ayah_publisher_key);
$url .= (empty($this->session_secret))? "" : "/".$this->session_secret;
return "<div id='AYAH'></div><script src='". $url ."' type='text/javascript'></script>";
} else {
throw new Exception(JText::_('PLG_PLAYTHRU_ERROR_SERVICE_UNAVAILABLE'));
}
Please Log in to join the conversation.
Please Log in to join the conversation.
$jcaptcha = JCaptcha::getInstance('playthru', array('namespace' => 'xyz'));
Please Log in to join the conversation.