Source for file Users.php
Documentation is available at Users.php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
* Users endpoint for Digg API
* 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
* @author Joe Stump <joe@joestump.net>
* @throws Services_Digg_Exception
public function getAll(array $params = array ())
* @param string $username Username to fetch
* @throws Services_Digg_Exception
public function getUserByName($username, array $params = array ())
return $result->users [0 ];
* Get a list of users by names
* @param array $usernames An array of usernames
* @param array $params Digg API arguments
* @throws Services_Digg_Exception
public function getUsersByName(array $usernames, array $params = array ())
$endPoint = '/users/' . implode(',', $usernames);
* Get a list of users' comments
* @param array $usernames An array of usernames
* @param array $params Digg API arguments
* @throws Services_Digg_Exception
$endPoint = '/users/' . implode(',', $usernames) . '/comments';
* Get a list of users' diggs
* @param array $usernames An array of usernames
* @param array $params Digg API arguments
* @throws Services_Digg_Exception
public function getUsersDiggs(array $usernames, array $params = array ())
$endPoint = '/users/' . implode(',', $usernames) . '/diggs';
Documentation generated on Tue, 04 Dec 2007 15:00:13 -0500 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.
|