Skip to content
Snippets Groups Projects
Commit 1cde0f6d authored by Mahdi Yari's avatar Mahdi Yari
Browse files

add getStateWith

parent c4caa7e5
No related branches found
No related tags found
1 merge request!17update readme
...@@ -573,6 +573,26 @@ Return Example: ...@@ -573,6 +573,26 @@ Return Example:
witnesses: {...} } witnesses: {...} }
``` ```
### Get State With Options
```js
hive.api.getStateWith(options, callback);
```
|Parameter|Datatype|Description|
|---------|--------|-----------|
|options|object|like { path : "/@username"} where the path is an extension from a Hive URL. It can be used on users, posts, comments, comments-by-user, replies-to-user and so on|
|callback|function|function(err, data) {/*code*/}|
Call Example:
```js
hive.api.getStateWith({ path : "/@username" }, function(err, data) {
console.log(err, data);
});
```
See `hive.api.getState` for more examples...
### Get Trending Categories ### Get Trending Categories
```js ```js
hive.api.getTrendingCategories(after, limit, function(err, result) { hive.api.getTrendingCategories(after, limit, function(err, result) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment