src/Users.php
public function getCurrentUserInfo(array $uiprop = null)
	{
		// Build the request path.
		$path = '?action=query&meta=userinfo';

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

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

		return $this->validateResponse($response);
	}
public function getCurrentUserInfo(array $uiprop = null)
	{
		// Build the request path.
		$path = '?action=query&meta=userinfo';

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

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

		return $this->validateResponse($response);
	}
public function getCurrentUserInfo ( array $ uiprop = null ) { // Build the request path. $ path = '?action=query&meta=userinfo' ; if ( isset ( $ uiprop ) ) { $ path .= '&uiprop' . $ this -> buildParameter ( $ uiprop ) ; } // Send the request. $ response = $ this -> client -> get ( $ this -> fetchUrl ( $ path ) ) ; return $ this -> validateResponse ( $ response ) ; }
Method to get current user information.

@param   array  $uiprop  What pieces of information to include.

@return  object

@since   1.0
Method to get current user information .