API for developers

Example of the URL:

This is an example for GET request, please don't forget to encode the url properly before sending. Find more in examples section.

http://ffsurl.com/api/create-url/?url=http://www.example.com/

or you can send POST request with "url" parameter on the same address:

http://ffsurl.com/api/create-url/

ActionScript 3

GET request:

var myURLReq:URLRequest = new URLRequest(); myURLReq.url = "http://ffsurl.com/api/create-url/?url=http%3A%2F%2Fexample.com%2F%3Fvar%3Dsomething%2Breally%2Blong"; var myURLLoader:URLLoader = new URLLoader(); myURLLoader.dataFormat = URLLoaderDataFormat.BINARY; myURLLoader.addEventListener("complete", onComplete); myURLLoad.load(myURLReq); function onComplete(e) { var someLoader:Loader = new Loader(); addChild(someLoader); someLoader.loadBytes((ByteArray) (myURLLoad.data)); }