https://api.lalala.com/v1/messages?client_id=12345&text=%0%F%A%
. То есть сообщение по api из такого формата отправляется как, "???" curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.lalala.com/v1/messages?client_id='.$fid.'&text='.$fsend,
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 =>'{"query":"","variables":{}}',
CURLOPT_HTTPHEADER => array(
'Authorization: ///////////////////////////',
'Content-Type: application/json'
),
));