kungkk / Bitly-Datasource-for-CakePHP

Bit.ly Datasource for CakePHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Overview

A simple Datasource for the Bit.ly standard API. Documentation for the api can be found here: http://code.google.com/p/bitly-api/wiki/ApiDocumentation

#Usage

<?php
  class BitlyController extends AppController {
     
     var $uses = array();
     
     function index() {
        $url = 'http://bit.ly/9FnclE';
        App::Import('ConnectionManager');
        $this->Bitly = ConnectionManager::getDataSource('bitly');
        $response = $this->Bitly->stats($url);
        debug($response); 
     }
  }
?>

#Contributors

  • jonathanbradley
  • josegonzalez

About

Bit.ly Datasource for CakePHP