Skip to content

Instantly share code, notes, and snippets.

@artgibson
Forked from embedly/embedly_jquery_example.js
Created October 27, 2010 23:42
Show Gist options
  • Save artgibson/650255 to your computer and use it in GitHub Desktop.
Save artgibson/650255 to your computer and use it in GitHub Desktop.
embedly + jquery
// Call API to get a video oEmbed JSON response
var url = escape('http://vimeo.com/9503416');
var api_url = 'http://api.embed.ly/1/oembed?url=' + url + '&callback=?';
//jQuery JSON call
$.getJSON( api_url, function(json) {
var html = json.html;
$('#videodiv').html(html);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment