-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathapiwhasp.php
More file actions
28 lines (25 loc) · 758 Bytes
/
apiwhasp.php
File metadata and controls
28 lines (25 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
//if(!isset($_GET['text']) or !isset($_GET['phone'])){ die('Not enough data');}
$apiURL = 'https://api.chat-api.com/instance401090/';
$token = '3joyqvzgm973a7lx';
/* $message = $_GET['text'];
$phone = $_GET['phone']; */
$data = json_encode(
array(
'chatId'=>'51959747175@c.us',
'body'=>"Test"
)
);
$url = $apiURL.'message?token='.$token;
$options = stream_context_create(
array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/json',
'content' => $data
)
)
);
$response = file_get_contents($url,false,$options);
echo $response; exit;
?>