PHP Classes

File: examples/statistics-url.php

Recommend this page to a friend!
  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: 14 years ago
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;

?>