Class MyBitly

Description

Located in /class.mybitly.php (line 17)


	
			
Method Summary
static string processCurl (string $ApiUrl)
MyBitly __construct (string $Username, string $ApiKey)
String expandLink (string $Link)
string getLastUrlRequest ()
BitlyInfo linkInfo (string $Link)
BitlyCollection linksInfo (array $Links)
BitlyCollection linksStats (array $Links)
BitlyStats linkStats (string $Link)
string shortenLink (string $Link)
BitlyCollection shortenLinks (array $Links)
Methods
static method processCurl (line 369)

Handles the CURL requests to api.bit.ly

  • access: public
static string processCurl (string $ApiUrl)
  • string $ApiUrl
Constructor __construct (line 40)

Constructor

  • access: public
MyBitly __construct (string $Username, string $ApiKey)
  • string $Username
  • string $ApiKey
expandLink (line 215)

Uses the expand functionality of the Bit.ly API.

  • access: public
String expandLink (string $Link)
  • string $Link
getLastUrlRequest (line 321)

Gets the url of the last processed API request.

  • access: public
string getLastUrlRequest ()
linkInfo (line 244)

Get Link Info

  • access: public
BitlyInfo linkInfo (string $Link)
  • string $Link
linksInfo (line 274)

Gets info for multiple links using a single REST query.

  • access: public
BitlyCollection linksInfo (array $Links)
  • array $Links
linksStats (line 166)

Gets the link stats for multiple links.

  • access: public
BitlyCollection linksStats (array $Links)
  • array $Links
linkStats (line 138)

Gets the link stats.

  • access: public
BitlyStats linkStats (string $Link)
  • string $Link
shortenLink (line 62)

Creates a shorten URL and returns it. If an error

occurs an exception is flung with the error message

  • access: public
string shortenLink (string $Link)
  • string $Link
shortenLinks (line 90)

Shortens multiple links in a single REST query.

  • access: public
BitlyCollection shortenLinks (array $Links)
  • array $Links

Documentation generated on Thu, 22 Apr 2010 01:13:39 +0100 by phpDocumentor 1.4.1