lib/omise/res/OmiseApiResource.php
protected static function g_create($clazz, $url, $params, $publickey = null, $secretkey = null)
    {
        $resource = call_user_func(array($clazz, 'getInstance'), $clazz, $publickey, $secretkey);
        $result   = $resource->execute($url, self::REQUEST_POST, $resource->getResourceKey(), $params);
        $resource->refresh($result);

        return $resource;
    }
protected static function g_create($clazz, $url, $params, $publickey = null, $secretkey = null)
    {
        $resource = call_user_func(array($clazz, 'getInstance'), $clazz, $publickey, $secretkey);
        $result   = $resource->execute($url, self::REQUEST_POST, $resource->getResourceKey(), $params);
        $resource->refresh($result);

        return $resource;
    }
protected static function g_create ( $ clazz , $ url , $ params , $ publickey = null , $ secretkey = null ) { $ resource = call_user_func ( array ( $ clazz , 'getInstance' ) , $ clazz , $ publickey , $ secretkey ) ; $ result = $ resource -> execute ( $ url , self :: REQUEST_POST , $ resource -> getResourceKey ( ) , $ params ) ; $ resource -> refresh ( $ result ) ; return $ resource ; }
Creates the resource with given parameters.in an associative array.

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

@throws Exception|OmiseException

@return OmiseAccount|OmiseBalance|OmiseCharge|OmiseCustomer|OmiseToken|OmiseTransaction|OmiseTransfer
Creates the resource with given parameters . in an associative array .