diff --git a/lib/index.js b/lib/index.js index 0bce1df..07dc592 100644 --- a/lib/index.js +++ b/lib/index.js @@ -24,10 +24,9 @@ function Client(transferServer) { * * @param endpoint (string), e.g. /deposit * @param params (object), a list of GET parameters to be included in the request - * @param callback (function), processes the response */ - this.get = async function(endpoint, params, callback) { - return await sendRequest('get', endpoint, params, callback); + this.get = async function(endpoint, params) { + return await sendRequest('get', endpoint, params); }; /** @@ -35,10 +34,9 @@ function Client(transferServer) { * * @param endpoint (string) * @param params (object), a list of POST parameters to be included in the request - * @param callback (function), processes the response */ - this.post = async function(endpoint, params, callback) { - return await sendRequest('post', endpoint, params, callback); + this.post = async function(endpoint, params) { + return await sendRequest('post', endpoint, params); }; /** @@ -46,10 +44,9 @@ function Client(transferServer) { * * @param endpoint (string) * @param params (object), a list of PUT parameters to be included in the request - * @param callback (function), processes the response */ - this.put = async function(endpoint, params, callback) { - return await sendRequest('put', endpoint, params, callback); + this.put = async function(endpoint, params) { + return await sendRequest('put', endpoint, params); }; /** @@ -57,10 +54,9 @@ function Client(transferServer) { * * @param endpoint (string) * @param params (object), a list of DELETE parameters to be included in the request - * @param callback (function), processes the response */ - this.delete = async function(endpoint, params, callback) { - return await sendRequest('delete', endpoint, params, callback); + this.delete = async function(endpoint, params) { + return await sendRequest('delete', endpoint, params); }; // private validator function