This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"); |