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 existdissolve's Avatar
    Join Date
    Jan 2010
    Location
    Kansas
    Posts
    522
    Answers
    31
    Vote Rating
    85
    existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice

      0  

    Default Unanswered: Fiddle Idea: API for User Fiddles

    Unanswered: 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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,347
    Answers
    3542
    Vote Rating
    846
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


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

Thread Participants: 1