public function create($name, $mode = null, $description = null)
	{
		// Check the rate limit for remaining hits
		$this->checkRateLimit('lists', 'create');

		$data = array();

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

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

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

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

		// Send the request.
		return $this->sendRequest($path, 'POST', $data);
	}
public function create($name, $mode = null, $description = null)
	{
		// Check the rate limit for remaining hits
		$this->checkRateLimit('lists', 'create');

		$data = array();

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

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

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

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

		// Send the request.
		return $this->sendRequest($path, 'POST', $data);
	}
public function create ( $ name , $ mode = null , $ description = null ) { // Check the rate limit for remaining hits $ this -> checkRateLimit ( 'lists' , 'create' ) ; $ data = array ( ) ; // Check if name is specified. if ( $ name ) { $ data [ 'name' ] = $ name ; } // Check if mode is specified. if ( $ mode ) { $ data [ 'mode' ] = $ mode ; } // Check if description is specified. if ( $ description ) { $ data [ 'description' ] = $ description ; } // Set the API path $ path = '/lists/create.json' ; // Send the request. return $ this -> sendRequest ( $ path , 'POST' , $ data ) ; }
Method to create a new list for the authenticated user.

@param   string  $name         The name of the list.
@param   string  $mode         Whether your list is public or private. Values can be public or private. If no mode is
specified the list will be public.
@param   string  $description  The description to give the list.

@return  array  The decoded JSON response

@since   1.0
Method to create a new list for the authenticated user .