Creates a new Engage application.

@param array $params

@link http://developers.janrain.com/documentation/api-methods/partner/app/create/
185158
public function create(array $params)
	{
		if (!isset($params['email'])) {
			throw new MissingArgumentException('email');
		}

		if (!isset($params['name'])) {
			throw new MissingArgumentException('name');
		}

		if (!isset($params['domain'])) {
			throw new MissingArgumentException('domain');
		}

		return $this->post('app/create', $params);
	}
1355464
public function addParams(array $params): self
    {
        foreach ($params as $name => $value) {
            $this->addParam($name, $value);
        }

        return $this;
    }
1204230
private function request(array $params = array())
  {
    $request = $this->client->createRequest('POST', $this->url);

    $body = $request->getBody();
    foreach ($params as $key => $value) {
      $body->setField($key, $value);
    }

    try {
      $response = $this->client->send($request);
    } catch (\Exception $e) {
      throw new \ScottRobertson\Premailer\Exception\Request($e->getMessage());
    }

    return new Response(
      $response->json(),
      $this->client
    );
  }
952215
public function action_create( $params )
	{
		$name = array_shift( $params );
		
		$file = \DB\Migrator::path( $name );
		
		\CCFile::write( $file, "# ---> up\n\n\n\n# ---> down\n\n" );
	}
560905
public function create($params = array()) {
        $this->checkPermissions('create');
        
        return $this->client->createData($this->resourceName, $params);
    }
138072
private function createDefaultClient(array $params)
    {
        $stack = HandlerStack::create();

        if (isset($params['cache']) && $params['cache'] === true) {
            $cache = new CacheMiddleware($this->getCacheStrategy());

            $stack->push($cache, 'snorlax-cache');
        }

        if (isset($params['log']) && $params['log'] === true) {
            $logger = new Logger($this->getLogger());
            $logger->setLogLevel(LogLevel::DEBUG);
            $logger->setRequestLoggingEnabled();
            $logger->setFormatter(new MessageFormatter(
                'REQ "{method} {target} HTTP/{version}"',
                'RES "{method} {target} HTTP/{version}" {code}'
            ));

            $stack->push($logger, 'snorlax-logger');
        }

        $params = array_merge($params, ['handler' => $stack]);

        return new Client($params);
    }
901601
public function create($params, $optParams = [])
    {
        if (!$params instanceof Firewall) {
            throw new InvalidParamException(Firewall::class.' is required!');
        }

        return $this->sendRequest([], [
            'restAction' => 'create',
            'postParams' => $params->toArray(),
            'getParams' => $optParams,
        ], function ($response) {
            return isset($response->data) ? new Firewall($response->data) : $response;
        });
    }
1069791
public function createWebsite(...$params)
    {
        $name      = \array_shift($params);
        $ipAddress = \array_shift($params);
        $https     = \array_shift($params);
        $domains   = \array_shift($params);

        if ($this->version === 1)
        {
            $siteApps = $params;

            return $this->createV1Website($name, $ipAddress, $https, $domains, ...$siteApps);
        }

        $certificate = \array_shift($params);
        $siteApps    = $params;

        return $this->createV2Website($name, $ipAddress, $https, $domains, $certificate, ...$siteApps);

    }
876418
public function addParamsNavStart($params = [])
    {
        if (is_array($params) && !empty($params))
        {
            $this->navStartParams = array_merge(is_array($this->navStartParams) ? $this->navStartParams : array(), $params);
        }
    }
250669
public function create(array $parameters)
    {
        $supported = $this->isSupported('create');

        return (true === $supported) ? $this->makeRequest($this->endpoint.'/new', $parameters, 'POST') : $supported;
    }
