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

Class: Services_ShortURL_Digg

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

Class Overview

Services_ShortURL_Common
   |
   --Services_ShortURL_Digg

Interface for creating/expanding Digg 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 Digg links


[ Top ]


Class Variables

$api =  'http://services.digg.com/url/short'

[line 50]

Location of API
  • Var: Location of 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 ]

expand   [line 102]

string expand( string $url)

Expand a http://digg.com short URL

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

Parameters:

string   $url   —  The short URL to expand

[ Top ]

sendRequest   [line 128]

object Instance sendRequest( string $url)

Send a request to http://services.digg.com

Parameters:

string   $url   —  The URL to send the request to

[ Top ]

shorten   [line 82]

string shorten( string $url)

Shorten a URL using http://digg.com

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.