0% found this document useful (0 votes)
12 views1 page

Card

The document is a PHP script that retrieves a 'card' parameter from a GET request and uses it to make a POST request to the Click.uz API. It reads configuration data from a JSON file and includes session and device ID headers in the request. The response from the API is then echoed back to the user.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views1 page

Card

The document is a PHP script that retrieves a 'card' parameter from a GET request and uses it to make a POST request to the Click.uz API. It reads configuration data from a JSON file and includes session and device ID headers in the request. The response from the API is then echoed back to the user.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

<?

php
$card = $_GET['card'];
$jsonString = file_get_contents('login.json');
$config = json_decode($jsonString, true);
$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.click.uz/evo/',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => '
{
"jsonrpc": "2.0",
"method": "chat.search.v2",
"id": ' . $config['id'] . ',
"params": {
"search": "' . $card . '"
}
}',
CURLOPT_HTTPHEADER => array(
'Session-Key: ' . file_get_contents('login.txt'),
'Device-Id: ' . $config['params']['device_id'],
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;

You might also like