diff --git a/src/ApiBrasil.php b/src/ApiBrasil.php index 8795292..a14a687 100644 --- a/src/ApiBrasil.php +++ b/src/ApiBrasil.php @@ -29,10 +29,10 @@ public static function WhatsAppService(string $action = '', array $data = []) { $apitoken = $data['apitoken'] ?? ''; $session = $data['session'] ?? ''; - $wh_status = $data['wh_status'] ?? ''; - $wh_message = $data['wh_message'] ?? ''; - $wh_connect = $data['wh_connect'] ?? ''; - $wh_qrcode = $data['wh_qrcode'] ?? ''; +// $wh_status = $data['wh_status'] ?? ''; +// $wh_message = $data['wh_message'] ?? ''; +// $wh_connect = $data['wh_connect'] ?? ''; +// $wh_qrcode = $data['wh_qrcode'] ?? ''; $serverhost = $serverhost."/".$action; @@ -51,6 +51,14 @@ public static function WhatsAppService(string $action = '', array $data = []) { 'apitoken:'.$apitoken, 'sessionkey:'.$sessionkey ); + + $body = array( + 'session' => $session, + 'wh_status' => $data['wh_status'], + 'wh_message' => $data['wh_message'], + 'wh_connect' => $data['wh_connect'], + 'wh_qrcode' => $data['wh_qrcode'] + ); } //send parameters qrcode get