Код: Выделить всё
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
curl_setopt($curl, CURLOPT_POSTFIELDS, $payload_json);
$response = curl_exec($curl);
Код: Выделить всё
HTTP/1.1 200 OK
Date: Fri, 20 Dec 2024 21:23:34 GMT
Content-Type: application/json; charset=UTF-8
Content-Length: 3292160
Connection: keep-alive
Access-Control-Allow-Origin: *
x-request-id: a1d0850f892cb9b4fc357a3532e81b91
Server: cloudflare
CF-RAY: 8f52b1b34f7f8ff9-BOS
alt-svc: h3=":443"; ma=86400
{"video":"AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAlpQhtZGF0AAACrwYF//+r3EXpvebZSLeWLNgg2SPu73gyNjQgLSBjb3JlID - 2 megs more of characters that are probably the video"}
Как я могу захватить видео отдельно и поместить его в переменную.
Заранее благодарим за любые предложения
Подробнее здесь: https://stackoverflow.com/questions/793 ... -using-php
Мобильная версия