We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 118a4f56 authored by mattl's avatar mattl

Script to test remote oEmbed endpoints

parent 34b6d372
#!/usr/bin/env php
define('INSTALLDIR', realpath(dirname(__FILE__) . '/../../..'));
$shortoptions = 'u:';
$longoptions = array('url=');
$helptext = <<<END_OF_HELP
poll_oembed.php --url URL
Test oEmbed API on a URL.
-u --url URL to try oEmbed against
require_once INSTALLDIR.'/scripts/commandline.inc';
if (!have_option('u', 'url')) {
echo 'No URL given.';
$url = get_option_value('u', 'url');
print "Contacting URL";
$oEmbed = oEmbedHelper::getObject($url);
print "\nDONE.\n";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment