How to Create v4 Bitly Short link using JavaScript?

219 Views Asked by At

We want to migrate v3 to v4 bitly using javascript. We were using below code in v3 bitly:

var x = "";
$.bitlr({
    apiKey: '......',
    link: longurl,
    anchor: false,
    success: function (newLink) {
        x = newLink;
    }
});
return x;
0

There are 0 best solutions below