Steemit AutoIT UDF / API Update v 0.8

in #utopian-io7 years ago (edited)

Autoit Steem
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 <Steem Websocket.au3>
#include <Array.au3>
_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()

Content
Votes

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

Sort:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @stoodkev, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!

New_Intro2.gif

This post is Powered by @superbot all the way from Planet Super Earth.

Your post will Appear in the feed of 1100+ Followers :)

So don't waste any time ! Get More Followers and gain more Visibility With @superbot

Resteemed to over 14300 followers and 100% upvoted. Thank you for using my service!

Send 0.200 Steem or 0.200 Steem Dollars and the URL in the memo to use the bot.
Read here how the bot from Berlin works.

@resteem.bot

We are happy to be part of the APPICS bounty program.
APPICS is a new social community based on Steem.
The presale was sold in 26 minutes. The ICO will start soon.
Read here more: https://steemit.com/steemit/@resteem.bot/what-is-appics

@resteem.bot

No README, and a very poor explanation on what you are doing here. Please give more details on what you want to achieve and how it will help.
Also, link your username with your Github s, and explain why you made a second project rather than improving the existing one.

Hello @stoodkev,

I've talked with killerfreak about this.

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.

It seems like 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.

Hope this made things clearer, if you have any further questions feel free to contact me or killerfreak on discord :) (I'm in the utopian discord if you have trouble finding me).

PS: He also added the README and updated the first repository as well. (He did have a few problems with github first.) Also this post now links to the correct repository.

Greetings,
Martin

Hi my Utopian account is connected to Github. And my friend MWFIAE helped me with Github. I haven't found the button to delete old files. But now it should be fixed.

Tks for the README. the information given by @mwfiae should be on the body of your post.

Hey @killerfreak I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Congratulations @killerfreak! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

SteemFest³ - SteemitBoard support the Travel Reimbursement Fund.

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @killerfreak! You received a personal award!

1 Year on Steemit

Click here to view your Board

Do not miss the last post from @steemitboard:

SteemWhales has officially moved to SteemitBoard Ranking
SteemitBoard - Witness Update

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @killerfreak! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.29
TRX 0.31
JST 0.049
BTC 96069.37
ETH 3615.68
SBD 3.83