Skip to content

Instantly share code, notes, and snippets.

@datapolitical
datapolitical / samplePHPmashapeGist
Created September 13, 2012 22:50 — forked from esseguin/gist:3310332
Sample summary gist for PHP on Mashape
<?php
//Step 1 - Requre the client library
require_once("Bitly.php");
//Step 2 - Instantiate a new client object
$bitly = new Bitly("MY_PUBLIC_KEY", "MY_PRIVATE_KEY", "MY_API_KEY", "MY_LOGIN");
//Step 3 - Return a MashapeResponse object by calling a method
$response = $bitly->getShortenedUrl("http://mashape.com/docs/consume/php");