From 325e166501664c1a37cd439d78793d3d3ced23f9 Mon Sep 17 00:00:00 2001 From: Mahdi Yari <m.yary16@gmail.com> Date: Tue, 3 Nov 2020 19:21:59 +0330 Subject: [PATCH] example for getFollowCount --- doc/README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/doc/README.md b/doc/README.md index 01418c2..e192c32 100644 --- a/doc/README.md +++ b/doc/README.md @@ -1584,6 +1584,26 @@ hive.api.getFollowCount(account, function(err, result) { }); ``` +|Parameter|Description|Datatype|Notes| +|---|---|---|---| +|account|The name for get the follow ccount for|String|No leading @ symbol| +|function()|Your callback|function|Tip: use `console.log(err, result)` to see the result| + + +Call Example: +```js +hive.api.getFollowCount('username', function(err, result) { + console.log(err, result); +}); +``` + +Return Example: +```js +{ account: 'username', follower_count: 16790, following_count: 913 } +``` + +See also: [getFollowers](#get-followers), [getFollowing](#get-following) + ## Broadcast API ### Broadcast Transaction Synchronous -- GitLab