Generate Bit.ly Short URLs Using PHP – API Version 3

We have share how to create Bit.ly short URLs using PHP.Bit.ly is a powerful API to generate short URL. To use this API you have to signup for an API key.The API also provides methods to get the long URL from a short one, validate a short one, and also get all sorts of statistics about a URL that you’ve shortened using bit.ly.
Step 1 Create Account
If you do not have a Bit.ly account Click here!.
Step 2 Create an OAuth application
Next step create your API keys. Click here!
webhaunt-generate-bitly-short-url-using-php-api-version-1
Then click “Get Registration Code” Button
Step 3 Create Your App
You will receive an email with the authentication link. Click the link, and fill your information. then click “Create Your App” Button.
webhaunt-generate-bitly-short-url-using-php-api-version-2
Step 3 Client ID and Client Secret
Your Client ID and Client Secret. You will need to generate an Access Token.
webhaunt-generate-bitly-short-url-using-php-api-version-3 webhaunt-generate-bitly-short-url-using-php-api-version-4
Step 4 Using bit.ly with PHP
Here’s how you can create short URLs and expand short URLs using Bit.ly.
I-Returns Short URL

II-Returns Expanded URL

III- Returns result form URL

IV- Final result