Results 1 to 3 of 3

Thread: Fiddle Idea: API for User Fiddles

    You found a bug! We've classified it as FIDDLE-77 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Jan 2010
    Location
    Kansas
    Posts
    522
    Answers
    32

    Default Fiddle Idea: API for User Fiddles

    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:

    Code:
    /api/user/existdissolve
    
    {
        "fiddles":[
            {
                "framework":"Ext JS 4.2.1",
                "id":"2d"
                "description":"A description of some regard",
                "title":"Editable Grid with Mock Data",
                "url":"https://fiddle.sencha.com/#fiddle/2d",
                "user":"existdissolve",
                "createdData":"2013-07-19 21:56:28"
            },
            { ... },
            { ... }
        ],
        "total":10
    }
    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. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    I'm going to open this as a feature request. It may not get high prioritization for a little while.

  3. #3
    Sencha User
    Join Date
    Sep 2015
    Location
    Los Angeles, CA
    Posts
    1

    Default Sencha Fiddle API: Not just read only?

    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"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •