Source for file Common.php
Documentation is available at Common.php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
* Common class for Digg API endpoints
* LICENSE: This source file is subject to version 3.0 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_0.txt. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to license@php.net so we can mail you a copy immediately.
* @author Joe Stump <joe@joestump.net>
* @copyright 1997-2007 The PHP Group
* @license http://www.php.net/license/3_0.txt PHP License 3.0
* @link http://pear.php.net/package/Services_Digg
require_once 'Services/Digg/Response.php';
* @author Joe Stump <joe@joestump.net>
* Raw response of last API call
* @var string $lastResponse
* @see Services_Digg_Common::$lastCall
* Send a request to the API
* @param string $endPoint Endpoint of API call
* @param array $params GET arguments of API call
protected function sendRequest($endPoint, $params = array ())
if (!isset ($params['type'])) {
$params['appkey'] = Services_Digg ::$appKey;
foreach ($params as $key => $val) {
$sets[] = $key . '=' . urlencode ($val);
return $response->parse ();
} catch (Services_Digg_Response_Exception $e) {
Documentation generated on Fri, 10 Jul 2009 01:30:03 +0000 by phpDocumentor 1.4.2. PEAR Logo Copyright © PHP Group 2004.
|