/*
   Süpriz sonlu, konulu contract
*/


pragma solidity ^0.4.19;
import "github.com/oraclize/ethereum-api/oraclizeAPI.sol";

contract HappyEnding is usingOraclize {
    
    string public result;

    event newOraclizeQuery(string description);

    function HappyEnding() {
        update();
    }

    function __callback(bytes32 myid, string res) {
        if (msg.sender != oraclize_cbAddress()) throw;
        result = res; 
    }
    
    function update() payable {
        newOraclizeQuery("Istek yollandi, cevap icin bekleyelim.");
        oraclize_query("URL", "https://ihk.herokuapp.com/");
    }
    
}