diff --git a/README.md b/README.md index 839b774..48b5cc1 100644 --- a/README.md +++ b/README.md @@ -212,6 +212,14 @@ client.post('add', { }).then(response => { console.log(response.jsonData); }); + +// Example +let postBody = {firstName: 'hello', lastName: 'world'}; + +client.request('profile', 'PUT', {json: postBody}) + .then(resp => { + console.log(resp.jsonData); + }); ``` ### credentials