Login   Register  
PHP Classes

File: examples/shorten-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/shorten-urls.php  >  Download  
File: examples/shorten-urls.php
Role: Example script
Content type: text/plain
Description: How to shorten an url with Bitly-PHP
Class: Bitly-PHP
Expand or shorten URLs using the bit.ly site
Author: By
Last change: - New simple way to shorten urls
Date: 4 years ago
Size: 193 bytes


Class file image Download

$bitly = new Bitly('<your_login>','<api_key>');
// echo will output the shorten url