Skip to content
GitLab
Explore
Sign in
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
ae97bb2a
Commit
ae97bb2a
authored
4 years ago
by
Mahdi Yari
Browse files
Options
Downloads
Patches
Plain Diff
add getFeedEntries
parent
d08b5b74
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
+42
-0
42 additions, 0 deletions
doc/README.md
with
42 additions
and
0 deletions
doc/README.md
+
42
−
0
View file @
ae97bb2a
...
@@ -638,6 +638,48 @@ hive.api.getChainProperties(function(err, result) {
...
@@ -638,6 +638,48 @@ hive.api.getChainProperties(function(err, result) {
console
.
log
(
err
,
result
);
console
.
log
(
err
,
result
);
});
});
```
```
### Get Feed Entries
Gets the posts in the feed of a user.
The feed displays posts of followed users, as well as what they reblogged.
```
js
hive
.
api
.
getFeedEntries
(
account
,
entryId
,
limit
,
callback
);
```
|Parameter|Datatype|Description|
|---------|--------|-----------|
|account|string|a hive username|
|entryId|number|the post id from which to start counting. Write '0' to start from newest post|
|limit|number|a positive number|
|callback|function|function(err, data) {/
*code*
/}|
Call Example:
```
js
hive
.
api
.
getFeedEntries
(
"
username
"
,
0
,
2
,
function
(
err
,
data
)
{
console
.
log
(
err
,
data
);
});
```
Return Example:
```
js
[
{
author
:
'
otherusername
'
,
permlink
:
'
permlink
'
,
reblog_by
:
[
'
mahdiyari
'
],
//full when post is in feed because it's reblogged
reblog_on
:
'
2018-02-11T18:42:54
'
,
entry_id
:
10260
},
{
author
:
'
otherusername
'
,
permlink
:
'
permlink
'
,
reblog_by
:
[],
// false when post is in feed because user follows it's author
reblog_on
:
'
2018-02-11T18:39:24
'
,
entry_id
:
10259
}
]
```
### Get Feed History
### Get Feed History
```
js
```
js
hive
.
api
.
getFeedHistory
(
function
(
err
,
result
)
{
hive
.
api
.
getFeedHistory
(
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