Creates a new customer.

@param  array  $params
@param  string $publickey
@param  string $secretkey

@return OmiseCustomer
484844
public static function create($params, $publickey = null, $secretkey = null)
    {
        return parent::g_create(get_class(), self::getUrl(), $params, $publickey, $secretkey);
    }
382228
private function createSignature($secret, $params)
    {
        $tokenData = $this->base64UriEncode(json_encode($params));

        $hash = $this->hash($secret.$tokenData);

        return $hash.'.'.$tokenData;
    }
1093167
public function update($params = null, $apiKey = null)
    {
        if (!isset($params['webhook']) || !is_array($params['webhook'])) {
            $clone = $params;
            unset($params);
            $params['webhook'] = $clone;
        }

        return self::_update(get_class(), $params);
    }
401162
private String createSignature(Credentials credentials, String secretKey) {
        return new SignatureGenerator().generate(
                secretKey,
                credentials.getMethod(),
                credentials.getTimestamp(),
                credentials.getPath(),
                credentials.getContent());
    }
61298
protected function createPreOneTwentySeven( $params ) {
		$newParams = [
			'name' => $params['username'],
			'password' => $params['password'],
		];
		if ( array_key_exists( 'email', $params ) ) {
			$newParams['email'] = $params['email'];
		}
		// First get the token.
		$tokenRequest = new SimpleRequest( 'createaccount', $newParams );
		$result = $this->api->postRequest( $tokenRequest );
		if ( $result['createaccount']['result'] == 'NeedToken' ) {
			// Then send the token to create the account.
			$newParams['token'] = $result['createaccount']['token'];
			$request = new SimpleRequest( 'createaccount', $newParams );
			$result = $this->api->postRequest( $request );
		}
		return ( $result['createaccount']['result'] === 'Success' );
	}
1234615
public static function create(array $arg_params)
    {
        //validate params
        $data = self::getParams($arg_params);
        if(!empty($data['metadata'])){
            $data['metadata'] = json_encode($data['metadata']);
        }

        //submit to api
        $customer_data = APIRequests::request(
            '/ecommerce/customers',
            APIRequests::METHOD_POST,
            $data
        );

        //return response
        return self::toObj($customer_data['body']);
    }
916842
public static function create(PermissionKey $pk)
    {
        $app = Application::getFacadeApplication();
        $db = $app->make(Connection::class);
        $db->executeQuery('insert into PermissionAccess (paIsInUse) values (0)');

        return static::getByID($db->lastInsertId(), $pk);
    }
336171
public function createWithdrawal(Withdrawal $withdrawal, array $params = [])
    {
        $this->getClient()->createAccountWithdrawal($this, $withdrawal, $params);
    }
424282
public function addPublicKey($publicKey, $privateKey) {
        $this->validatePublicKeyName($publicKey);

        if ($this->publicKeyExists($publicKey)) {
            throw new InvalidArgumentException(
                'Public key with name "' . $publicKey . '" already exists'
            );
        }

        return $this->getCommand('EditPublicKey', array(
            'properties' => json_encode(array('privateKey' => $privateKey)),
            'publicKey' => $publicKey,
        ))->execute();
    }
26078
public static function sign(array $params, string $secretKey, array $ignoreParamKeys = [], bool $doNotHash = false): string
    {
        $paramsPrepared = self::getParamsToSign($params, $ignoreParamKeys, 1);
        $stringToSign = implode(self::ITEMS_DELIMITER, $paramsPrepared);
        return $doNotHash
            ? $stringToSign
            : base64_encode(hash_hmac('sha512', $stringToSign, $secretKey, true))
            ;
    }
374775
public function create($name, $id, $secret)
    {
        return $this->getConnection()->table('oauth_clients')->insertGetId([
            'id' => $id,
            'name' => $name,
            'secret' => $secret,
            'created_at' => Carbon::now(),
            'updated_at' => Carbon::now(),
        ]);
    }
147321
public static function createFromSecret(string $secret, array $additional_values = []): JWK
    {
        $values = \array_merge(
            $additional_values,
            [
                'kty' => 'oct',
                'k' => Base64Url::encode($secret),
            ]
        );

        return JWK::create($values);
    }
136420
public function createCustomerData($params)
    {
        Util::verifyKeys(
                self::$_createCustomerSignature,
                $params
                );
        $params["kind"] = TransparentRedirect::CREATE_CUSTOMER;
        return $this->_data($params);

    }
1181189
def CreateKey(self, prikey=None):
        
        account = super(UserWallet, self).CreateKey(private_key=prikey)
        self.OnCreateAccount(account)
        contract = WalletContract.CreateSignatureContract(account.PublicKey)
        self.AddContract(contract)
        return account
226609
public static function create($userIdentifier, $secretKey, $logger = null)
    {
        $client = self::initializeHttpClient(self::ENDPOINT_URL);

        return new self($userIdentifier, $secretKey, $client, $logger);
    }
1019229
public static function create($params = null, $apiKey = null)
    {
        return self::_create(get_class(), $params, $apiKey);
    }
396864
public static function buildQueryString($params, $separator = '&', $key = null)
    {
        $query = '';
        foreach ($params as $k => $v) {
            $k = urlencode($k);
            if (!empty($key)) {
                $k = $key.'['.$k.']';
            }
            if (is_null($v)) {
                continue;
            } elseif (is_array($v)) {
                $query .= call_user_func(array(__CLASS__, __FUNCTION__), $v, $separator, $k).$separator;
            } else {
                if ($v === false) {
                    $v = 0;
                } elseif ($v === true) {
                    $v = '';
                }
                $v = str_replace(array('%2F','%2C','%3A','%7C'), array('/',',',':','|'), urlencode($v));
                $query .= $k.'='.$v.$separator;
            }
        }
        $query = rtrim(str_replace('='.$separator, $separator, $query), $separator);
        return $query;
    }