wonderfl - build flash online

wonderfl API Overview

<back to wonderfl API
>next to wonderfl API Methods

Here are some things wonderfl API developers should know.

  1. <username> is the user id, which appears in urls like: http://wonderfl.net/user/<username>
  2. <codeid> is the code id, which appears in urls like: http://wonderfl.net/c/<codeid>
  3. 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.
  4. API is hosted at:
    http://api.wonderfl.net/
  5. Response data format is JSON.
    When request is not valid, response content will be something like:
    {"stat":"fail","message":"not found"}
    where stat is "fail" and message has the error message.
    When request is valid, response content will be something like:
    {"stat":"ok",...snip...}
    where stat is "ok" and ...snip... replaced with API results.
  6. when calling the API from code posted on wonderfl.net,
    you can get your API key through Flashvars.
    LoaderInfo(root.loaderInfo).parameters["open_api_key"]
    so don't use your own 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.

ページの先頭へ戻る