This commit is contained in:
Godfrey M 2024-01-29 11:12:25 -08:00
parent 6e9a46e582
commit e8159d97fa

View file

@ -154,7 +154,7 @@ class SlackSettingsForm extends Component
} }
public function googleWebhookTest(){ public function googleWebhookTest(){
$url = $this->webhook_endpoint; $url = $this->webhook_endpoint;
$data = [ 'text' => trans('general.webhook_test_msg', ['app' => $this->webhook_name])]; $data = json_encode([ 'text' => trans('general.webhook_test_msg', ['app' => $this->webhook_name])]);
$headers = [ $headers = [
'Authorization' => 'Bearer'. 'AIzaSyBu-61gEOhYGfrmT3fHQj6vS8TDWpo1B5U', 'Authorization' => 'Bearer'. 'AIzaSyBu-61gEOhYGfrmT3fHQj6vS8TDWpo1B5U',
'Content-Type' => 'application/json', 'Content-Type' => 'application/json',