Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/statistics-url.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/statistics-url.php  >  Download  
File: examples/statistics-url.php
Role: Example script
Content type: text/plain
Description: How to get a detailed statistics about a shorted link
Class: Bitly-PHP
Expand or shorten URLs using the bit.ly site
Author: By
Last change: - New simple way to get statistics about a shorten link
Date: 2010-04-02 08:21
Size: 175 bytes
 

Contents

Class file image Download
<?php
    
    
include_once("../bitly.php");
    
    
$bitly     = new Bitly('<your_login>','<api_key>');
    
$bitly->stats('http://bit.ly/b6R4Uf');
    echo 
$bitly->getData()->clicks;

?>