NEP DEVS
الذهاب إلى القناة على Telegram
NEPS DEV WHO WANT TO HELP YOU WITH FOSS PROJECT. WE COLLECT SCRIPTS THIS GROUP IS ONLY FOR EDUCATIONAL PURPOSE
إظهار المزيدلا توجد بيانات
المشتركون
-3724 ساعات
-1357 أيام
-23530 أيام
أرشيف المشاركات
<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET, OPTIONS");
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
$externalApiUrl = 'https://dog.ceo/api/breeds/image/random';
$response = file_get_contents($externalApiUrl);
if ($response === false) {
$error = ['error' => 'Failed to fetch data from the external API'];
echo json_encode($error);
} else {
$data = json_decode($response, true);
if ($data && isset($data['message'])) {
$data['join'] = '@DEVSNP';
echo json_encode($data);
} else {
$error = ['error' => 'Failed to process data from the external API'];
echo json_encode($error);
}
}
?>
Random Dog Api😁😁<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET, OPTIONS");
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
$baseUrl = 'https://picsum.photos';
$width = 800;
$height = 600;
$imageUrl = "$baseUrl/$width/$height";
$response = [
'image_url' => $imageUrl,
'join' => '@DEVSNP'
];
header('Content-Type: application/json');
echo json_encode($response);
?>
Picsum Api😁😁updated code
added more fonts
cleaned bloats
cleaned script
faster speed
lightweight
Made By Sunil Prasad Regmi😍
Thanks Suni Prasad Regmi
<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET, OPTIONS");
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
function file_get_contents_no_ssl_verify($url) {
$options = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
),
);
return file_get_contents($url, false, stream_context_create($options));
}
$quotable_api_url = 'https://api.quotable.io/random';
$response = file_get_contents_no_ssl_verify($quotable_api_url);
if ($response !== false) {
$quote_data = json_decode($response);
if ($quote_data !== null) {
$quote = $quote_data->content;
$author = $quote_data->author;
$response_data = array(
'quote' => $quote,
'author' => $author,
'join Tg' => 'yourchannelname',
);
header('Content-Type: application/json');
echo json_encode($response_data);
} else {
http_response_code(500);
echo json_encode(array('error' => 'Internal Server Error'));
}
} else {
http_response_code(500);
echo json_encode(array('error' => 'Internal Server Error'));
}
?>
Who Have troubling With File use this Codes😁