appdotnet / api-spec

App.net API Documentation is on the web at https://developers.app.net. Source for these docs is in the new-docs branch here. Please use the issue tracker and submit pull requests! Help us build the real-time social service where users and developers come first, not advertisers.
https://developers.app.net
950 stars 98 forks source link

Support of oEmbed? #189

Open jaredcwhite opened 12 years ago

jaredcwhite commented 12 years ago

I was wondering if App.net will be adding oEmbed support so services like Embed.ly can look up a URL like https://alpha.app.net/rickcaffeinated/post/413557 and bring back a bunch of useful data that could be used to construct an "embedded" App.net post. (similar to the embedded you-know-what of the you-know-who social network). I know I can just access the API endpoint and get back awesome JSON, but this might be a nice to have at some point.

kosso commented 12 years ago

They could do that now that some parts of the API don't require authentication :

eg: the data for that post is at : https://alpha-api.app.net/stream/0/posts/413557

;) K

On 13 September 2012 23:00, Jared White notifications@github.com wrote:

I was wondering if App.net will be adding oEmbed support so services like Embed.ly can look up a URL like https://alpha.app.net/rickcaffeinated/post/413557 and bring back a bunch of useful data that could be used to construct an "embedded" App.net post. (similar to the embedded you-know-what of the you-know-who social network). I know I can just access the API endpoint and get back awesome JSON, but this might be a nice to have at some point.

— Reply to this email directly or view it on GitHubhttps://github.com/appdotnet/api-spec/issues/189.

jaredcwhite commented 12 years ago

You could be right, Embed.ly may be using custom APIs under the hood and oEmbed is just a format they expose, so they'd just have to add App.net as one of their supported services. Maybe I'll shoot off a support email. :)

jxpx777 commented 12 years ago

I think @jaredcwhite gave up too easily. Embed.ly and oohEmbed are providing oEmbed for some sites but some others such as Flickr, Viddler, Hulu, and Vimeo support it directly.

I am working on an oEmbed plugin for Jekyll and wanted to allow embedding of Alpha posts, but without proper support for oEmbed, it will require some custom logic to support rather than just throwing the URL at the ruby-oembed gem. Please do consider providing an oEmbed endpoint. In reality, it will simply return the same data that you linked before probably only by pinging a different endpoint to get the data in a uniform fashion.

berg commented 12 years ago

Great idea, thanks! Let me see what I can do.