I\'m implementing a URL shortener like bit.ly. For this, I have a Java servlet backend which does a response.redirect(targetURL) for every redirection request.
i want to uniquely shorten strings-file ids to use in urls like the ones on bit.ly etc. I can use ids from a db but i want urls to be random like.
I\'m trying to parse a bit.ly JSON response in javascript. I get the JSON via XmlHttpRequest. var req = new XMLHttpRequest;
I tried to call bit.ly API using this jQuery script: $.get(\'http://api.bit.ly/shorten?login=bitlyapidemo&apiKey=R_0da49e0a9118ff35f52f629d2d71bf07&version=2.0.1&longUrl=www.wordpress.com
I am trying out a simple implementation of a URL shortener such as tinyurl.com or bit.ly. Currently I do a response.sendRedirect(targetURL) in my servlet - which works fine for http/ftp target URLs.
I\'m using yajl_JSON library to produce an NSDictionary from a JSON response for the bit.ly url shorte开发者_C百科ning service.
I\'m new to Flex and wondering what the difference is between these two ActionScript implementations o开发者_如何学Cf the bit.ly API:
This question already has answers here: How to sort an array of associative arrays by value of a given key in PHP?