diff --git a/README.md b/README.md index f4fb143..15b8563 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,7 @@ client | `getExchangeUsers` | | Retrieve list of the user info by admin | | `createExchangeUser` | | Create exchange user | | `updateExchangeUser` | | Update exchange user | +| `deleteExchangeUser` | | Delete exchange user | | `createExchangeUserWallet` | | Create wallet for exchange user | | `getExchangeUserWallet` | | Retrieve users' wallets by admin | | `getExchangeUserBalance` | | Retrieve user's login info by admin | diff --git a/kit.js b/kit.js index 10cff48..0fd3962 100644 --- a/kit.js +++ b/kit.js @@ -1986,6 +1986,30 @@ class HollaExKit { } } + + /** + * Delete exchange user + * @param {number} user_id - The id for the user + * @return {object} A JSON object with message + */ + deleteExchangeUser(user_id) { + const verb = 'DELETE'; + let path = `${this.baseUrl}/admin/user`; + const data = { + user_id + }; + + const headers = generateHeaders( + this.headers, + this.apiSecret, + verb, + path, + this.apiExpiresAfter, + data + ); + return createRequest(verb, `${this.apiUrl}${path}`, headers, { data }); + } + /** * Create wallet for exchange user