diff --git a/thecaoffice-hr.py b/thecaoffice-hr.py index d626f59..c66c381 100644 --- a/thecaoffice-hr.py +++ b/thecaoffice-hr.py @@ -3,7 +3,7 @@ { 'username': '', 'password': '', - 'mode': 'app' + 'mode': 'app' # ... Required ("cosec") } #Login Output response @@ -54,13 +54,13 @@ # if yes then add team member / branch / department as needed # Api for the team add : https://api.thecaoffice.com/team/add Payload = { - 'email': 'employee@company.com', # ... Required - 'name': 'John Smith', # ... Required - "idDepartment": 1, # ... Required - 'role': 'Software Engineer', # ... Required - 'phoneNo': '9876543210', # ... Required - 'username': 'john.smith', # ... Required - 'password': 'password123', # ... Required + 'email': 'employee@company.com', # ... Required (?? or User Name -> to lower and space becomes dot "@velankanigroup.com") + 'name': 'John Smith', # ... Required (User Name) + "idDepartment": 1, # ... Required (??) + 'role': 'Software Engineer', # ... Required (Category Name) + 'phoneNo': '9876543210', # ... Required (?? or "9876543210") + 'username': 'john.smith', # ... Required (User Name -> to lower and space becomes dot) + 'password': 'password123', # ... Required ("9876543210") 'address': '123 Main St, Mumbai, Maharashtra', "website": 'http://company.com', "logoUrl": null, @@ -141,8 +141,8 @@ final applicantNotesParam = { # Api for the branch add : https://api.thecaoffice.com/commons/branch/add Paylod = { - 'idUser':1643 - 'branchName': 'Main Branch', + 'idUser':1643 # ... Required (from session token) + 'branchName': 'Main Branch', # ... Required (Branch Name) 'address': '123 Street, Mumbai, Maharashtra', 'branchHead': 'John Doe', 'branchHeadId': 18, @@ -189,8 +189,8 @@ Paylod = { # Api for the department add : https://api.thecaoffice.com/commons/departments/add params = { - 'idUser':1643 - 'departmentName': departmentController.text, + 'idUser':1643 # ... Required (from session token) + 'departmentName': departmentController.text, # ... Required (Department Name) }; # Api for the department add : https://api.thecaoffice.com/commons/departments/list