In this tutorial I will show you how to create a link or url shortener app using bitly api. You can also use others like goo.gl etc. to create a link shortener app. Basically link shortener is used for short a long url and then the link is posted in social media. Today I will create that app using Bitly API. First of all you have to create your own account at Bitly and after creating an account you just need a API Key, your Username and a API URL to create this app. So let’s create the App’s Interface first.
So to make this app more professional just create a splash screen. If you don’t know how to create a splash screen then check back my older tutorial. So here I have created a simple splash screen and after a several time it will go to the Home screen.
First of all I have already uploaded some images related to Bitly, one is a logo and another one is full Bitly text logo. Now make the Screen’s Align Horizontal as Center and Align Vertical as Top and make the background as Default or White. Now also set Navigation Bar colour to Deep Orange, as the Bitly website’s main colour is likely Deep Orange. Now drag a Space and make height as 2 percent. After the space just drag a Label and set Text as Powered by and set colour as Blue Gray and then another space and then drag a Image and set image to the Bitly long text logo. That’s how we are informing the app’s users that the app is going with Bitly. So now again make a space of 3 percent and under that drag a Horizontal Arrangement and set Height as Automatic, Width as 80 percent, Background colour as Deep Orange, Align Horizontal & Vertical to Center and IsCard and Is Rounded card. Now in this arrangement drag a TextBox with Width of Fill Parent and Font Size as 18 and Background colour as Deep Orange and Cursor colour as White. Set TextBox name as url_txtbox. After this make a 1 percent space and drag Button with width as 80 percent and Font size of 16 and set Font Bold, set Text as Shorten. Set Button’s name as url_short_btn. Now make 5 percent space and drag a Label where the shorten link will be appear. Set the Label’s Text to link will be appear here… and set name as link_label.
Now you need 2 External Extensions. So download that extensions from https://puravidaapps.com/extensions.php. Download 2 extension JSON Tools and Taiful Clipboard.
Now drag Web, Notifier, JSON Tools, Taifun Clipboard
Go to Bit.ly and login to your account. Click on Menu Bar (Top Right Corner) –> Settings –> Advanced Settings –> API Support
You can see this type of Page
You need Login and API Key. Copy Both and see the Blocks
Paste Login text to userid and API Key to apikey and use that url to call bitly when Button Clicked
After calling Bitly will response with a JSON Text, so we need to convert that text to normal text
When clicked on the Link, this will happen
Download the aia file from below. If the file is not downloaded as .aia file then refresh that download page.
7 thoughts on “Create a Link Shortener App using API”
Thanks for finally writing about >Create a Link Shortener App using API – TechStudy
Welcome, keep visiting
This is the right blog for anyone who hopes to find out about this topic.
You realize so much its almost tough to argue with you (not that I personally would
want to…HaHa). You definitely put a new spin on a topic that’s been discussed for years.
Wonderful stuff, just great!
This post will assist the internet people for building up new website or even a weblog
from start to end.
Greetings! This is my 1st comment here so I just wanted to give a quick shout out and tell you I
really enjoy reading through your blog posts.
Can you recommend any other blogs/websites/forums
that go over the same topics? Thanks a ton!
It’s genuinely very complex in this busy life to listen news
on TV, thus I only use the web for that reason, and
take the most up-to-date news.
Hi there! I realize this is sort of off-topic but I needed to ask.
Does building a well-established website such as
yours require a massive amount work? I am completely new to blogging but I do write in my journal on a daily basis.
I’d like to start a blog so I will be able
to share my personal experience and thoughts online.
Please let me know if you have any kind of recommendations or tips for brand new
aspiring bloggers. Thankyou!