{"action":"created","issue":{"url":"https://api.github.com/repos/documentcloud/wordpress-documentcloud/issues/16","labels_url":"https://api.github.com/repos/documentcloud/wordpress-documentcloud/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/documentcloud/wordpress-documentcloud/issues/16/comments","events_url":"https://api.github.com/repos/documentcloud/wordpress-documentcloud/issues/16/events","html_url":"https://github.com/documentcloud/wordpress-documentcloud/issues/16","id":68485618,"number":16,"title":"Use oEmbed","user":{"login":"reefdog","id":4731,"avatar_url":"https://avatars.githubusercontent.com/u/4731?v=3","gravatar_id":"","url":"https://api.github.com/users/reefdog","html_url":"https://github.com/reefdog","followers_url":"https://api.github.com/users/reefdog/followers","following_url":"https://api.github.com/users/reefdog/following{/other_user}","gists_url":"https://api.github.com/users/reefdog/gists{/gist_id}","starred_url":"https://api.github.com/users/reefdog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reefdog/subscriptions","organizations_url":"https://api.github.com/users/reefdog/orgs","repos_url":"https://api.github.com/users/reefdog/repos","events_url":"https://api.github.com/users/reefdog/events{/privacy}","received_events_url":"https://api.github.com/users/reefdog/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/documentcloud/wordpress-documentcloud/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"reefdog","id":4731,"avatar_url":"https://avatars.githubusercontent.com/u/4731?v=3","gravatar_id":"","url":"https://api.github.com/users/reefdog","html_url":"https://github.com/reefdog","followers_url":"https://api.github.com/users/reefdog/followers","following_url":"https://api.github.com/users/reefdog/following{/other_user}","gists_url":"https://api.github.com/users/reefdog/gists{/gist_id}","starred_url":"https://api.github.com/users/reefdog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reefdog/subscriptions","organizations_url":"https://api.github.com/users/reefdog/orgs","repos_url":"https://api.github.com/users/reefdog/repos","events_url":"https://api.github.com/users/reefdog/events{/privacy}","received_events_url":"https://api.github.com/users/reefdog/received_events","type":"User","site_admin":false},"milestone":null,"comments":12,"created_at":"2015-04-14T20:13:14Z","updated_at":"2015-04-30T19:43:45Z","closed_at":"2015-04-30T14:43:52Z","body":"We're [adding an oEmbed service to DocumentCloud](https://github.com/documentcloud/documentcloud/tree/oembed), so I'll be adapting this plugin to take advantage of it. The syntax of the shortcodes won't change, so it'll be backwards-compatible.\r\n\r\nGoals:\r\n\r\n1. Fetch the embed code from our oEmbed service, natch\r\n2. Support existing `[documentcloud]` shortcodes ~~for documents, but prefer `[dc-document]` going forward to distinguish among target resources; option syntax remains the same~~\r\n3. Add ~~new shortcodes~~ support for other resources: notes (#4), collections/searches (#3), and (eventually) pages\r\n4. Add support for recognizing resource URLs on their own line, as described [here](https://github.com/documentcloud/wordpress-documentcloud/issues/15#issuecomment-92403067); if #15 were accomplished, then this would only be enabled for versions of WP prior to that\r\n5. Use this implementation as a meta guide for future plugin authors\r\n\r\n**Edited:** Abandoned design of separate shortcodes for different resources. Going to instead parse URL and determine resource type from there."},"comment":{"url":"https://api.github.com/repos/documentcloud/wordpress-documentcloud/issues/comments/97943053","html_url":"https://github.com/documentcloud/wordpress-documentcloud/issues/16#issuecomment-97943053","issue_url":"https://api.github.com/repos/documentcloud/wordpress-documentcloud/issues/16","id":97943053,"user":{"login":"knowtheory","id":192,"avatar_url":"https://avatars.githubusercontent.com/u/192?v=3","gravatar_id":"","url":"https://api.github.com/users/knowtheory","html_url":"https://github.com/knowtheory","followers_url":"https://api.github.com/users/knowtheory/followers","following_url":"https://api.github.com/users/knowtheory/following{/other_user}","gists_url":"https://api.github.com/users/knowtheory/gists{/gist_id}","starred_url":"https://api.github.com/users/knowtheory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knowtheory/subscriptions","organizations_url":"https://api.github.com/users/knowtheory/orgs","repos_url":"https://api.github.com/users/knowtheory/repos","events_url":"https://api.github.com/users/knowtheory/events{/privacy}","received_events_url":"https://api.github.com/users/knowtheory/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T19:43:44Z","updated_at":"2015-04-30T19:43:44Z","body":"@eyeseast thanks to you & @aschweigert for your guidance! :)"}}