src/Users.php
public function getUserContribs($ucuser = null, $ucuserprefix = null, $uclimit = null, $ucstart = null, $ucend = null, $uccontinue = null,
		$ucdir = null, array $ucnamespace = null, array $ucprop = null, array $ucshow = null, $uctag = null, $uctoponly = null
	)
	{
		// Build the request path.
		$path = '?action=query&list=usercontribs';

		if (isset($ucuser))
		{
			$path .= '&ucuser=' . $ucuser;
		}

		if (isset($ucuserprefix))
		{
			$path .= '&ucuserprefix=' . $ucuserprefix;
		}

		if (isset($uclimit))
		{
			$path .= '&uclimit=' . $uclimit;
		}

		if (isset($ucstart))
		{
			$path .= '&ucstart=' . $ucstart;
		}

		if (isset($ucend))
		{
			$path .= '&ucend=' . $ucend;
		}

		if ($uccontinue)
		{
			$path .= '&uccontinue=';
		}

		if (isset($ucdir))
		{
			$path .= '&ucdir=' . $ucdir;
		}

		if (isset($ucnamespace))
		{
			$path .= '&ucnamespace=' . $this->buildParameter($ucnamespace);
		}

		if (isset($ucprop))
		{
			$path .= '&ucprop=' . $this->buildParameter($ucprop);
		}

		if (isset($ucshow))
		{
			$path .= '&ucshow=' . $this->buildParameter($ucshow);
		}

		if (isset($uctag))
		{
			$path .= '&uctag=' . $uctag;
		}

		if (isset($uctoponly))
		{
			$path .= '&uctoponly=' . $uctoponly;
		}

		// Send the request.
		$response = $this->client->get($this->fetchUrl($path));

		return $this->validateResponse($response);
	}
public function getUserContribs($ucuser = null, $ucuserprefix = null, $uclimit = null, $ucstart = null, $ucend = null, $uccontinue = null,
		$ucdir = null, array $ucnamespace = null, array $ucprop = null, array $ucshow = null, $uctag = null, $uctoponly = null
	)
	{
		// Build the request path.
		$path = '?action=query&list=usercontribs';

		if (isset($ucuser))
		{
			$path .= '&ucuser=' . $ucuser;
		}

		if (isset($ucuserprefix))
		{
			$path .= '&ucuserprefix=' . $ucuserprefix;
		}

		if (isset($uclimit))
		{
			$path .= '&uclimit=' . $uclimit;
		}

		if (isset($ucstart))
		{
			$path .= '&ucstart=' . $ucstart;
		}

		if (isset($ucend))
		{
			$path .= '&ucend=' . $ucend;
		}

		if ($uccontinue)
		{
			$path .= '&uccontinue=';
		}

		if (isset($ucdir))
		{
			$path .= '&ucdir=' . $ucdir;
		}

		if (isset($ucnamespace))
		{
			$path .= '&ucnamespace=' . $this->buildParameter($ucnamespace);
		}

		if (isset($ucprop))
		{
			$path .= '&ucprop=' . $this->buildParameter($ucprop);
		}

		if (isset($ucshow))
		{
			$path .= '&ucshow=' . $this->buildParameter($ucshow);
		}

		if (isset($uctag))
		{
			$path .= '&uctag=' . $uctag;
		}

		if (isset($uctoponly))
		{
			$path .= '&uctoponly=' . $uctoponly;
		}

		// Send the request.
		$response = $this->client->get($this->fetchUrl($path));

		return $this->validateResponse($response);
	}
public function getUserContribs ( $ ucuser = null , $ ucuserprefix = null , $ uclimit = null , $ ucstart = null , $ ucend = null , $ uccontinue = null , $ ucdir = null , array $ ucnamespace = null , array $ ucprop = null , array $ ucshow = null , $ uctag = null , $ uctoponly = null ) { // Build the request path. $ path = '?action=query&list=usercontribs' ; if ( isset ( $ ucuser ) ) { $ path .= '&ucuser=' . $ ucuser ; } if ( isset ( $ ucuserprefix ) ) { $ path .= '&ucuserprefix=' . $ ucuserprefix ; } if ( isset ( $ uclimit ) ) { $ path .= '&uclimit=' . $ uclimit ; } if ( isset ( $ ucstart ) ) { $ path .= '&ucstart=' . $ ucstart ; } if ( isset ( $ ucend ) ) { $ path .= '&ucend=' . $ ucend ; } if ( $ uccontinue ) { $ path .= '&uccontinue=' ; } if ( isset ( $ ucdir ) ) { $ path .= '&ucdir=' . $ ucdir ; } if ( isset ( $ ucnamespace ) ) { $ path .= '&ucnamespace=' . $ this -> buildParameter ( $ ucnamespace ) ; } if ( isset ( $ ucprop ) ) { $ path .= '&ucprop=' . $ this -> buildParameter ( $ ucprop ) ; } if ( isset ( $ ucshow ) ) { $ path .= '&ucshow=' . $ this -> buildParameter ( $ ucshow ) ; } if ( isset ( $ uctag ) ) { $ path .= '&uctag=' . $ uctag ; } if ( isset ( $ uctoponly ) ) { $ path .= '&uctoponly=' . $ uctoponly ; } // Send the request. $ response = $ this -> client -> get ( $ this -> fetchUrl ( $ path ) ) ; return $ this -> validateResponse ( $ response ) ; }
Method to get user contributions.

@param   string   $ucuser        The users to retrieve contributions for.
@param   string   $ucuserprefix  Retrieve contibutions for all users whose names begin with this value.
@param   integer  $uclimit       The users to retrieve contributions for.
@param   string   $ucstart       The start timestamp to return from.
@param   string   $ucend         The end timestamp to return to.
@param   boolean  $uccontinue    When more results are available, use this to continue.
@param   string   $ucdir         In which direction to enumerate.
@param   array    $ucnamespace   Only list contributions in these namespaces.
@param   array    $ucprop        Include additional pieces of information.
@param   array    $ucshow        Show only items that meet this criteria.
@param   string   $uctag         Only list revisions tagged with this tag.
@param   string   $uctoponly	    Only list changes which are the latest revision

@return  object

@since   1.0
Method to get user contributions .