This is currently a simple JavaScript project allowing to retrieve all fiddles of a specified user from jsfiddle.net. Part of this project is also a page for retrieving and printing all fiddles in stringified JSON format. You can access the page directly HERE.
Data are retrieved using a combination of JSFiddle's own JSONP service (to retrieve fiddle list) and YQL to retrieve a HTML content of every fiddle and save HTML/CSS/JS code.
To access jsfiddle-utils functionality you need these scripts loaded:
- jQuery 1.6.4+
- Cross-Domain AJAX jQuery plug-in by James Padosley (more info here)
- project's jsfiddleutils.js
jsfiddle.retrieve(username, options, callback);Where:
- username - name of the user you want to retrieve all fiddles from
- options - jsfiddle's webservice options (see documentation)
- callback(data) - callback function that will get called when data are available
Data Structure (see documentation):
"status": "ok",
"list": [
{
"description": "...", // description of the fiddle
"author": "{username}", // name of the author
"url": "...", // url of the fiddle
"created": "...", // creation date
"framework": "...", // used framwork
"version": 123, // base version number
"latest_version": 234, // latest version number
"title": "..." // title of the fiddle
"code_html": "..." // HTML code of the fiddle
"code_css": "..." // CSS code of the fiddle
"code_js": "..." // JavaScript code of the fiddle
},
// ...
],
"overallResultSetCount": 123 // number of the results