api_url = defined('WATOAPILINK') ? WATOAPILINK : ''; $this->api_key = defined('WATOAPIKEY') ? WATOAPIKEY : ''; $this->company = defined('COMPANY') ? COMPANY : 'Company'; helper("general"); } public function pushNotification($mobile, $message) { $mobile = str_replace('+', '', $mobile); $postFields = [ 'token' => $this->api_key, 'to' => $mobile, 'message' => $message ]; return send_api_request('POST', $this->api_url, [], $postFields); } }