diff --git a/simplyhosting/user.py b/simplyhosting/user.py
index cd6261f..6a65e1e 100644
--- a/simplyhosting/user.py
+++ b/simplyhosting/user.py
@@ -25,28 +25,14 @@ class User:
 
     def generate_secret_key(self, key_name, access):
         request = Request('post', '/user/generateSecretKey')
-        request.data = {}
-        key_name = kwargs.get('key_name', '')
-        access = kwargs.get('access', '')
-        if key_name:
-            request.data['keyName'] = key_name
-
-        if access:
-            request.data['access'] = access
+        request.data = {'keyName': key_name, 'access': access}
         self.apiClient.request = request
         return self.apiClient
 
-    def update_secret_key(self, key_id, **kwargs):
+    def update_secret_key(self, key_id, optional_data={}):
         request = Request('post', '/user/updateSecretKey')
         request.data = {'keyId': key_id}
-        key_name = kwargs.get('key_name', '')
-        access = kwargs.get('access', '')
-        if key_name:
-            request.data['keyName'] = key_name
-
-        if access:
-            request.data['access'] = access
-
+        request.data.update(optional_data)
         self.apiClient.request = request
         return self.apiClient
 

Implement user resource API
https://api.simplyhosting.com/v2/doc/#!/user.json
diff --git a/test/test_user.py b/test/test_user.py
new file mode 100644
index 0000000..6ce9c4c
--- /dev/null
+++ b/test/test_user.py
@@ -0,0 +1,51 @@
+from simplyhosting.client import Client
+import unittest
+
+class Test_user(unittest.TestCase):
+    def setUp(self):
+        self.client = Client(api_key='a', api_secret='b')
+        self.optional_data={'optionalParam': 'value'}
+
+    def test_auth_set_data_successfully(self):
+        self.client.user().auth('benny', 'my-secret-password')
+        request = self.client.request
+        self.assertEqual('benny', request.data['login'])
+        self.assertEqual('my-secret-password', request.data['password'])
+
+    def test_ping_path_is_correct(self):
+        self.client.user().ping()
+        request = self.client.request
+        self.assertEqual('/user/ping', request.path)
+
+    def test_get_payment_method_path_is_correct(self):
+        self.client.user().get_payment_methods()
+        request = self.client.request
+        self.assertEqual('/user/getPaymentMethods', request.path)
+
+    def test_generate_secret_key_set_data_successfully(self):
+        self.client.user().generate_secret_key('dev-key', 'rw')
+        request = self.client.request
+        self.assertEqual('dev-key', request.data['keyName'])
+        self.assertEqual('rw', request.data['access'])
+
+    def test_update_secret_key_set_data_successfully(self):
+        self.client.user().update_secret_key(1, self.optional_data)
+        request = self.client.request
+        self.assertEqual(1, request.data['keyId'])
+        self.assertEqual('value', request.data['optionalParam'])
+
+    def test_delete_secret_key_set_data_successfully(self):
+        self.client.user().delete_secret_key(1)
+        request = self.client.request
+        self.assertEqual(1, request.data['keyId'])
+
+    def test_get_secret_keys_set_path_successfully(self):
+        self.client.user().get_secret_keys()
+        request = self.client.request
+        self.assertEqual('/user/getSecretKeys', request.path)
+
+    def test_regenerate_secret_key_set_data_successfully(self):
+        self.client.user().regenerate_secret_key(1, 'r')
+        request = self.client.request
+        self.assertEqual(1, request.data['keyId'])
+        self.assertEqual('r', request.data['access'])

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest
3.9
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
exceptiongroup==1.2.2
iniconfig==2.1.0
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
python-http-client==2.2.1
requests==2.13.0
-e git+https://github.com/BernardoSilva/simplyhosting-api-client-python.git@1c93603325f43b7c7e02939a449555e65e0a6822#egg=simplyhosting_api_client
tomli==2.2.1

name: simplyhosting-api-client-python
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - exceptiongroup==1.2.2
      - iniconfig==2.1.0
      - packaging==24.2
      - pluggy==1.5.0
      - pytest==8.3.5
      - python-http-client==2.2.1
      - requests==2.13.0
      - tomli==2.2.1
prefix: /opt/conda/envs/simplyhosting-api-client-python

test/test_user.py::Test_user::test_generate_secret_key_set_data_successfully test/test_user.py::Test_user::test_update_secret_key_set_data_successfully
test/test_user.py::Test_user::test_auth_set_data_successfully test/test_user.py::Test_user::test_delete_secret_key_set_data_successfully test/test_user.py::Test_user::test_get_payment_method_path_is_correct test/test_user.py::Test_user::test_get_secret_keys_set_path_successfully test/test_user.py::Test_user::test_ping_path_is_correct test/test_user.py::Test_user::test_regenerate_secret_key_set_data_successfully
simplyhosting/user.py
simplyhosting/user.py