TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sourabh Dhiman
NA
323
57.9k
Long url To Short Url.
Nov 17 2019 1:06 AM
$(document).ready(function () {
var login = "o_6m51q5m49v";
var api_key = "88b9679a15d63f8a096be28e37461a9b872073f1";
var long_url = "https://twitter.com/about/resources/buttons#tweet";
get_short_url(long_url, login, api_key, function(short_url) {
console.log(short_url);
});
function get_short_url(long_url, login, api_key, func)
{
$.getJSON(
"http://api.bitly.com/v3/shorten?callback=?",
{
"format": "json",
"apiKey": api_key,
"login": login,
"longUrl": long_url
},
function(response)
{
func(response.data.url);
}
);
}
});
Please check this code . i will check this code output in console . Undefine output . Please check this what's problem here
Reply
Answers (
2
)
Jquery DataTable ReInitialize Not Working
Tiny api for use url shortner.