View Full Version : [OPEN] Fiddle Idea: API for User Fiddles

31 Jul 2013, 8:31 PM
I think it would be pretty cool to have a simple, read-only API available for users' fiddles.

A real use case would be WordPress integration. For example, if the API would allow you to retrieve all the fiddles for a given user, you could create a plugin for the content editor that would allow you to quickly insert fiddles based on user. The returned data could then be used to create embedded fiddles.

So the purpose, as I see it, would be more about giving back the meta-data needed to craft an embedded fiddle, rather than providing the full data for the fiddle.

I'm thinking a result like so would be a good start:


"framework":"Ext JS 4.2.1",
"description":"A description of some regard",
"title":"Editable Grid with Mock Data",
"createdData":"2013-07-19 21:56:28"
{ ... },
{ ... }

In order to facilitate users with a large number of fiddles, perhaps the API could accept a start/limit combo for paging, and maybe accept an optional query argument as well for searching within a user's fiddle collection.

2 Aug 2013, 10:18 AM
I'm going to open this as a feature request. It may not get high prioritization for a little while.

21 Sep 2015, 10:27 AM
I just found out about Sencha fiddle today, and I was thinking of a use case where I wanted to take two fiddles and alternate between them every second (to help get the CSS differences made clear).

Extending this, you could have several sequentially progressive fiddles (say, in a tutorial course), read them in, and execute them every n milliseconds to show a sort of flip book of fiddles.

Not sure if this would be a use case for an API, a plugin, or just a feature in Sencha fiddle, but the first thing I searched for was "Sencha fiddle API"