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

Class: Services_ShortURL_Googl

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

Class Overview

Services_ShortURL_Common
   |
   --Services_ShortURL_Googl

Interface for creating/expanding goo.gl links


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2011 Hideyuki Shimooka <shimooka@doyouphp.jp>

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 42]
Interface for creating/expanding goo.gl links


[ Top ]


Class Variables

$api =  'https://www.googleapis.com/urlshortener/v1/url'

[line 52]

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

Type:   string


[ Top ]



Method Detail

__construct (Constructor)   [line 60]

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

Constructor
  • Access: public

Overrides Services_ShortURL_Common::__construct() (Constructor)

Parameters:

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

[ Top ]

expand   [line 102]

string expand( string $url)

Shorten a URL using http://goo.gl

Overrides Services_ShortURL_Common::expand() (Default expand method)

Parameters:

string   $url   —  The URL to shorten

[ Top ]

shorten   [line 73]

string shorten( string $url)

Shorten a URL using http://goo.gl

Parameters:

string   $url   —  The URL to shorten

[ Top ]


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