Вход Регистрация
Файл: sngine-v2.8/Script/includes/libs/Embed/Providers/OEmbed/Deviantart.php
Строк: 27
<?php

namespace EmbedProvidersOEmbed;

use 
EmbedHttpUrl;

class 
Deviantart extends EndPoint implements EndPointInterface
{
    protected static 
$pattern = [
        
'*.deviantart.com/art/*',
        
'www.deviantart.com/#/d*',
    ];
    protected static 
$endPoint 'http://backend.deviantart.com/oembed';

    
/**
     * {@inheritdoc}
     */
    
public function getEndPoint()
    {
        return 
Url::create(static::$endPoint)
                ->
withQueryParameters([
                    
'url' => (string) $this->getUrl(),
                    
'format' => 'json',
                    
'for' => 'embed',
                ]);
    }
}
Онлайн: 1
Реклама