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