SteemJ Dev Diary #5 (05.01.2018) - The TagsApi by dez1337

View this thread on steempeak.com
· @dez1337 · (edited)
$76.95
SteemJ Dev Diary #5 (05.01.2018) - The TagsApi
*At Day #5 of the SteemJ Dev Diary the TagsApi has been refactored and adjusted.*

<center>
![SteemJV2Logo](https://imgur.com/3EAV9Z2.png)
</center>

<center>
Latest SteemJ 0.4.x releases: [0.4.3](https://steemit.com/utopian-io/@dez1337/steemj-v0-4-3-is-available-now-use-the-steem-api-in-your-java-project) [v0.4.2](https://steemit.com/utopian-io/@dez1337/steemj-v0-4-2-is-available-now-use-the-steem-api-in-your-java-project) [v0.4.2pr1](https://steemit.com/steemdev/@dez1337/steemj-v0-4-1-has-been-released-use-the-steem-api-in-your-java-project) [v0.4.1](https://steemit.com/steemdev/@dez1337/steemj-v0-4-1-has-been-released-use-the-steem-api-in-your-java-project) [v0.4.0](https://steemit.com/steemdev/@dez1337/steemj-v0-4-0-has-been-released-integrate-steem-into-your-java-project) 
</center>

# SteemJ Dev Diary #5 (05.01.2018) - The TagsApi
<br>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](https://steemit.com/utopian-io/@dez1337/steemj-dev-diary-1-01-01-2018-cryptocore-and-code-cleanups) 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 #5
Puh, it is already 1:00 PM so day #6 would be the more accurate title of this post. Today has been spend with refactoring and completing the 'TagsApi'. The procedure is quite the same then it was for the APIs that have been adjusted in the past days:
* Fix the package structure by moving the 'TagsApi' related models into a seperate package
* Implement all '_args' and '_return' objects
* Refactor the already existing methods so they accept and return the '_args' and '_return' objects
* And add the new methods introduced with HF 0.20

The final 'TagsApi' looks like this:

<center>
![MethodList](https://imgur.com/DJgyHqT.png)
</center>

As mentioned in earlier posts, all API methods will be wrapped by the 'SteemJ' class as it was already the case in older versions.  

Full list of commits:
* [5638d8](https://github.com/marvin-we/steem-java-api-wrapper/commit/5638d822e5308aad0d97a15c5e2e018cbf81ce36)
* [32317d](https://github.com/marvin-we/steem-java-api-wrapper/commit/32317daaf9fee0295bb382b8e91a2832b6f66600)
* [18842d](https://github.com/marvin-we/steem-java-api-wrapper/commit/18842db22f2d3956e576dade67fa8e39bdd3a022)

*(A prove that the commits have been made by me can [be found here](https://steemit.com/utopian-io/@dez1337/steemj-image-upload-1-0-0-has-been-released-upload-images-to-steemitimages-com-out-of-your-java-application#@dez1337/re-codingdefined-re-dez1337-steemj-image-upload-1-0-0-has-been-released-upload-images-to-steemitimages-com-out-of-your-java-application-20171217t115152531z))*

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](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).

> 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](https://github.com/marvin-we/steem-java-api-wrapper/wiki/How-to-add-SteemJ-to-your-project) 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](https://github.com/marvin-we/steem-java-api-wrapper/wiki/How-to-add-SteemJ-to-your-project#download).

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

```XML
<dependency>
    <groupId>eu.bittrade.libs</groupId>
    <artifactId>steemj-core</artifactId>
    <version>0.4.3</version>
</dependency>
```

### Start posting

```Java
SteemJConfig myConfig = SteemJConfig.getInstance();

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

List<ImmutablePair<PrivateKeyType, String>> 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](https://github.com/marvin-we/steem-java-api-wrapper/tree/master/sample) 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](https://github.com/marvin-we/steem-java-api-wrapper/wiki).  

## 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](https://steemit.com/@dez1337) or ping me on [GitHub](https://github.com/marvin-we/steem-java-api-wrapper).

<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@dez1337/steemj-dev-diary-5-05-01-2018-the-tagsapi">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍  , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
post_id23,848,745
authordez1337
permlinksteemj-dev-diary-5-05-01-2018-the-tagsapi
categoryutopian-io
json_metadata"{"repository": {"owner": {"login": "marvin-we"}, "id": 77389964, "full_name": "marvin-we/steem-java-api-wrapper", "fork": false, "name": "steem-java-api-wrapper", "html_url": "https://github.com/marvin-we/steem-java-api-wrapper"}, "moderator": {"flagged": false, "account": "stoodkev", "reviewed": true, "pending": false}, "format": "markdown", "platform": "github", "tags": ["utopian-io", "steemdev", "programming", "java", "steem"], "community": "utopian", "type": "development", "pullRequests": [], "links": ["https://imgur.com/3EAV9Z2.png", "https://steemit.com/utopian-io/@dez1337/steemj-v0-4-3-is-available-now-use-the-steem-api-in-your-java-project", "https://steemit.com/utopian-io/@dez1337/steemj-v0-4-2-is-available-now-use-the-steem-api-in-your-java-project", "https://steemit.com/steemdev/@dez1337/steemj-v0-4-1-has-been-released-use-the-steem-api-in-your-java-project", "https://steemit.com/steemdev/@dez1337/steemj-v0-4-0-has-been-released-integrate-steem-into-your-java-project", "https://steemit.com/utopian-io/@dez1337/steemj-dev-diary-1-01-01-2018-cryptocore-and-code-cleanups", "https://imgur.com/DJgyHqT.png", "https://github.com/marvin-we/steem-java-api-wrapper/commit/5638d822e5308aad0d97a15c5e2e018cbf81ce36", "https://github.com/marvin-we/steem-java-api-wrapper/commit/32317daaf9fee0295bb382b8e91a2832b6f66600", "https://github.com/marvin-we/steem-java-api-wrapper/commit/18842db22f2d3956e576dade67fa8e39bdd3a022", "https://steemit.com/utopian-io/@dez1337/steemj-image-upload-1-0-0-has-been-released-upload-images-to-steemitimages-com-out-of-your-java-application#@dez1337/re-codingdefined-re-dez1337-steemj-image-upload-1-0-0-has-been-released-upload-images-to-steemitimages-com-out-of-your-java-application-20171217t115152531z", "https://github.com/marvin-we/steem-java-api-wrapper/compare/v0.4.3...master", "https://github.com/marvin-we/steem-java-api-wrapper", "https://github.com/marvin-we/steem-java-api-wrapper/wiki/How-to-add-SteemJ-to-your-project", "https://github.com/marvin-we/steem-java-api-wrapper/wiki/How-to-add-SteemJ-to-your-project#download", "https://github.com/marvin-we/steem-java-api-wrapper/tree/master/sample", "https://github.com/marvin-we/steem-java-api-wrapper/wiki", "https://steemit.com/@dez1337"], "app": "utopian/1.0.0", "users": ["dez1337", "user"], "image": ["https://imgur.com/3EAV9Z2.png"]}"
created2018-01-06 00:30:30
last_update2018-01-08 23:33:06
depth0
children12
net_rshares9,876,938,423,788
last_payout2018-01-13 00:30:30
cashout_time1969-12-31 23:59:59
total_payout_value55.112 SBD
curator_payout_value21.836 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length6,126
author_reputation20,522,119,974,925
root_title"SteemJ Dev Diary #5 (05.01.2018) - The TagsApi"
beneficiaries
0.
accountutopian.pay
weight2,500
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (23)
@christinb ·
$0.17
Very nice information
👍  
properties (23)
post_id23,849,016
authorchristinb
permlinkre-dez1337-steemj-dev-diary-5-05-01-2018-the-tagsapi-20180106t003253829z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "tags": ["utopian-io"]}"
created2018-01-06 00:32:54
last_update2018-01-06 00:32:54
depth1
children1
net_rshares18,166,516,150
last_payout2018-01-13 00:32:54
cashout_time1969-12-31 23:59:59
total_payout_value0.129 SBD
curator_payout_value0.041 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length21
author_reputation251,188,643,150
root_title"SteemJ Dev Diary #5 (05.01.2018) - The TagsApi"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@dez1337 ·
Thanks!
properties (22)
post_id23,938,933
authordez1337
permlinkre-christinb-re-dez1337-steemj-dev-diary-5-05-01-2018-the-tagsapi-20180106t115742441z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "tags": ["utopian-io"]}"
created2018-01-06 11:57:39
last_update2018-01-06 11:57:39
depth2
children0
net_rshares0
last_payout2018-01-13 11:57:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length7
author_reputation20,522,119,974,925
root_title"SteemJ Dev Diary #5 (05.01.2018) - The TagsApi"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@gzmgndgdu ·
$0.17
Thank you very much for the daily  post :)  @dez1337
👍  ,
properties (23)
post_id23,849,707
authorgzmgndgdu
permlinkre-dez1337-steemj-dev-diary-5-05-01-2018-the-tagsapi-20180106t003830331z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "users": ["dez1337"], "tags": ["utopian-io"]}"
created2018-01-06 00:38:30
last_update2018-01-06 00:38:30
depth1
children1
net_rshares18,357,145,401
last_payout2018-01-13 00:38:30
cashout_time1969-12-31 23:59:59
total_payout_value0.134 SBD
curator_payout_value0.036 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length52
author_reputation1,005,129,969,225
root_title"SteemJ Dev Diary #5 (05.01.2018) - The TagsApi"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)
@dez1337 ·
Thank you @gzmgndgdu :)
properties (22)
post_id23,938,880
authordez1337
permlinkre-gzmgndgdu-re-dez1337-steemj-dev-diary-5-05-01-2018-the-tagsapi-20180106t115718420z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "users": ["gzmgndgdu"], "tags": ["utopian-io"]}"
created2018-01-06 11:57:18
last_update2018-01-06 11:57:18
depth2
children0
net_rshares0
last_payout2018-01-13 11:57:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length23
author_reputation20,522,119,974,925
root_title"SteemJ Dev Diary #5 (05.01.2018) - The TagsApi"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@sanjeevm ·
$0.19
Keep it up.
👍  ,
properties (23)
post_id23,887,284
authorsanjeevm
permlinkre-dez1337-steemj-dev-diary-5-05-01-2018-the-tagsapi-20180106t052847049z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "tags": ["utopian-io"]}"
created2018-01-06 05:28:48
last_update2018-01-06 05:28:48
depth1
children1
net_rshares20,260,085,061
last_payout2018-01-13 05:28:48
cashout_time1969-12-31 23:59:59
total_payout_value0.151 SBD
curator_payout_value0.041 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length11
author_reputation17,069,555,901,365
root_title"SteemJ Dev Diary #5 (05.01.2018) - The TagsApi"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)
@dez1337 ·
$0.66
Good aftertnoon @sanjeevm and thanks for your support!
👍  
properties (23)
post_id23,938,828
authordez1337
permlinkre-sanjeevm-re-dez1337-steemj-dev-diary-5-05-01-2018-the-tagsapi-20180106t115659890z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "users": ["sanjeevm"], "tags": ["utopian-io"]}"
created2018-01-06 11:56:57
last_update2018-01-06 11:56:57
depth2
children0
net_rshares68,072,537,148
last_payout2018-01-13 11:56:57
cashout_time1969-12-31 23:59:59
total_payout_value0.495 SBD
curator_payout_value0.161 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length54
author_reputation20,522,119,974,925
root_title"SteemJ Dev Diary #5 (05.01.2018) - The TagsApi"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@walidsalah ·
$0.09
#Very good content and great efforts in #publishing
#Deserves more #votes
I was #happy to pass from here to see your #publication
I wish my follow-up in my publications and# attention
#Greetings to you and wish more #wonderful publications
@WalidSalah
👍  ,
properties (23)
post_id24,112,813
authorwalidsalah
permlinkre-dez1337-steemj-dev-diary-5-05-01-2018-the-tagsapi-20180107t081440276z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "users": ["walidsalah"], "tags": ["utopian-io", "very", "publishing", "deserves", "votes"]}"
created2018-01-07 08:19:57
last_update2018-01-07 08:19:57
depth1
children1
net_rshares9,483,804,124
last_payout2018-01-14 08:19:57
cashout_time1969-12-31 23:59:59
total_payout_value0.074 SBD
curator_payout_value0.015 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length251
author_reputation4,042,654,873,623
root_title"SteemJ Dev Diary #5 (05.01.2018) - The TagsApi"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)
@dez1337 ·
$0.85
Thanks @walidsalah :)
👍  ,
properties (23)
post_id24,186,956
authordez1337
permlinkre-walidsalah-re-dez1337-steemj-dev-diary-5-05-01-2018-the-tagsapi-20180107t163918280z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "users": ["walidsalah"], "tags": ["utopian-io"]}"
created2018-01-07 16:39:18
last_update2018-01-07 16:39:18
depth2
children0
net_rshares83,750,028,555
last_payout2018-01-14 16:39:18
cashout_time1969-12-31 23:59:59
total_payout_value0.645 SBD
curator_payout_value0.200 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length21
author_reputation20,522,119,974,925
root_title"SteemJ Dev Diary #5 (05.01.2018) - The TagsApi"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)
@stoodkev ·
$0.86
Great work and very well structured post, I wish I d see more like this one! Approved.

You can contact us on [Discord](https://discord.gg/UCvqCsx).
**[[utopian-moderator]](https://utopian.io/moderators)**
👍  
properties (23)
post_id24,435,266
authorstoodkev
permlinkre-dez1337-steemj-dev-diary-5-05-01-2018-the-tagsapi-20180108t205915819z
categoryutopian-io
json_metadata"{"app": "utopian/1.0.0", "community": "utopian", "tags": ["utopian-io"]}"
created2018-01-08 20:59:18
last_update2018-01-08 20:59:18
depth1
children2
net_rshares80,361,768,382
last_payout2018-01-15 20:59:18
cashout_time1969-12-31 23:59:59
total_payout_value0.817 SBD
curator_payout_value0.046 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length205
author_reputation89,353,405,873,727
root_title"SteemJ Dev Diary #5 (05.01.2018) - The TagsApi"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@dez1337 ·
$1.75
Nice to see you here @stoodkev :) Thanks for the fast review.

I just try to be as active as you, but I guess I can't top your efforts at the moment :D Keep up the great work!
👍  ,
properties (23)
post_id24,436,497
authordez1337
permlinkre-stoodkev-re-dez1337-steemj-dev-diary-5-05-01-2018-the-tagsapi-20180108t210726410z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "users": ["stoodkev"], "tags": ["utopian-io"]}"
created2018-01-08 21:07:24
last_update2018-01-08 21:07:24
depth2
children1
net_rshares161,643,959,621
last_payout2018-01-15 21:07:24
cashout_time1969-12-31 23:59:59
total_payout_value1.368 SBD
curator_payout_value0.377 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length175
author_reputation20,522,119,974,925
root_title"SteemJ Dev Diary #5 (05.01.2018) - The TagsApi"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)
@stoodkev ·
Haha will do ;)
properties (22)
post_id24,440,205
authorstoodkev
permlinkre-dez1337-re-stoodkev-re-dez1337-steemj-dev-diary-5-05-01-2018-the-tagsapi-20180108t213201642z
categoryutopian-io
json_metadata"{"app": "steemit/0.1", "tags": ["utopian-io"]}"
created2018-01-08 21:32:03
last_update2018-01-08 21:32:03
depth3
children0
net_rshares0
last_payout2018-01-15 21:32:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length15
author_reputation89,353,405,873,727
root_title"SteemJ Dev Diary #5 (05.01.2018) - The TagsApi"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@utopian-io ·
### Hey @dez1337 I am @utopian-io. I have just upvoted you!
#### Achievements
- Seems like you contribute quite often. AMAZING!
#### Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. <a href="https://discord.gg/zTrEMqB">Participate on Discord</a>. Lets GROW TOGETHER!
- <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for my Witness With SteemConnect</a>
- <a href="https://v2.steemconnect.com/sign/account-witness-proxy?proxy=utopian-io&approve=1">Proxy vote to Utopian Witness with SteemConnect</a>
- Or vote/proxy on <a href="https://steemit.com/~witnesses">Steemit Witnesses</a>

[![mooncryption-utopian-witness-gif](https://steemitimages.com/DQmYPUuQRptAqNBCQRwQjKWAqWU3zJkL3RXVUtEKVury8up/mooncryption-s-utopian-io-witness-gif.gif)](https://steemit.com/~witnesses)

**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**
properties (22)
post_id24,670,940
authorutopian-io
permlinkre-dez1337-steemj-dev-diary-5-05-01-2018-the-tagsapi-20180109t231021901z
categoryutopian-io
json_metadata"{"app": "utopian/1.0.0", "community": "utopian", "tags": ["utopian-io"]}"
created2018-01-09 23:10:21
last_update2018-01-09 23:10:21
depth1
children0
net_rshares0
last_payout2018-01-16 23:10:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,005
author_reputation152,913,012,544,965
root_title"SteemJ Dev Diary #5 (05.01.2018) - The TagsApi"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000