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

add getRebloggedBy

parent af0e516d
No related branches found
No related tags found
1 merge request!17update readme
...@@ -1316,6 +1316,35 @@ hive.api.getDiscussionsByAuthorBeforeDate(author, startPermlink, beforeDate, lim ...@@ -1316,6 +1316,35 @@ hive.api.getDiscussionsByAuthorBeforeDate(author, startPermlink, beforeDate, lim
console.log(err, result); console.log(err, result);
}); });
``` ```
### Get Reblogged By
Gives a list of the users that reblogged a given post
```js
hive.api.getRebloggedBy(author, permlink, callback);
```
|Parameter|Datatype|Description|
|---------|--------|-----------|
|author|string|a hive username|
|permlink|string|a permalink of comment or post|
|callback|function|function(err, data) {/*code*/}|
Call Example:
```js
hive.api.getRebloggedBy("author", "example-permlink", function(err, data) {
console.log(err, data);
});
```
Return Example:
```js
[ 'author',
'user1',
'user2',
'user3',
'user4' ]
```
### Get Replies By Last Update ### Get Replies By Last Update
```js ```js
hive.api.getRepliesByLastUpdate(startAuthor, startPermlink, limit, function(err, result) { hive.api.getRepliesByLastUpdate(startAuthor, startPermlink, 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