コード例 #1
0
ファイル: N500px.php プロジェクト: SmartCrowd/Embed
 /**
  * {@inheritdoc}
  */
 public static function getEndPoint(Url $url)
 {
     if (is_numeric($url->getDirectoryPosition(1))) {
         return $url->createUrl()->withDirectoryPosition(2, 'oembed.json');
     }
     return '';
 }