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
514eb73e
Commit
514eb73e
authored
4 years ago
by
Mahdi Yari
Browse files
Options
Downloads
Patches
Plain Diff
add getCommentDiscussionsByPayout
parent
29f383cf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!17
update readme
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/README.md
+32
-0
32 additions, 0 deletions
doc/README.md
with
32 additions
and
0 deletions
doc/README.md
+
32
−
0
View file @
514eb73e
...
...
@@ -399,6 +399,38 @@ Return Example:
{
/* ommited for simplicity */
}
]
```
### Get Comment Discussions By Payout
Gets the recent comments (not posts) ordered by their pending payout.
```
js
hive
.
api
.
getCommentDiscussionsByPayout
(
query
,
callback
);
```
|Parameter|Datatype|Description|
|---------|--------|-----------|
|query|object|an object containing different options for querying, like 'limit' and 'tag'|
|callback|function|function(err, data) {/
*code*
/}|
Call Example:
```
js
var
query
=
{
limit
:
3
,
tag
:
"
hive
"
};
hive
.
api
.
getCommentDiscussionsByPayout
(
query
,
function
(
err
,
data
)
{
console
.
log
(
err
,
data
);
});
// NOTE! The default limit is 0. Not setting a limit will get you an empty result.
```
Return Example:
```
js
// the result is an array of big objects representing the comments
[
{
/* ommited for simplicity */
},
{
/* ommited for simplicity */
},
{
/* ommited for simplicity */
}
]
```
## Blocks and transactions
### Get Block Header
...
...
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