VKAPI: Added Audio method (early implementation 🧌)

This commit is contained in:
veselcraft 2021-10-23 00:00:25 +03:00
parent 16d3280336
commit 734a86b799
2 changed files with 22 additions and 0 deletions

22
VKAPI/Handlers/Audio.php Normal file
View file

@ -0,0 +1,22 @@
<?php declare(strict_types=1);
namespace openvk\VKAPI\Handlers;
final class Audio extends VKAPIRequestHandler
{
function get(): object
{
$serverUrl = ovk_scheme(true) . $_SERVER["SERVER_NAME"];
return (object) [
"count" => 1,
"items" => [(object) [
"id" => 1,
"owner_id" => 1,
"artist" => "В ОВК ПОКА НЕТ МУЗЫКИ",
"title" => "ЖДИТЕ :)))",
"duration" => 22,
"url" => $serverUrl . "/assets/packages/static/openvk/audio/nomusic.mp3"
]]
];
}
}

Binary file not shown.