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

namespace EmbedProvidersOEmbed;

use 
EmbedHttpUrl;

class 
Scribd extends EndPoint implements EndPointInterface
{
    protected static 
$pattern = [
        
'www.scribd.com/doc/*',
        
'www.scribd.com/document/*',
    ];
    protected static 
$endPoint 'http://www.scribd.com/services/oembed';

    
/**
     * {@inheritdoc}
     */
    
public function getEndPoint()
    {
        
$url $this->getUrl()->withDirectoryPosition(0'doc');

        return 
Url::create(static::$endPoint)
                ->
withQueryParameters([
                    
'url' => (string) $url,
                    
'format' => 'json',
                ]);
    }
}
Онлайн: 0
Реклама