Services_ShortURL
[ class tree: Services_ShortURL ] [ index: Services_ShortURL ] [ all elements ]

Class: Services_ShortURL_Bitly

Source Location: /Services_ShortURL-0.3.1/Services/ShortURL/Bitly.php

Class Overview

Services_ShortURL_Common
   |
   --Services_ShortURL_Bitly

Interface for creating/expanding bit.ly links


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: Services_ShortURL_Common

Services_ShortURL_Common::__construct()
Constructor
Services_ShortURL_Common::accept()
Acceptor pattern
Services_ShortURL_Common::expand()
Default expand method
Services_ShortURL_Common::info()
Fetch information about the short URL
Services_ShortURL_Common::stats()
Fetch information about the short URL

Class Details

[line 41]
Interface for creating/expanding bit.ly links


[ Top ]


Class Variables

$api =  'http://api.bitly.com'

[line 50]

API URL
  • Var: The URL for the API
  • Access: protected

Type:   string


[ Top ]



Method Detail

__construct (Constructor)   [line 61]

void __construct( [array $options = array()], [HTTP_Request2 $req = null])

Constructor

Overrides Services_ShortURL_Common::__construct() (Constructor)

Parameters:

array   $options   —  The service options array
object   $req   —  The request object

[ Top ]

sendRequest   [line 164]

object Instance sendRequest( string $url)

Send a request to http://bit.ly

Parameters:

string   $url   —  The URL to send the request to

[ Top ]

shorten   [line 91]

string shorten( string $url)

Shorten a URL using http://bit.ly

Parameters:

string   $url   —  The URL to shorten

[ Top ]

validate   [line 129]

boolean validate( )

Validate login credentials http://bit.ly

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:43:32 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.