public function getLists($user, $reverse = null)
	{
		// Check the rate limit for remaining hits
		$this->checkRateLimit('lists', 'list');

		// Determine which type of data was passed for $user
		if (is_numeric($user))
		{
			$data['user_id'] = $user;
		}
		elseif (is_string($user))
		{
			$data['screen_name'] = $user;
		}
		else
		{
			// We don't have a valid entry
			throw new \RuntimeException('The specified username is not in the correct format; must use integer or string');
		}

		// Check if reverse is specified.
		if (!is_null($reverse))
		{
			$data['reverse'] = $reverse;
		}

		// Set the API path
		$path = '/lists/list.json';

		// Send the request.
		return $this->sendRequest($path, 'GET', $data);
	}
public function getLists($user, $reverse = null)
	{
		// Check the rate limit for remaining hits
		$this->checkRateLimit('lists', 'list');

		// Determine which type of data was passed for $user
		if (is_numeric($user))
		{
			$data['user_id'] = $user;
		}
		elseif (is_string($user))
		{
			$data['screen_name'] = $user;
		}
		else
		{
			// We don't have a valid entry
			throw new \RuntimeException('The specified username is not in the correct format; must use integer or string');
		}

		// Check if reverse is specified.
		if (!is_null($reverse))
		{
			$data['reverse'] = $reverse;
		}

		// Set the API path
		$path = '/lists/list.json';

		// Send the request.
		return $this->sendRequest($path, 'GET', $data);
	}
public function getLists ( $ user , $ reverse = null ) { // Check the rate limit for remaining hits $ this -> checkRateLimit ( 'lists' , 'list' ) ; // Determine which type of data was passed for $user if ( is_numeric ( $ user ) ) { $ data [ 'user_id' ] = $ user ; } elseif ( is_string ( $ user ) ) { $ data [ 'screen_name' ] = $ user ; } else { // We don't have a valid entry throw new \ RuntimeException ( 'The specified username is not in the correct format; must use integer or string' ) ; } // Check if reverse is specified. if ( ! is_null ( $ reverse ) ) { $ data [ 'reverse' ] = $ reverse ; } // Set the API path $ path = '/lists/list.json' ; // Send the request. return $ this -> sendRequest ( $ path , 'GET' , $ data ) ; }
Method to get all lists the authenticating or specified user subscribes to, including their own.

@param   mixed    $user     Either an integer containing the user ID or a string containing the screen name.
@param   boolean  $reverse  Set this to true if you would like owned lists to be returned first. See description
above for information on how this parameter works.

@return  array  The decoded JSON response

@since   1.0
@throws  \RuntimeException
Method to get all lists the authenticating or specified user subscribes to including their own .