Hello dear Steemian
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
_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