type script

[insert_php]
// Get cURL resource
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL =>
'http://archive.4plebs.org/_/api/chan/search/?boards=pol&num=1&tripcode=!ITPb.qbhqo'
));
// Send the request & save response to $resp
$resp = json_decode(curl_exec($curl),true)[0]['posts'];
// Close request
curl_close($curl);
$collector = [];
foreach($resp as $msg)
echo $msg['comment_sanitized'];
[/insert_php]

Leave a comment

האימייל לא יוצג באתר. שדות החובה מסומנים *