create account

RE: [KnackSteem API] - More features added by amosbastian

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @jaysermendez/re-amosbastian-re-jaysermendez-knacksteem-api-more-features-added-20180623t214635886z

· @amosbastian ·
Yes I know, but surely there is a better way of checking a user's role instead of duplicating all the code?
properties (22)
authoramosbastian
permlinkre-jaysermendez-re-amosbastian-re-jaysermendez-knacksteem-api-more-features-added-20180623t214810804z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-06-23 21:48:12
last_update2018-06-23 21:48:12
depth3
children1
last_payout2018-06-30 21:48:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length107
author_reputation174,473,586,900,705
root_title"[KnackSteem API] - More features added"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id61,965,151
net_rshares0
@jaysermendez ·
Now that you mentioned, it can be done with a function that takes the role as the parameter :D i will do that.
👍  
properties (23)
authorjaysermendez
permlinkre-amosbastian-re-jaysermendez-re-amosbastian-re-jaysermendez-knacksteem-api-more-features-added-20180623t215201381z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-06-23 21:52:03
last_update2018-06-23 21:52:03
depth4
children0
last_payout2018-06-30 21:52:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length110
author_reputation20,790,862,502,465
root_title"[KnackSteem API] - More features added"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id61,965,462
net_rshares4,763,485,683
author_curate_reward""
vote details (1)