Discussions

QUsing bit.ly api to shorten link with JSON

I'm struggling to get this to work. Took some code from stackoverflow but what I want to do it be able to put a link into a text box, click a button and return a shortened link via the bit.ly api in another text box. what am I doing wrong?!

Sample Code

AAnswer to: Using bit.ly api to shorten link with JSON

dtristan111

I modified your code (made it unobtrusive) and included some comments. I think it should work now, can't test it tho as I don't have a bitly account.

This are some things you need to look:
- are you registered with bitly and have proper login and apikey values?
- you forgot to include jQuery library, $.getJSON is a jQuery function
http://api.jquery.com/jQuery.getJSON/

jhon0009

I am also struggling with the same issue and take a help of https://hpsupports.co/hp-customer-support/ but my problem didn't solve properly, can anyone guide me properly to do the thing? if it's possible it would be very helpful to me.

hpprintercare

This is very good to short url with bit.ly and use the url anywhere. I mostly use bit.ly to short my https://www.hpprintersupportpro.us/ url.

laurainewilliams

webroot safe - SecureAnywhere AntiVirus's new approach delivers faster, more effective virus protection that's always up to date. Won't conflict with other security programs, providing an added layer of protection. Also identifies and protects against new threats as soon as they emerge - without ever having to download security updates. Scans PCs with blazing fast speed and won't disturb your work.
http://install-webroot.com/safe/

hpprintersetup

At the point when the AOL email went down, there were some explanations for the problems, for example, inconvenience in the login page, server downtime, sign-in issues, and other secret key related glitches. Thus, if your AOL email is additionally demonstrating a few issues in the present date, at that point you can impart the subtle elements to the specialized AOL email support group to settle the circumstance in time.
http://www.brotherprintercustomerservice.com/blog/aol-tech-support-number/

techspeedyseo1

Garmin map updates are available and if you want to download free map updates for Garmin GPS sat navs then our short and easy to understand guide will tell everything about Garmin free map updates that are official, reliable, and accurate.
This independent advice will work for any owners of Nuvi GPS and Zumo motorcycle GPS products and if want to update your maps for free we can show you just how easy it is to download this up to date content direct from Garmin – meaning it will be 100% official and reliable.
http://www.121techsupport.co/garmim-map-update/

aoldesktopgold1

I extend you heartiest thanks for sharing such a useful article which has helped me and will surely help many other users. I really appreciate your efforts in writing such useful content. Please keep on sharing similar posts in the future. https://www.desktop-gold.com/

Post a question

You can post JavaScript, HTML, CSS related questions with attached reference to actual codes and get the answers likewise.

Ask a question

  • 1. Click the ‘Post a question’ above

  • 2. Enter question details, reference code, and click ‘Add question’ button

  • 3. Question will be paired with the code on display

Add an answer

  • 1. Choose a question

  • 2. Enter answer details, attach the reference code and click ‘add answer’ button

  • 3. Your answer will accompanied with attached code

Tag