Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/expand-urls.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Igor Escobar  >  Bitly-PHP  >  examples/expand-urls.php  >  Download  
File: examples/expand-urls.php
Role: Example script
Content type: text/plain
Description: How expand a shorten urls with Bitly-PHP
Class: Bitly-PHP
Expand or shorten URLs using the bit.ly site
Author: By
Last change: - new way to expand urls
Date: 2010-04-02 08:17
Size: 173 bytes
 

Contents

Class file image Download
<?php
    
    
include_once("../bitly.php");
    
    
$bitly  = new Bitly('<your_login>','<api_key>');
    echo 
$bitly->expand('http://bit.ly/b6R4Uf');
    
// will echo the long url
?>