mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
VKAPI: Added Audio method (early implementation 🧌)
This commit is contained in:
parent
16d3280336
commit
734a86b799
2 changed files with 22 additions and 0 deletions
22
VKAPI/Handlers/Audio.php
Normal file
22
VKAPI/Handlers/Audio.php
Normal 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"
|
||||||
|
]]
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
BIN
Web/static/audio/nomusic.mp3
Normal file
BIN
Web/static/audio/nomusic.mp3
Normal file
Binary file not shown.
Loading…
Reference in a new issue