Hello dear Steemian
This project provides a usable library/api to make calls to the steem api for the autoit language. Basically it aims to provide all the functionality that one has with steem.js in autoit as well. This would be of great help for everybody who isn't familiar with javascript and/or python and prefers the autoit language for his projects.
This update was a complete rewrite, so other connections (websocket) are supported as well.
This was achieved by using dll-calls to be closer to the system.
Also there are 2 new methods:
_Steem_Start_Node()
_Steem_Close_Node()
These are used to hold the connection open instead of opening/closing the connection with every call. Therefore improving performance drastically while using this api.
I would like to introduce you to my revised version of the Steem UDF for autoit.
I have completely reprogrammed the UDF / API from scratch
My First Udf / Api Post you can finde here:
Autoit v3 Steem UDF
- This version is compatible with RPC and Websocket.
- Receive data faster
- More stable connection
- Support SSL
In order to achieve this, I now keep the connection open, but now there are the two functions
_Steem_Start_Node($node)
This Function Start the Connection to a Steem Node
At Node you insert the select Node at Example:
_Steem_Start_Node("api.steemit.com")
or
_Steem_Start_Node("gtg.steem.house:8090")
_Steem_Close_Node()
This Function Close the Connection to the Node
_Steem_Get_Account_Votes($name, $last = 0)
$name = the Accountname without @
$last = The last votes you want to read ( 0 = All)
(if you have 0 at big accounts like utopian-io need the function lot of time)
For the other functions, the operation is the same as for the Steem Api in Python or Java
and Now an Example Setup for the Account Votes and for Content Request:
#include
#include
_Steem_Start_Node("api.steemit.com")
;<==========================================
; Read The Content From the Post
$sPost = _Steem_Get_Content("utopian-io", "utopian-is-expanding-collaboration-with-browserstack-crowdin-disasterhack-and-more")
;<==========================================
;<==========================================
; Display The Content in a 2D Array
_ArrayDisplay($sPost,"Content Display")
;<==========================================
;<==========================================
; Read The Last 500 Votes From utopian-io
$sVotes = _Steem_Get_Account_Votes("utopian-io", 500)
;<==========================================
;<==========================================
; Display The Votes in a 2D Array
_ArrayDisplay($sVotes,"Votes Display")
;<==========================================
_Steem_Close_Node()
You can download the Udf and the Example here:
Steem Udf and Example
My First Udf you can finde here:
Autoit v3 Steem UDF
Posted on Utopian.io - Rewarding Open Source Contributors