2011-12-14 12:18:36 +01:00
|
|
|
|
<?
|
2011-12-14 15:29:47 +01:00
|
|
|
|
/** Testfile f<EFBFBD>r die Provider Konfiguration
|
2011-12-14 12:18:36 +01:00
|
|
|
|
* @author: Grischa Brockhaus
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
require_once(dirname(__FILE__) . '/../' . "config.php");
|
|
|
|
|
|
|
|
|
|
function test($manager, $url) {
|
|
|
|
|
$obj=$manager->provide($url,"object");
|
|
|
|
|
if (!empty($obj)) print_r($obj);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$manager = ProviderManager::getInstance();
|
|
|
|
|
// Youtube long link
|
2011-12-15 01:42:11 +01:00
|
|
|
|
//test($manager,"http://www.youtube.com/watch?v=8UVNT4wvIGY");
|
2011-12-14 12:18:36 +01:00
|
|
|
|
// Youtube Kurze URL
|
2011-12-15 01:42:11 +01:00
|
|
|
|
//test($manager,"http://youtu.be/8UVNT4wvIGY");
|
2011-12-14 12:18:36 +01:00
|
|
|
|
// Twitter
|
2011-12-15 01:42:11 +01:00
|
|
|
|
//test($manager,"https://twitter.com/#!/tagesschau/status/146562892454572032");
|
2011-12-14 12:18:36 +01:00
|
|
|
|
// flickr
|
|
|
|
|
test($manager,"http://www.flickr.com/photos/gbrockhaus/2052855443/in/set-72157603214268227/");
|
|
|
|
|
// vimeo
|
2011-12-15 01:42:11 +01:00
|
|
|
|
//test($manager,"http://vimeo.com/33510073");
|
2011-12-14 12:18:36 +01:00
|
|
|
|
|