922200
public function action_build( $params ) 
	{
		$test_directories = array();

		// check if there is an application tests direcotry
		if ( is_dir( APPPATH.CCDIR_TEST ) )
		{
			$this->line( 'found tests in your application.' );
			$test_directories['App'] = APPPATH.CCDIR_TEST;
		}

		// add the core tests
		if ( $params['-include-core'] )
		{
			$test_directories['Core'] = COREPATH.'../'.CCDIR_TEST;
		}

		// check all bundles for tests
		foreach( \CCFinder::$bundles as $bundle => $path )
		{
			if ( is_dir( $path.CCDIR_TEST ) )
			{
				$this->info( 'found tests in the '.$bundle.' bundle.' );
				$test_directories[$bundle] = $path.CCDIR_TEST;
			}
		}

		// we have to remove CCROOT from the paths to get the relative one
		foreach( $test_directories as $key => $dir )
		{
			$test_directories[$key] = './'.str_replace( CCROOT, '', $dir );
		}

		// finally generate an phpunit.xml file
		$xml = new \DOMDocument("1.0", 'UTF-8');

		$root = $xml->createElement( "phpunit" );


		$testsuites = $xml->createElement( "testsuites" );

		foreach( $test_directories as $key => $dir )
		{

			$testsuite = $xml->createElement( "testsuite" );
			$testsuite->setAttribute( 'name', $key.' tests' );

			$directory = $xml->createElement( "directory", $dir );
			$directory->setAttribute( 'suffix', EXT );

			$testsuite->appendChild( $directory );

			$testsuites->appendChild( $testsuite );
		}

		$root->appendChild( $testsuites );
		$root = $xml->appendChild( $root );
		$root->setAttribute( 'colors', 'true' );
		$root->setAttribute( 'bootstrap', 'boot/phpunit.php' );

		$xml->formatOutput = true;

		\CCFile::write( CCROOT.'phpunit.xml', $xml->saveXML() );
	}
511402
public function create($appId, $input, array $queryParams = [])
    {
        if ($input instanceof ScanBuilder) {
            $inputArray = $input->toArray();
            $defaultInput = true;
        } else {
            $inputArray = [];
            foreach ($input as $key => $value) {
                if ($value instanceof BaseBuilder) {
                    $inputArray[$key] = $value->toArray();
                } else if (is_array($value)) {
                    foreach ($value as $key2 => $value2) {
                        if ($value2 instanceof BaseBuilder) {
                            $inputArray[$key][$key2] = $value2->toArray();
                        } else if (is_string($value2)) {
                            $inputArray[$key][$key2] = $value2;
                        }
                    }
                }
            }
            $defaultInput = false;
        }

        $response = $this->api->applications()->scans()->create($appId, $inputArray, $queryParams, $defaultInput);

        return new ScanResponse($response);
    }
1080580
public static function create(array $params = [])
    {
        $assembler = new static();
        if (!empty($params)) {
            array_walk($params, function($v, $k) use ($assembler) {
                $assembler->$k(function() use($v) {return $v;});
            });
            $assembler->assemble();
        }

        return $assembler;
    }
45499
public static function create($params = null, $apiKey = null)
    {
        $class = get_class();
        return self::_scopedCreate($class, $params, $apiKey);
    }
34902
public function create($params, $optParams = [])
    {
        if (!$params instanceof AccessToken) {
            throw new InvalidParamException(AccessToken::class . ' is required!');
        }
        $class = get_class($params);

        return $this->sendRequest([], [
            'restAction' => 'create',
            'postParams' => $params->toArray(),
            'getParams' => $optParams,
        ], function ($response) use ($class) {
            return isset($response->data) ? new $class($response->data) : $response;
        });
    }
648135
private function initialize($params = array())
	{
		if (count($params) > 0)
		{
			foreach ($params as $key => $value)
			{
				if (isset($this->{$key}))
				{
					$this->{$key} = $value;
				}
				else if (strpos($key, 'CURLOPT_') === 0) 
				{
					curl_setopt($this->ch, $key, $value);    
				}
			}
		}
	}
961227
public function create(array $params = [])
    {
        $defaults = [
            'subject' => null,
            'description' => null,
            'project_id' => null,
            'category_id' => null,
            'priority_id' => null,
            'status_id' => null,
            'tracker_id' => null,
            'assigned_to_id' => null,
            'author_id' => null,
            'due_date' => null,
            'start_date' => null,
            'watcher_user_ids' => null,
            'fixed_version_id' => null,
        ];
        $params = $this->cleanParams($params);
        $params = $this->sanitizeParams($defaults, $params);

        $xml = $this->buildXML($params);

        return $this->post('/issues.xml', $xml->asXML());
    }