wonderfl API Overview
Here are some things wonderfl API developers should know.
-
<username> is the user id, which appears in urls like: http://wonderfl.net/user/<username>
-
<codeid> is the code id, which appears in urls like: http://wonderfl.net/c/<codeid>
-
All API methods are HTTP based.
All of the API methods use HTTP GET methods for now.
Future API methods might use POST or other methods.
-
API is hosted at:
http://api.wonderfl.net/ -
Response data format is JSON.
When request is not valid, response content will be something like:
where stat is "fail" and message has the error message.{"stat":"fail","message":"not found"}
When request is valid, response content will be something like:
where stat is "ok" and ...snip... replaced with API results.{"stat":"ok",...snip...}
-
when calling the API from code posted on wonderfl.net,
you can get your API key through Flashvars.
so don't use your own API key.LoaderInfo(root.loaderInfo).parameters["open_api_key"]
the API key in Flashvars may change once in a while, but if your code gets the key from Flashvars,
future access from the swf will be permitted.