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