From 354cb17e46d92aeb5705a79814070149cb824cd9 Mon Sep 17 00:00:00 2001
From: Mahdi Yari <m.yary16@gmail.com>
Date: Tue, 3 Nov 2020 20:25:35 +0330
Subject: [PATCH] add .call()

---
 doc/README.md | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/doc/README.md b/doc/README.md
index 03ef594..b400aec 100644
--- a/doc/README.md
+++ b/doc/README.md
@@ -73,6 +73,21 @@ hive.api.setOptions({ url: 'https://api.hive.blog' });
 
 # API
 
+## API CALL
+Can be used for all the possible API calls.
+
+```js
+hive.api.call(method, params, callback);
+// or
+hive.api.callAsync(method, params).then(res => {});
+```
+
+Example:
+```js
+hive.api.callAsync('condenser_api.get_accounts', [['mahdiyari']])
+  .then((res) => console.log(res))
+````
+
 ## Subscriptions
 
 ### Set Subscribe Callback
@@ -575,6 +590,7 @@ Return Example:
 ```
 
 ### Get State With Options
+**Warning:** getState calls are getting deprecated.
 
 ```js
 hive.api.getStateWith(options, callback);
-- 
GitLab