1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

Changed short url provider

This commit is contained in:
sam 2012-05-22 13:40:17 +02:00
parent dc4e482bb2
commit 22774feb8f

View File

@ -177,9 +177,9 @@ window.zerobin = {
/** Get a tinyurl using JSONP */
getTinyURL: function(longURL, success) {
var api = 'http://json-tinyurl.appspot.com/?url=';
var api = 'http://is.gd/create.php?format=json&url=';
$.getJSON(api + encodeURIComponent(longURL) + '&callback=?', function(data){
success(data.tinyurl);
success(data.shorturl);
});
},