Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hive-js
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hive-js
Commits
1cde0f6d
Commit
1cde0f6d
authored
4 years ago
by
Mahdi Yari
Browse files
Options
Downloads
Patches
Plain Diff
add getStateWith
parent
c4caa7e5
No related branches found
No related tags found
1 merge request
!17
update readme
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/README.md
+20
-0
20 additions, 0 deletions
doc/README.md
with
20 additions
and
0 deletions
doc/README.md
+
20
−
0
View file @
1cde0f6d
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment