Файл: sngine-v2.8/Script/includes/libs/Embed/Providers/OEmbed/Spotify.php
Строк: 22
<?php
namespace EmbedProvidersOEmbed;
use EmbedHttpUrl;
class Spotify extends EndPoint implements EndPointInterface
{
protected static $pattern = '*.spotify.com/*';
protected static $endPoint = 'https://embed.spotify.com/oembed';
/**
* {@inheritdoc}
*/
public function getEndPoint()
{
return Url::create(static::$endPoint)
->withQueryParameters([
'url' => (string) $this->getUrl()->withQueryParameters([]),
'format' => 'json'
]);
}
}