BitLy (bit.ly) PHP Class – Shorten and Expand URLs (and Hashes) with BitLy API - Comment Page: 1
BitLy (bit.ly) is a service which allows users to shorten, expand, share and track URLs (links). bit.ly can be accessed through bit.ly website and a robust and open API.
Example:
Shorten http://www.if-not-true-then-false.com/ url -> http://bit.ly/8cZ1fb
Expand http://bit.ly/8cZ1fb url -> http://www.if-not-true-then-false.com/
This post deals with bit.ly API usage with a simple PHP Class. This PHP class allows to shorten normal urls, expand bit.ly urls and expand bit.ly hashes.
BitLy PHP Class
<?php
class BitLy {
private $break;
private $api_version;
private $format;
private $login;
private $apikey;
// Constructor for BitLy class
public...
[…] The rest is here: BitLy (bit.ly) PHP Class – Shorten and Expand URLs (and Hashes … […]
Thanks a lot, great class and using this in an upcoming website. Cheers.
Thank you for your feedback! Glad to hear that you like this class, and even happier to hear that you are using this class in the future project. :)
Nice Class..Thanx
Caught exception: : 403 RATE_LIMIT_EXCEEDED
i m getting this error. pls help