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:
parent
dc4e482bb2
commit
22774feb8f
@ -177,9 +177,9 @@ window.zerobin = {
|
|||||||
|
|
||||||
/** Get a tinyurl using JSONP */
|
/** Get a tinyurl using JSONP */
|
||||||
getTinyURL: function(longURL, success) {
|
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){
|
$.getJSON(api + encodeURIComponent(longURL) + '&callback=?', function(data){
|
||||||
success(data.tinyurl);
|
success(data.shorturl);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user