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
354cb17e
Commit
354cb17e
authored
4 years ago
by
Mahdi Yari
Browse files
Options
Downloads
Patches
Plain Diff
add .call()
parent
82ff0406
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
+16
-0
16 additions, 0 deletions
doc/README.md
with
16 additions
and
0 deletions
doc/README.md
+
16
−
0
View file @
354cb17e
...
@@ -73,6 +73,21 @@ hive.api.setOptions({ url: 'https://api.hive.blog' });
...
@@ -73,6 +73,21 @@ hive.api.setOptions({ url: 'https://api.hive.blog' });
# API
# API
## API CALL
Can be used for all the possible API calls.
```
js
hive
.
api
.
call
(
method
,
params
,
callback
);
// or
hive
.
api
.
callAsync
(
method
,
params
).
then
(
res
=>
{});
```
Example:
```
js
hive
.
api
.
callAsync
(
'
condenser_api.get_accounts
'
,
[[
'
mahdiyari
'
]])
.
then
((
res
)
=>
console
.
log
(
res
))
```
`
## Subscriptions
## Subscriptions
### Set Subscribe Callback
### Set Subscribe Callback
...
@@ -575,6 +590,7 @@ Return Example:
...
@@ -575,6 +590,7 @@ Return Example:
```
```
### Get State With Options
### Get State With Options
**Warning:** getState calls are getting deprecated.
```js
```js
hive.api.getStateWith(options, callback);
hive.api.getStateWith(options, callback);
...
...
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