52 "value1" => $record[
"channel"],
53 "value2" => $record[
"level_name"],
54 "value3" => $record[
"message"],
56 $postString = json_encode($postData);
59 curl_setopt($ch, CURLOPT_URL,
"https://maker.ifttt.com/trigger/" . $this->eventName .
"/with/key/" . $this->secretKey);
60 curl_setopt($ch, CURLOPT_POST,
true);
61 curl_setopt($ch, CURLOPT_RETURNTRANSFER,
true);
62 curl_setopt($ch, CURLOPT_POSTFIELDS, $postString);
63 curl_setopt($ch, CURLOPT_HTTPHEADER,
array(
64 "Content-Type: application/json",
const ERROR
Runtime errors.
Base Handler class providing the Handler structure.
static execute($ch, $retries=5, $closeAfterDone=true)
Executes a CURL request with optional retries and exception on failure.
__construct($eventName, $secretKey, $level=Logger::ERROR, $bubble=true)
IFTTTHandler uses cURL to trigger IFTTT Maker actions.
Create styles array
The data for the language used.