2021-10-23 00:00:25 +03:00
|
|
|
|
<?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) [
|
2022-07-21 22:13:09 +03:00
|
|
|
|
"id" => 1,
|
2021-10-23 00:00:25 +03:00
|
|
|
|
"owner_id" => 1,
|
2022-07-21 22:13:09 +03:00
|
|
|
|
"artist" => "В ОВК ПОКА НЕТ МУЗЫКИ",
|
|
|
|
|
"title" => "ЖДИТЕ :)))",
|
2021-10-23 00:00:25 +03:00
|
|
|
|
"duration" => 22,
|
2022-07-21 22:13:09 +03:00
|
|
|
|
"url" => $serverUrl . "/assets/packages/static/openvk/audio/nomusic.mp3"
|
2021-10-23 00:00:25 +03:00
|
|
|
|
]]
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|