Jauntlet APIs

oEmbed

oEmbed is a standard which allows websites to include rich media content from other sites. Jauntlet has implemented this to allow embedding of Flash Jauntlets as well as links to other pages.

URL scheme:
http://jauntlet.com/*

API endpoint:
http://jauntlet.com/oembed

Parameters:
url (required) The URL to retrieve embedding information for.
maxwidth (optional) The maximum width of the embedded resource.
maxheight (optional) The maximum height of the embedded resource.
format (optional) xml or json (default)

Example:

For the URL http://jauntlet.com/2

The endpoint is http://jauntlet.com/oembed?format=xml&url=http%3A%2F%2Fjauntlet.com%2F2

The response is

<?xml version="1.0" encoding="UTF-8"?>
<oembed>
  <version>1.0</version>
  <provider_name>Jauntlet Travel Map and Blog</provider_name>
  <provider_url>http://jauntlet.com</provider_url>
  <type>video</type>
  <title>Trip Around The World</title>
  <author_name>Jauntlet</author_name>
  <author_url>http://jauntlet.com/traveler/jauntlet</author_url>
  <cache_age>86400</cache_age>
  <thumbnail_url>http://jauntlet.com/data/mapimage.php?journeyid=2&amp;size=180x180</thumbnail_url>
  <thumbnail_height>180</thumbnail_height>
  <thumbnail_width>180</thumbnail_width>
  <html>&lt;embed src=&quot;http://jauntlet.com/jauntlet/jauntlet.swf?id=2&quot; 
  loop=&quot;false&quot; menu=&quot;false&quot; quality=&quot;high&quot; 
  bgcolor=&quot;#ffffff&quot; width=&quot;398&quot; height=&quot;398&quot; 
  allowScriptAccess=&quot;always&quot; type=&quot;application/x-shockwave-flash&quot; 
  pluginspage=&quot;http://www.adobe.com/go/getflash&quot; /&gt;</html>
  <width>398</width>
  <height>224</height>
</oembed>
Fatal error: Call to a member function fetch_assoc() on a non-object in /var/www/html/shared/lib.php on line 1571