$client = new Client();
$response = $client->createRequest()
->setFormat(Client::FORMAT_JSON)
->setMethod('post')
->setUrl('https://ru.ru')
->setHeaders(['Content-Type' => 'application/json'])
->addHeaders(['Authorization' => ''])
->addHeaders(['X-Secret' => ''])
->setData(['data' => $data])
->send();