SteemJ Dev Diary #6 (06.01.2018) - Add new API methods to the DatabaseApi

@dez1337 · 2018-01-07 00:40 · utopian

Next to last day of the SteemJ Dev Diary, the work on the DatabaseApi has been continued.

SteemJV2Logo

Latest SteemJ 0.4.x releases: 0.4.3 v0.4.2 v0.4.2pr1 v0.4.1 v0.4.0

SteemJ Dev Diary #6 (06.01.2018) - Add new API methods to the DatabaseApi


Hello Steemians and welcome back to day #5 of the SteemJ HF 0.20 Dev Diary!

This series has been introduced to collect feedback from you and to motivate myself to finalize the next SteemJ version as soon as possible. If this is the first part of this series you read, you may want to checkout Day #1 which explains the motivation behind this diary in detail and also provides a first overview of the API changes that come with HF 0.20.

Changes during day #6

Todays focus was the 'DatabaseApi' which received the biggest update by the SteemDevs I would say. The future version of SteemJ will also support the great new API calls like 'list_vesting_delegations', 'list_escrows' or 'find_sbd_conversion_requests'. So far there was only one way of collecting those information: You had to index all blocks and search for those operations, so I really love to see those methods being implemented on Steem side.

As tomorrow is already the last, planned day of this diary series I will for sure try my best to finalize the 'DatabaseApi', so that I can hopefully share a Screenshot of all available methods with you tomorrow.

Beside this change I was able to close some smaller issues by removing deprecated fields, adding a License Header to all files and by adding the Issue section to all poms.

List of fixed issues: * IS #197 * IS #165 * IS #161

Full list of commits: * ce7a7b * ada03f * 88fd3b * f2d88c * cb4ecd * 180fe6 * f56d93 * c19f2e

(A prove that the commits have been made by me can be found here)

A list of all commits made after the last release can be found here: https://github.com/marvin-we/steem-java-api-wrapper/compare/v0.4.3...master

General information

What is SteemJ?

SteemJ is a project that allows you to communicate with a Steem node using Java. So far, the project supports most of the API calls and is also able to broadcast most of the common operation types. Further information can be found on GitHub.

https://github.com/marvin-we/steem-java-api-wrapper

Quick Start Guide

Add SteemJ to your project

SteemJ binaries are pushed into the maven central repository and can be integrated with a bunch of build management tools like Maven. The Wiki provides a lot of examples for the most common build tools. If you do not use a build management tool you can download the binaries as described here.

To add this release to your project paste the following snippet into your 'pom.xml'


    eu.bittrade.libs
    steemj-core
    0.4.3

Start posting

SteemJConfig myConfig = SteemJConfig.getInstance();

myConfig.setDefaultAccount(new AccountName("YOUR-ACCOUNT"));

List> privateKeys = new ArrayList<>();
privateKeys.add(new ImmutablePair<>(PrivateKeyType.POSTING, "YOUR-PRIVATE-POSTING-KEY"));

myConfig.getPrivateKeyStorage().addAccount(myConfig.getDefaultAccount(), privateKeys);

steemJ.createComment(new AccountName("steemj"), new Permlink("testofsteemj040"), "Example comment without no link but with a @user .", new String[] { "test" });

Further information

The sample module of the SteemJ project provides showcases for the most common acitivies and operations users want to perform.

Beside that you can find a lot of snippets and examples in the different Wiki sections.

Contribute

The project became quite big and there is still a lot to do. If you want to support the project simply clone the git repository and submit a pull request. I would really appreciate it =).

git clone https://github.com/marvin-we/steem-java-api-wrapper.git

Get in touch!

Most of my projects are pretty time consuming and I always try to provide some useful stuff to the community. What keeps me going for that is your feedback and your support. For that reason I would love to get some Feedback from you <3. Just contact me here on Steemit or ping me on GitHub.



Posted on Utopian.io - Rewarding Open Source Contributors


#utopian-io #steemdev #programming #java #steem
Payout: 0.000 HBD
Votes: 17
More interactions (upvote, reblog, reply) coming soon.