MDL-47850 message_airnotifier: Incorrect Airnotifier Web Service URL

This commit is contained in:
Juan Leyva
2014-10-24 10:40:06 +02:00
parent 8950e7f535
commit a7b572e29d
@@ -92,7 +92,7 @@ class message_output_airnotifier extends message_output {
}
// Sending the message to the device.
$serverurl = $CFG->airnotifierurl . ':' . $CFG->airnotifierport . '/notification/';
$serverurl = $CFG->airnotifierurl . ':' . $CFG->airnotifierport . '/api/v2/push';
$header = array('Accept: application/json', 'X-AN-APP-NAME: ' . $CFG->airnotifierappname,
'X-AN-APP-KEY: ' . $CFG->airnotifieraccesskey);
$curl = new curl;