PHP
PHP request method
get
https://neko-love.xyz
/api/v1/:endpoint
<?php
nekoGET("neko");
function nekoGET($type) {
$url = 'https://neko-love.xyz/api/v1/'.$type;
$body = file_get_contents($url);
if ($body == false) echo 'An error has occurred';
else {
$obj = json_decode($body);
echo $obj->{'url'};
}
}
?>
Last modified 3yr ago